Set the primary-toolbar CSS class on the main toolbar under GTK3

This makes the main toolbar look like other GTK3 application ones.
This commit is contained in:
Colomban Wendling 2012-09-28 04:33:41 +02:00
parent f735e6800b
commit 1f244e0d54

View File

@ -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)