[nautilus/gnome-2-28] Don't change background on the initial style_set call



commit 678ce5181f51399e0b2f7a6cc198fecd9c728312
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Dec 4 11:49:14 2009 +0100

    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)

 eel/eel-background.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/eel/eel-background.c b/eel/eel-background.c
index 81a4e61..f6cf6ec 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]