[seahorse] key-manager: set the primary-toolbar style class on the toolbar



commit 6c4e35de42e101966abe3977ca437b779b6f6e6b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 22 17:59:52 2011 -0400

    key-manager: set the primary-toolbar style class on the toolbar
    
    This time, in a GTK2-compatible fashion.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644216

 src/seahorse-key-manager.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/seahorse-key-manager.c b/src/seahorse-key-manager.c
index 53d7d0b..029fa05 100644
--- a/src/seahorse-key-manager.c
+++ b/src/seahorse-key-manager.c
@@ -918,6 +918,12 @@ seahorse_key_manager_constructor (GType type, guint n_props, GObjectConstructPar
 				GtkSeparatorToolItem* sep;
 				GtkBox* box;
 				GtkToolItem* item;
+
+#if GTK_CHECK_VERSION (3, 0, 0)
+                                gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (toolbar)),
+                                                             GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+                                gtk_widget_reset_style (GTK_WIDGET (toolbar));
+#endif
 				
 				/* Insert a separator to right align the filter */
 				sep = GTK_SEPARATOR_TOOL_ITEM (gtk_separator_tool_item_new ());



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