diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-25 13:29:15 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-04-25 13:29:15 -0400 |
commit | e6e408d6cfb104a940a6751fc2a96a2cd0e5c427 (patch) | |
tree | 1034604423f16f4cb3cb63857c22a2798aeeadba | |
parent | 467d542d50db8e852b2a3d988ba95005e0620cf0 (diff) | |
download | nautilus-e6e408d6cfb104a940a6751fc2a96a2cd0e5c427.tar.gz |
icon-container: don't chain up style-updated for the desktop container
Chaining up resets the background to the default color, which is not
what we want for the desktop container.
https://bugzilla.gnome.org/show_bug.cgi?id=648137
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index b025e9cef..3c931a862 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -4187,20 +4187,22 @@ style_updated (GtkWidget *widget) { NautilusIconContainer *container; - GTK_WIDGET_CLASS (nautilus_icon_container_parent_class)->style_updated (widget); - container = NAUTILUS_ICON_CONTAINER (widget); container->details->use_drop_shadows = container->details->drop_shadows_requested; + /* Don't chain up to parent, if this is a desktop container, + * because that resets the background of the window. + */ + if (!nautilus_icon_container_get_is_desktop (container)) { + GTK_WIDGET_CLASS (nautilus_icon_container_parent_class)->style_updated (widget); + } + nautilus_icon_container_theme_changed (NAUTILUS_ICON_CONTAINER (widget)); if (gtk_widget_get_realized (widget)) { invalidate_label_sizes (container); nautilus_icon_container_request_update_all (container); } - - /* Don't chain up to parent, because that sets the background of the window and we're doing - that ourself with some delay, so this would cause flickering */ } static gboolean |