[gtk+] box: set orientation style classes when setting orientation



commit f900df6f015b52aae86023a45ca976f732c34568
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri May 11 11:36:05 2012 -0400

    box: set orientation style classes when setting orientation
    
    Since we override the property, we have to call the internal helper
    manually.

 gtk/gtkbox.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index cc0cb8a..d41d66e 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -81,6 +81,7 @@
 #include "gtkboxprivate.h"
 #include "gtkintl.h"
 #include "gtkorientable.h"
+#include "gtkorientableprivate.h"
 #include "gtkprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtksizerequest.h"
@@ -354,6 +355,7 @@ gtk_box_set_property (GObject      *object,
     {
     case PROP_ORIENTATION:
       private->orientation = g_value_get_enum (value);
+      _gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
       gtk_widget_queue_resize (GTK_WIDGET (box));
       break;
     case PROP_SPACING:



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