[nautilus] window: use GTK_STYLE_CLASS_SIDEBAR for the nautilus sidebar



commit 9c65f3b6675fb927a96a7dd52d6fec4eb700adce
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 17 17:34:39 2011 -0400

    window: use GTK_STYLE_CLASS_SIDEBAR for the nautilus sidebar

 configure.in          |    2 +-
 data/nautilus.css     |    3 ---
 src/nautilus-window.c |    2 ++
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/configure.in b/configure.in
index 964e04a..6d239ce 100644
--- a/configure.in
+++ b/configure.in
@@ -5,7 +5,7 @@ dnl ===========================================================================
 m4_define(glib_minver,                 2.28.0)
 m4_define(gnome_desktop_minver,        2.91.2)
 m4_define(pango_minver,                1.1.2)
-m4_define(gtk_minver,                  3.0.2)
+m4_define(gtk_minver,                  3.0.4)
 m4_define(xml_minver,                  2.4.7)
 m4_define(exif_minver,                 0.5.12)
 m4_define(exempi_minver,               1.99.5)
diff --git a/data/nautilus.css b/data/nautilus.css
index 2b6c263..623364b 100644
--- a/data/nautilus.css
+++ b/data/nautilus.css
@@ -57,6 +57,3 @@ NautilusFloatingBar > GtkBox > GtkButton {
     -GtkButton-inner-border: 0;
 }
 
-NautilusPlacesSidebar {
-    background-color: shade (@theme_base_color, 0.95);
-}
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index a9813ab..8413de6 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -447,6 +447,8 @@ nautilus_window_set_up_sidebar (NautilusWindow *window)
 	DEBUG ("Setting up sidebar id %s", window->details->sidebar_id);
 
 	window->details->sidebar = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+	gtk_style_context_add_class (gtk_widget_get_style_context (window->details->sidebar),
+				     GTK_STYLE_CLASS_SIDEBAR);
 
 	gtk_paned_pack1 (GTK_PANED (window->details->content_paned),
 			 GTK_WIDGET (window->details->sidebar),



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