From 1f244e0d54fb544caa8250a2efa634d24d0f4f15 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Fri, 28 Sep 2012 04:33:41 +0200 Subject: [PATCH] Set the primary-toolbar CSS class on the main toolbar under GTK3 This makes the main toolbar look like other GTK3 application ones. --- src/toolbar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/toolbar.c b/src/toolbar.c index fcd0a84a6..e27c375ad 100644 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -395,6 +395,9 @@ GtkWidget *toolbar_init(void) gtk_ui_manager_insert_action_group(uim, group, 0); toolbar = toolbar_reload(NULL); +#if GTK_CHECK_VERSION(3, 0, 0) + gtk_style_context_add_class(gtk_widget_get_style_context(toolbar), "primary-toolbar"); +#endif gtk_settings = gtk_widget_get_settings(GTK_WIDGET(toolbar)); if (gtk_settings != NULL)