[nautilus] desktop: add a nautilus-desktop style class to the desktop canvas
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] desktop: add a nautilus-desktop style class to the desktop canvas
- Date: Wed, 7 Sep 2011 18:38:58 +0000 (UTC)
commit 8b676a68b698b705a6008c89d53fded1cf635981
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Sep 7 14:37:40 2011 -0400
desktop: add a nautilus-desktop style class to the desktop canvas
So that themes can tweak the color/background of desktop canvas items
separately.
libnautilus-private/nautilus-icon-container.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 3e5c09d..f9ee2f5 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -8456,6 +8456,13 @@ nautilus_icon_container_set_is_desktop (NautilusIconContainer *container,
g_return_if_fail (NAUTILUS_IS_ICON_CONTAINER (container));
container->details->is_desktop = is_desktop;
+
+ if (is_desktop) {
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (container));
+ gtk_style_context_add_class (context, "nautilus-desktop");
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]