[nautilus] places-sidebar: use the widget type directly instead of defining a class
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-sidebar: use the widget type directly instead of defining a class
- Date: Fri, 25 Feb 2011 02:10:10 +0000 (UTC)
commit 6c9cfec6cca8fc51049eac6c7677516b5d241677
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Feb 24 20:51:08 2011 -0500
places-sidebar: use the widget type directly instead of defining a class
data/nautilus.css | 8 ++++----
src/nautilus-places-sidebar.c | 4 ----
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/data/nautilus.css b/data/nautilus.css
index 46c84da..d7792c3 100644
--- a/data/nautilus.css
+++ b/data/nautilus.css
@@ -4,10 +4,6 @@
-NautilusIconContainer-light-info-rgba: shade (@selected_fg_color, 0.6);
}
-GtkTreeView.NautilusSidebar {
- background-color: #f6f6f4;
-}
-
#statusbar-no-border {
-GtkStatusbar-shadow-type: none;
}
@@ -37,6 +33,10 @@ NautilusFloatingBar > GtkBox > .button {
border-style: none;
}
+NautilusPlacesSidebar {
+ background-color: shade (@theme_base_color, 0.95);
+}
+
/* Toolbars */
NautilusToolbar > .toolbar {
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 05dc38b..01fa372 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -2962,7 +2962,6 @@ nautilus_places_sidebar_init (NautilusPlacesSidebar *sidebar)
GtkTreeViewColumn *col;
GtkCellRenderer *cell;
GtkTreeSelection *selection;
- GtkStyleContext *style;
sidebar->volume_monitor = g_volume_monitor_get ();
@@ -2980,9 +2979,6 @@ nautilus_places_sidebar_init (NautilusPlacesSidebar *sidebar)
tree_view = GTK_TREE_VIEW (gtk_tree_view_new ());
gtk_tree_view_set_headers_visible (tree_view, FALSE);
- style = gtk_widget_get_style_context (GTK_WIDGET (tree_view));
- gtk_style_context_add_class (style, "NautilusSidebar");
-
col = GTK_TREE_VIEW_COLUMN (gtk_tree_view_column_new ());
/* initial padding */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]