[empathy] all: set the primary-toolbar style class on primary toolbars



commit b9b55324c17793ebf0d82d6cd0203694a931497a
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 7 10:11:46 2011 -0500

    all: set the primary-toolbar style class on primary toolbars
    
    So themes can override their appearance without hardcoding the widget
    hierarchy.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644121

 src/empathy-call-window.ui |    3 +++
 src/empathy-debug-window.c |    2 ++
 src/empathy-main-window.ui |    3 +++
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.ui b/src/empathy-call-window.ui
index 8b274a1..ecd00df 100644
--- a/src/empathy-call-window.ui
+++ b/src/empathy-call-window.ui
@@ -110,6 +110,9 @@
         <child>
           <object class="GtkToolbar" id="toolbar">
             <property name="visible">True</property>
+            <style>
+            	<class name="primary-toolbar"/>
+            </style>
             <child>
               <object class="GtkToolButton" id="hangup">
                 <property name="visible">True</property>
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index f09cbd5..97cda47 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1407,6 +1407,8 @@ am_prepared_cb (GObject *am,
   gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), TRUE);
   gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar),
       GTK_ICON_SIZE_SMALL_TOOLBAR);
+  gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+			       GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
   gtk_widget_show (toolbar);
 
   gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
diff --git a/src/empathy-main-window.ui b/src/empathy-main-window.ui
index 3c01539..0cfd6be 100644
--- a/src/empathy-main-window.ui
+++ b/src/empathy-main-window.ui
@@ -297,6 +297,9 @@
           <object class="GtkToolbar" id="presence_toolbar">
             <property name="visible">True</property>
             <property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
+            <style>
+              <class name="primary-toolbar"/>
+            </style>
           </object>
           <packing>
             <property name="expand">False</property>



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