mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
clutter/actor: Make functions to queue relayout/redraw on clones static
We don't call those functions from outside ClutterActor and we also shouldn't, so remove them from the private header and define them statically. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1527
This commit is contained in:
parent
3ea9217be2
commit
10392359a9
@ -257,8 +257,6 @@ void _clutter_actor_attach_clone
|
|||||||
ClutterActor *clone);
|
ClutterActor *clone);
|
||||||
void _clutter_actor_detach_clone (ClutterActor *actor,
|
void _clutter_actor_detach_clone (ClutterActor *actor,
|
||||||
ClutterActor *clone);
|
ClutterActor *clone);
|
||||||
void _clutter_actor_queue_redraw_on_clones (ClutterActor *actor);
|
|
||||||
void _clutter_actor_queue_relayout_on_clones (ClutterActor *actor);
|
|
||||||
void _clutter_actor_queue_only_relayout (ClutterActor *actor);
|
void _clutter_actor_queue_only_relayout (ClutterActor *actor);
|
||||||
void clutter_actor_clear_stage_views_recursive (ClutterActor *actor);
|
void clutter_actor_clear_stage_views_recursive (ClutterActor *actor);
|
||||||
|
|
||||||
|
@ -2582,6 +2582,21 @@ clutter_actor_real_allocate (ClutterActor *self,
|
|||||||
g_object_thaw_notify (G_OBJECT (self));
|
g_object_thaw_notify (G_OBJECT (self));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_clutter_actor_queue_redraw_on_clones (ClutterActor *self)
|
||||||
|
{
|
||||||
|
ClutterActorPrivate *priv = self->priv;
|
||||||
|
GHashTableIter iter;
|
||||||
|
gpointer key;
|
||||||
|
|
||||||
|
if (priv->clones == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
g_hash_table_iter_init (&iter, priv->clones);
|
||||||
|
while (g_hash_table_iter_next (&iter, &key, NULL))
|
||||||
|
clutter_actor_queue_redraw (key);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_clutter_actor_propagate_queue_redraw (ClutterActor *self,
|
_clutter_actor_propagate_queue_redraw (ClutterActor *self,
|
||||||
ClutterActor *origin,
|
ClutterActor *origin,
|
||||||
@ -8239,6 +8254,21 @@ clutter_actor_queue_redraw (ClutterActor *self)
|
|||||||
NULL /* effect */);
|
NULL /* effect */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_clutter_actor_queue_relayout_on_clones (ClutterActor *self)
|
||||||
|
{
|
||||||
|
ClutterActorPrivate *priv = self->priv;
|
||||||
|
GHashTableIter iter;
|
||||||
|
gpointer key;
|
||||||
|
|
||||||
|
if (priv->clones == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
g_hash_table_iter_init (&iter, priv->clones);
|
||||||
|
while (g_hash_table_iter_next (&iter, &key, NULL))
|
||||||
|
clutter_actor_queue_relayout (key);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_clutter_actor_queue_only_relayout (ClutterActor *self)
|
_clutter_actor_queue_only_relayout (ClutterActor *self)
|
||||||
{
|
{
|
||||||
@ -19212,36 +19242,6 @@ _clutter_actor_detach_clone (ClutterActor *actor,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
_clutter_actor_queue_redraw_on_clones (ClutterActor *self)
|
|
||||||
{
|
|
||||||
ClutterActorPrivate *priv = self->priv;
|
|
||||||
GHashTableIter iter;
|
|
||||||
gpointer key;
|
|
||||||
|
|
||||||
if (priv->clones == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_hash_table_iter_init (&iter, priv->clones);
|
|
||||||
while (g_hash_table_iter_next (&iter, &key, NULL))
|
|
||||||
clutter_actor_queue_redraw (key);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
_clutter_actor_queue_relayout_on_clones (ClutterActor *self)
|
|
||||||
{
|
|
||||||
ClutterActorPrivate *priv = self->priv;
|
|
||||||
GHashTableIter iter;
|
|
||||||
gpointer key;
|
|
||||||
|
|
||||||
if (priv->clones == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_hash_table_iter_init (&iter, priv->clones);
|
|
||||||
while (g_hash_table_iter_next (&iter, &key, NULL))
|
|
||||||
clutter_actor_queue_relayout (key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_actor_has_mapped_clones:
|
* clutter_actor_has_mapped_clones:
|
||||||
* @self: a #ClutterActor
|
* @self: a #ClutterActor
|
||||||
|
Loading…
Reference in New Issue
Block a user