[PATCH] Disconnect all old eel file preferences callbacks in nautilus_connect_background_to_file_metadata



Proposed patch attached.



-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-directory-background.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-directory-background.c,v
retrieving revision 1.99
diff -u -p -r1.99 nautilus-directory-background.c
--- libnautilus-private/nautilus-directory-background.c	8 Aug 2006 14:09:07 -0000	1.99
+++ libnautilus-private/nautilus-directory-background.c	26 Dec 2006 17:04:05 -0000
@@ -630,6 +630,15 @@ nautilus_connect_background_to_file_meta
 		eel_preferences_remove_callback (NAUTILUS_PREFERENCES_THEME,
                                                  nautilus_file_background_theme_changed,
                                                  background);
+		eel_preferences_remove_callback (NAUTILUS_PREFERENCES_BACKGROUND_SET,
+                                                 nautilus_file_background_theme_changed,
+                                                 background);
+		eel_preferences_remove_callback (NAUTILUS_PREFERENCES_BACKGROUND_COLOR,
+                                                 nautilus_file_background_theme_changed,
+                                                 background);
+		eel_preferences_remove_callback (NAUTILUS_PREFERENCES_BACKGROUND_FILENAME,
+                                                 nautilus_file_background_theme_changed,
+                                                 background);
 
 	}
 


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