diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-07-18 19:38:16 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-07-18 19:38:16 -0400 |
commit | 7ed133397ac648bd775b3f3f997ba14636506c22 (patch) | |
tree | 6a0c882d1c9dba5bdde2315ff56aabfe1d7fd57e | |
parent | b4ab29d4d5e3cd6776b93886ceb0c783dbeeb518 (diff) | |
download | gtk+-7ed133397ac648bd775b3f3f997ba14636506c22.tar.gz |
GtkFlowBox: Set orientable style classes initially
This was an omission, horizontal/vertical would only be set
when the orientation is changed.
-rw-r--r-- | gtk/gtkflowbox.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index 84c837bdad..d0dd345767 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -3558,6 +3558,7 @@ gtk_flow_box_set_property (GObject *object, if (priv->orientation != g_value_get_enum (value)) { priv->orientation = g_value_get_enum (value); + _gtk_orientable_set_style_classes (GTK_ORIENTABLE (box)); /* Re-box the children in the new orientation */ gtk_widget_queue_resize (GTK_WIDGET (box)); g_object_notify_by_pspec (object, pspec); @@ -3954,6 +3955,8 @@ gtk_flow_box_init (GtkFlowBox *box) priv->row_spacing = 0; priv->activate_on_single_click = TRUE; + _gtk_orientable_set_style_classes (GTK_ORIENTABLE (box)); + priv->children = g_sequence_new (NULL); priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (box)); |