[evince] window: use the primary-toolbar style class for the window toolbar



commit 0e75517907cc83a9d7d3ac4c0b8413da8d1e5782
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 7 09:35:31 2011 -0500

    window: use the primary-toolbar style class for the window toolbar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644118

 configure.ac      |    2 +-
 shell/ev-window.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 005b675..028bbe3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,7 +125,7 @@ dnl Specify required versions of dependencies
 CAIRO_REQUIRED=1.10.0
 GLIB_REQUIRED=2.25.11
 KEYRING_REQUIRED=2.22.0
-GTK_REQUIRED=3.0.0
+GTK_REQUIRED=3.0.2
 NAUTILUS_REQUIRED=2.91.4
 
 AC_SUBST([GLIB_REQUIRED])
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 013ae3d..63eb87f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7110,6 +7110,10 @@ ev_window_init (EvWindow *ev_window)
 			       NULL));
 	g_object_unref (toolbars_model);
 
+	gtk_style_context_add_class
+		(gtk_widget_get_style_context (GTK_WIDGET (ev_window->priv->toolbar)),
+		 GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+
 	egg_editable_toolbar_show (EGG_EDITABLE_TOOLBAR (ev_window->priv->toolbar),
 				   "DefaultToolBar");
 	gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box),



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