diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-03-07 23:11:46 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-03-07 23:35:26 +0800 |
commit | b9b55324c17793ebf0d82d6cd0203694a931497a (patch) | |
tree | 663b5d271977a2db495f6280eb4f0a4aa1c97343 /src | |
parent | 5b894aa5ad8702279c0458b890025a22172bfdd1 (diff) | |
download | gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.tar gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.tar.gz gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.tar.bz2 gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.tar.lz gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.tar.xz gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.tar.zst gsoc2013-empathy-b9b55324c17793ebf0d82d6cd0203694a931497a.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.ui | 3 | ||||
-rw-r--r-- | src/empathy-debug-window.c | 2 | ||||
-rw-r--r-- | 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 8b274a126..ecd00dfc1 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 f09cbd5ff..97cda470c 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 3c015392d..0cfd6bee4 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> |