[nautilus] desktop-window: monitor the desktop dir key from NautilusDesktopWindow
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] desktop-window: monitor the desktop dir key from NautilusDesktopWindow
- Date: Sat, 30 Oct 2010 15:22:15 +0000 (UTC)
commit 0712652a5f3730d10bca4040b68f3dda1e98c0bf
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]