diff --git a/clutter/clutter-actor-private.h b/clutter/clutter-actor-private.h index 37bd7d560..b59800852 100644 --- a/clutter/clutter-actor-private.h +++ b/clutter/clutter-actor-private.h @@ -131,6 +131,7 @@ void _clutter_actor_rerealize (ClutterActor *self, void _clutter_actor_set_opacity_override (ClutterActor *self, gint opacity); +gint _clutter_actor_get_opacity_override (ClutterActor *self); void _clutter_actor_set_in_clone_paint (ClutterActor *self, gboolean is_in_clone_paint); diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index b2ea1100e..92990bb51 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -10192,6 +10192,14 @@ _clutter_actor_set_opacity_override (ClutterActor *self, self->priv->opacity_override = opacity; } +gint +_clutter_actor_get_opacity_override (ClutterActor *self) +{ + g_return_val_if_fail (CLUTTER_IS_ACTOR (self), -1); + + return self->priv->opacity_override; +} + /* Allows you to disable applying the actors model view transform during * a paint. Used by ClutterClone. */ void