From 5bcf04619f76183562f0649c66e7d22a7be5b35e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 8 Mar 2011 07:39:47 -0500 Subject: Bug 644166 - Add style class to primary toolbars Requires GTK+ >= 3.0.2 since GTK_STYLE_CLASS_PRIMARY_TOOLBAR is a very recent addition. --- shell/e-shell-window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shell') diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 8c0258eb87..1ba075d957 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -414,6 +414,10 @@ shell_window_construct_toolbar (EShellWindow *shell_window) toolbar = e_shell_window_get_managed_widget ( shell_window, "/main-toolbar"); + gtk_style_context_add_class ( + gtk_widget_get_style_context (toolbar), + GTK_STYLE_CLASS_PRIMARY_TOOLBAR); + if (e_shell_get_meego_mode (shell)) gtk_widget_set_name (GTK_WIDGET (toolbar), "MeeGoToolbar"); -- cgit v1.2.3