From b9b55324c17793ebf0d82d6cd0203694a931497a Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 7 Mar 2011 10:11:46 -0500 Subject: 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(+) (limited to 'src') 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 @@ True + True 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 @@ True GTK_TOOLBAR_BOTH + False -- cgit v1.2.3