summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-12-04 11:49:14 +0100
committerAlexander Larsson <alexl@redhat.com>2009-12-04 11:52:57 +0100
commit678ce5181f51399e0b2f7a6cc198fecd9c728312 (patch)
treecea7596b7277a8cd8b9be551d954e951e84f3901
parent130efa47d9915a536c72ce8e14dd53b26c1c0156 (diff)
downloadnautilus-678ce5181f51399e0b2f7a6cc198fecd9c728312.tar.gz
Don't change background on the initial style_set call
This results in queueing an unnecessary background change which causes the EelBackground to be unrealized wrongly. This fixes https://bugzilla.gnome.org/show_bug.cgi?id=578136 (cherry picked from commit 002bea81792cdfe6f4e45da95a59708040566171)
-rw-r--r--eel/eel-background.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eel/eel-background.c b/eel/eel-background.c
index 81a4e619c..f6cf6ec9a 100644
--- a/eel/eel-background.c
+++ b/eel/eel-background.c
@@ -857,8 +857,10 @@ widget_style_set_cb (GtkWidget *widget, GtkStyle *previous_style, gpointer data)
EelBackground *background;
background = EEL_BACKGROUND (data);
-
- eel_widget_queue_background_change (widget);
+
+ if (previous_style != NULL) {
+ eel_widget_queue_background_change (widget);
+ }
}
static void