GtkFlowBox: Explicitly notify orientation

This commit is contained in:
Matthias Clasen
2014-06-08 11:57:27 -04:00
parent 43ba93971c
commit 6877253e14

View File

@ -3555,15 +3555,13 @@ gtk_flow_box_set_property (GObject *object,
switch (prop_id) switch (prop_id)
{ {
case PROP_ORIENTATION: case PROP_ORIENTATION:
{ if (priv->orientation != g_value_get_enum (value))
GtkOrientation orientation = g_value_get_enum (value); {
if (priv->orientation != orientation) priv->orientation = g_value_get_enum (value);
{ /* Re-box the children in the new orientation */
priv->orientation = orientation; gtk_widget_queue_resize (GTK_WIDGET (box));
/* Re-box the children in the new orientation */ g_object_notify_by_pspec (object, pspec);
gtk_widget_queue_resize (GTK_WIDGET (box)); }
}
}
break; break;
case PROP_HOMOGENEOUS: case PROP_HOMOGENEOUS:
gtk_flow_box_set_homogeneous (box, g_value_get_boolean (value)); gtk_flow_box_set_homogeneous (box, g_value_get_boolean (value));