summaryrefslogtreecommitdiff
path: root/src/caja-application.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 /src/caja-application.c
parent373da58a33a4242f3d91771fd304ba8bb3d55e61 (diff)
downloadcaja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.bz2
caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.xz
start migration to gsettings
Diffstat (limited to 'src/caja-application.c')
-rw-r--r--src/caja-application.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index 50c28a25..54023ec9 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -234,7 +234,7 @@ automount_all_volumes (CajaApplication *application)
GMount *mount;
GVolume *volume;
- if (eel_preferences_get_boolean (CAJA_PREFERENCES_MEDIA_AUTOMOUNT))
+ if (g_settings_get_boolean (caja_media_preferences, CAJA_PREFERENCES_MEDIA_AUTOMOUNT))
{
/* automount all mountable volumes at start-up */
volumes = g_volume_monitor_get_volumes (application->volume_monitor);
@@ -974,7 +974,7 @@ caja_application_startup (CajaApplication *application,
char *accel_map_filename;
if (!no_desktop &&
- !eel_preferences_get_boolean (CAJA_PREFERENCES_SHOW_DESKTOP))
+ !g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_DESKTOP))
{
no_desktop = TRUE;
}
@@ -999,18 +999,15 @@ caja_application_startup (CajaApplication *application,
}
/* Monitor the preference to show or hide the desktop */
- eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_SHOW_DESKTOP,
- desktop_changed_callback,
- application,
- G_OBJECT (application));
+ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_SHOW_DESKTOP,
+ G_CALLBACK(desktop_changed_callback),
+ G_OBJECT (application));
/* Monitor the preference to have the desktop */
/* point to the Unix home folder */
- eel_preferences_add_callback_while_alive (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
- desktop_location_changed_callback,
- NULL,
- G_OBJECT (application));
-
+ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
+ G_CALLBACK(desktop_location_changed_callback),
+ G_OBJECT (application));
/* Create the other windows. */
if (urls != NULL || !no_default_window)
{
@@ -1613,7 +1610,7 @@ desktop_changed_callback (gpointer user_data)
CajaApplication *application;
application = CAJA_APPLICATION (user_data);
- if ( eel_preferences_get_boolean (CAJA_PREFERENCES_SHOW_DESKTOP))
+ if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_DESKTOP))
{
caja_application_open_desktop (application);
}
@@ -1639,7 +1636,7 @@ volume_added_callback (GVolumeMonitor *monitor,
GVolume *volume,
CajaApplication *application)
{
- if (eel_preferences_get_boolean (CAJA_PREFERENCES_MEDIA_AUTOMOUNT) &&
+ if (g_settings_get_boolean (caja_media_preferences, CAJA_PREFERENCES_MEDIA_AUTOMOUNT) &&
g_volume_should_automount (volume) &&
g_volume_can_mount (volume))
{