summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-desktop-directory.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 12:36:04 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 12:36:04 +0200
commit6f15dc7cc1be8b98bbc1f5edd963ff89076295ee (patch)
tree04a0b2971e10ce57880360f63147b2d137b84b2a /libcaja-private/caja-desktop-directory.c
parent373da58a33a4242f3d91771fd304ba8bb3d55e61 (diff)
downloadcaja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.bz2
caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.xz
start migration to gsettings
Diffstat (limited to 'libcaja-private/caja-desktop-directory.c')
-rw-r--r--libcaja-private/caja-desktop-directory.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/libcaja-private/caja-desktop-directory.c b/libcaja-private/caja-desktop-directory.c
index 1b334f1f..bb03f06a 100644
--- a/libcaja-private/caja-desktop-directory.c
+++ b/libcaja-private/caja-desktop-directory.c
@@ -62,7 +62,6 @@ typedef struct
CajaDesktopDirectory *desktop_dir;
gboolean monitor_hidden_files;
- gboolean monitor_backup_files;
CajaFileAttributes monitor_attributes;
} MergedMonitor;
@@ -296,7 +295,6 @@ static void
desktop_monitor_add (CajaDirectory *directory,
gconstpointer client,
gboolean monitor_hidden_files,
- gboolean monitor_backup_files,
CajaFileAttributes file_attributes,
CajaDirectoryCallback callback,
gpointer callback_data)
@@ -323,7 +321,6 @@ desktop_monitor_add (CajaDirectory *directory,
(gpointer) client, monitor);
}
monitor->monitor_hidden_files = monitor_hidden_files;
- monitor->monitor_backup_files = monitor_backup_files;
monitor->monitor_attributes = file_attributes;
/* Call through to the real directory add calls. */
@@ -332,7 +329,7 @@ desktop_monitor_add (CajaDirectory *directory,
/* Call up to real dir */
caja_directory_file_monitor_add
(desktop->details->real_directory, monitor,
- monitor_hidden_files, monitor_backup_files,
+ monitor_hidden_files,
file_attributes,
build_merged_callback_list, &merged_callback_list);
@@ -442,9 +439,9 @@ desktop_finalize (GObject *object)
g_hash_table_destroy (desktop->details->monitors);
g_free (desktop->details);
- eel_preferences_remove_callback (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
- desktop_directory_changed_callback,
- desktop);
+ g_signal_handlers_disconnect_by_func (caja_preferences,
+ desktop_directory_changed_callback,
+ desktop);
G_OBJECT_CLASS (caja_desktop_directory_parent_class)->finalize (object);
}
@@ -529,9 +526,9 @@ caja_desktop_directory_init (CajaDesktopDirectory *desktop)
update_desktop_directory (CAJA_DESKTOP_DIRECTORY (desktop));
- eel_preferences_add_callback (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
- desktop_directory_changed_callback,
- desktop);
+ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
+ G_CALLBACK(desktop_directory_changed_callback),
+ desktop);
}
static void