[devhelp] window: set the style class before adding to the parent box



commit 3720024dbf0fd9bf4aa3f668a4fb63f36097b7ad
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 8 12:22:19 2011 -0500

    window: set the style class before adding to the parent box
    
    Otherwise buttons won't get the new style.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644221

 src/dh-window.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 16ff1e2..0404867 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -1083,12 +1083,13 @@ window_populate (DhWindow *window)
         gtk_box_pack_start (GTK_BOX (priv->menu_box), menubar,
                             FALSE, FALSE, 0);
         toolbar = gtk_ui_manager_get_widget (priv->manager, "/Toolbar");
-        gtk_box_pack_start (GTK_BOX (priv->menu_box), toolbar,
-                            FALSE, FALSE, 0);
 
 	gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
 				     GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
 
+        gtk_box_pack_start (GTK_BOX (priv->menu_box), toolbar,
+                            FALSE, FALSE, 0);
+
 #ifdef GDK_WINDOWING_QUARTZ
         {
                 GtkWidget       *widget;



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