[nautilus] views: use proper background color for inactive panes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] views: use proper background color for inactive panes
- Date: Wed, 19 Jan 2011 17:13:19 +0000 (UTC)
commit 5bfc3e50c91c4c6fc129e9383e3f2f20a87be0cf
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jan 19 18:11:58 2011 +0100
views: use proper background color for inactive panes
libnautilus-private/nautilus-icon-container.c | 8 ++++----
src/nautilus-list-view.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index ba95bec..8e23815 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -4146,19 +4146,19 @@ setup_background (NautilusIconContainer *container)
window = gtk_layout_get_bin_window (GTK_LAYOUT (container));
if (!container->details->active_background) {
- gtk_style_context_get_background_color (style, GTK_STATE_FLAG_FOCUSED, &color);
+ gtk_style_context_get_background_color (style, GTK_STATE_FLAG_NORMAL, &color);
DEBUG ("Container %p, making color inactive", container);
eel_make_color_inactive (&color);
gdk_window_set_background_rgba (window, &color);
- gtk_widget_override_background_color (GTK_WIDGET (container), GTK_STATE_FLAG_FOCUSED,
+ gtk_widget_override_background_color (GTK_WIDGET (container), GTK_STATE_FLAG_NORMAL,
&color);
} else {
DEBUG ("Container %p, removing color override", container);
- gtk_widget_override_background_color (GTK_WIDGET (container), GTK_STATE_FLAG_FOCUSED,
+ gtk_widget_override_background_color (GTK_WIDGET (container), GTK_STATE_FLAG_NORMAL,
NULL);
- gtk_style_context_get_background_color (style, GTK_STATE_FLAG_FOCUSED, &color);
+ gtk_style_context_get_background_color (style, GTK_STATE_FLAG_NORMAL, &color);
gdk_window_set_background_rgba (window, &color);
}
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index b6ee0b9..95d7ece 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1489,14 +1489,14 @@ setup_background (NautilusListView *view)
window = gtk_tree_view_get_bin_window (GTK_TREE_VIEW (widget));
if (!is_active) {
- gtk_style_context_get_background_color (style, GTK_STATE_FLAG_ACTIVE,
+ gtk_style_context_get_background_color (style, GTK_STATE_FLAG_NORMAL,
&color);
eel_make_color_inactive (&color);
- gtk_widget_override_background_color (widget, GTK_STATE_FLAG_ACTIVE, &color);
+ gtk_widget_override_background_color (widget, GTK_STATE_FLAG_NORMAL, &color);
gtk_style_context_set_background (style, window);
} else {
- gtk_widget_override_background_color (widget, GTK_STATE_FLAG_ACTIVE, NULL);
+ gtk_widget_override_background_color (widget, GTK_STATE_FLAG_NORMAL, NULL);
gtk_style_context_set_background (style, window);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]