[nautilus] icon-container: don't chain up style-updated for the desktop container
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] icon-container: don't chain up style-updated for the desktop container
- Date: Mon, 25 Apr 2011 17:36:21 +0000 (UTC)
commit 83a7d27b36120d1ae54a2f5aa4af30f04d470bf2
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 25 13:29:15 2011 -0400
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
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 b025e9c..3c931a8 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]