[rhythmbox] shell: add the primary-toolbar class style to the toolbar



commit 1899cd3ecc21af0c0451e7eaa6d3314e0d96725b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 22 19:07:43 2011 -0400

    shell: add the primary-toolbar class style to the toolbar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645577

 shell/rb-shell.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index 9bd1032..1c2040e 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -1520,6 +1520,8 @@ construct_load_ui (RBShell *shell)
 	gtk_box_reorder_child (GTK_BOX (shell->priv->main_vbox), menubar, 0);
 
 	toolbar = gtk_ui_manager_get_widget (shell->priv->ui_manager, "/ToolBar");
+	gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+				     GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
 	gtk_box_pack_start (GTK_BOX (shell->priv->main_vbox), toolbar, FALSE, FALSE, 0);
 	gtk_box_reorder_child (GTK_BOX (shell->priv->main_vbox), toolbar, 1);
 	gtk_widget_show (toolbar);



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