[devhelp] window: add the primary-toolbar style hint to the toolbar



commit d4292cfd144e2c40ac24b57aae65e746b1d94902
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 7 09:31:16 2011 -0500

    window: add the primary-toolbar style hint to the toolbar

 configure.ac    |    4 ++--
 src/dh-window.c |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8d0e814..0274547 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,13 +71,13 @@ AC_SUBST(REQUIRES_LIBWNCK)
 
 PKG_CHECK_MODULES(DEVHELP, [
   gthread-2.0 >= 2.10.0
-  gtk+-3.0
+  gtk+-3.0 >= 3.0.2
   webkitgtk-3.0
   glib-2.0 >= 2.25.11
 ])
 
 PKG_CHECK_MODULES(LIBDEVHELP, [
-  gtk+-3.0
+  gtk+-3.0 >= 3.0.2
   $gconf_pkgconfig
   $libwnck_pkgconfig
   $igemacintegration_pkgconfig
diff --git a/src/dh-window.c b/src/dh-window.c
index ca0486f..1e35bf1 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -1085,6 +1085,9 @@ window_populate (DhWindow *window)
         gtk_box_pack_start (GTK_BOX (priv->menu_box), toolbar,
                             FALSE, FALSE, 0);
 
+	gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+				     GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+
 #ifdef GDK_WINDOWING_QUARTZ
         {
                 GtkWidget       *widget;



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