[gtk+] GtkFlowBox: Explicitly notify orientation



commit 6877253e14b71f1e8f473e60ff4d2931146c7339
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 8 11:57:27 2014 -0400

    GtkFlowBox: Explicitly notify orientation

 gtk/gtkflowbox.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 28e6345..84c837b 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -3555,15 +3555,13 @@ gtk_flow_box_set_property (GObject      *object,
   switch (prop_id)
     {
     case PROP_ORIENTATION:
-      {
-        GtkOrientation orientation = g_value_get_enum (value);
-        if (priv->orientation != orientation)
-          {
-            priv->orientation = orientation;
-            /* Re-box the children in the new orientation */
-            gtk_widget_queue_resize (GTK_WIDGET (box));
-          }
-      }
+      if (priv->orientation != g_value_get_enum (value))
+        {
+          priv->orientation = g_value_get_enum (value);
+          /* Re-box the children in the new orientation */
+          gtk_widget_queue_resize (GTK_WIDGET (box));
+          g_object_notify_by_pspec (object, pspec);
+        }
       break;
     case PROP_HOMOGENEOUS:
       gtk_flow_box_set_homogeneous (box, g_value_get_boolean (value));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]