[geany/geany] 1f244e: Set the primary-toolbar CSS class on the main toolbar under GTK3

Colomban Wendling git-noreply at xxxxx
Sun Mar 10 16:23:38 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 09 Oct 2012 11:25:12 UTC
Commit:      1f244e0d54fb544caa8250a2efa634d24d0f4f15
             https://github.com/geany/geany/commit/1f244e0d54fb544caa8250a2efa634d24d0f4f15

Log Message:
-----------
Set the primary-toolbar CSS class on the main toolbar under GTK3

This makes the main toolbar look like other GTK3 application ones.


Modified Paths:
--------------
    src/toolbar.c

Modified: src/toolbar.c
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -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)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list