[nautilus/gtk3-breakage] desktop-window: monitor the desktop dir key from NautilusDesktopWindow



commit d5bb9cc9a706aef3c3930525bb5590acd2f9f940
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Oct 27 13:20:21 2010 +0200

    desktop-window: monitor the desktop dir key from NautilusDesktopWindow
    
    Remove that code from NautilusApplication, it doesn't belong there.

 src/nautilus-desktop-window.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c
index c110821..3799233 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -30,11 +30,13 @@
 #include <X11/Xatom.h>
 #include <gdk/gdkx.h>
 #include <gtk/gtk.h>
+#include <gio/gio.h>
+#include <glib/gi18n.h>
+
 #include <eel/eel-vfs-extensions.h>
 #include <libnautilus-private/nautilus-file-utilities.h>
 #include <libnautilus-private/nautilus-icon-names.h>
-#include <gio/gio.h>
-#include <glib/gi18n.h>
+#include <libnautilus-private/nautilus-global-preferences.h>
 
 struct NautilusDesktopWindowDetails {
 	gulong size_changed_id;
@@ -79,6 +81,12 @@ nautilus_desktop_window_init (NautilusDesktopWindow *window)
 	if (accessible) {
 		atk_object_set_name (accessible, _("Desktop"));
 	}
+
+	/* Monitor the preference to have the desktop */
+	/* point to the Unix home folder */
+	g_signal_connect_swapped (nautilus_preferences, "changed::" NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR,
+				  G_CALLBACK (nautilus_desktop_window_update_directory),
+				  window);
 }
 
 static gint



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