mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
[layout] Notify of alignment changes in BinLayout
Emit the ::layout-changed when the BinLayout alignment policies change. This will result in a queue_relayout() on the containers using the BinLayout layout manager.
This commit is contained in:
parent
4e8d8bbc15
commit
b06a3293fe
@ -41,8 +41,13 @@ set_x_align (ClutterBinLayout *self,
|
||||
|
||||
if (priv->x_align != alignment)
|
||||
{
|
||||
ClutterLayoutManager *manager;
|
||||
|
||||
priv->x_align = alignment;
|
||||
|
||||
manager = CLUTTER_LAYOUT_MANAGER (self);
|
||||
clutter_layout_manager_layout_changed (manager);
|
||||
|
||||
g_object_notify (G_OBJECT (self), "x-align");
|
||||
}
|
||||
}
|
||||
@ -55,8 +60,13 @@ set_y_align (ClutterBinLayout *self,
|
||||
|
||||
if (priv->y_align != alignment)
|
||||
{
|
||||
ClutterLayoutManager *manager;
|
||||
|
||||
priv->y_align = alignment;
|
||||
|
||||
manager = CLUTTER_LAYOUT_MANAGER (self);
|
||||
clutter_layout_manager_layout_changed (manager);
|
||||
|
||||
g_object_notify (G_OBJECT (self), "y-align");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user