[nautilus] Fix up desktop-is-home-dir gsettings conversion
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Fix up desktop-is-home-dir gsettings conversion
- Date: Fri, 23 Jul 2010 10:33:58 +0000 (UTC)
commit 43652872e6b5644c831a9041c9d2e3e22a8ef773
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jul 22 22:09:38 2010 +0200
Fix up desktop-is-home-dir gsettings conversion
libnautilus-private/nautilus-file-utilities.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-utilities.c b/libnautilus-private/nautilus-file-utilities.c
index 1034683..f7165be 100644
--- a/libnautilus-private/nautilus-file-utilities.c
+++ b/libnautilus-private/nautilus-file-utilities.c
@@ -681,7 +681,7 @@ nautilus_is_desktop_directory_file (GFile *dir,
NULL);
desktop_dir_changed_callback_installed = TRUE;
}
-
+
if (desktop_dir == NULL) {
update_desktop_dir ();
}
@@ -695,12 +695,12 @@ nautilus_is_desktop_directory (GFile *dir)
{
if (!desktop_dir_changed_callback_installed) {
- eel_preferences_add_callback (NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR,
- desktop_dir_changed_callback,
- NULL);
+ g_signal_connect_swapped (nautilus_preferences, "changed::" NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR,
+ G_CALLBACK(desktop_dir_changed_callback),
+ NULL);
desktop_dir_changed_callback_installed = TRUE;
}
-
+
if (desktop_dir == NULL) {
update_desktop_dir ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]