[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:
Emmanuele Bassi 2009-09-14 12:03:38 +01:00
parent 4e8d8bbc15
commit b06a3293fe

View File

@ -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");
}
}