diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 15:09:52 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 15:09:52 +0200 |
commit | 3f9a8ff95dd0632f52ecdbe4067fffd7b3c0df20 (patch) | |
tree | fdd7000bd5264789e9ea1d632baa1e63a217a28c | |
parent | f0ef6466ec0987807fcffdd41b09e88fc1292802 (diff) | |
download | caja-3f9a8ff95dd0632f52ecdbe4067fffd7b3c0df20.tar.bz2 caja-3f9a8ff95dd0632f52ecdbe4067fffd7b3c0df20.tar.xz |
convert exit with last window to gsettings
-rw-r--r-- | libcaja-private/caja-global-preferences.c | 5 | ||||
-rw-r--r-- | libcaja-private/caja-global-preferences.h | 2 | ||||
-rw-r--r-- | src/caja-main.c | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c index 85eb2827..c690c61f 100644 --- a/libcaja-private/caja-global-preferences.c +++ b/libcaja-private/caja-global-preferences.c @@ -209,11 +209,6 @@ typedef struct static const PreferenceDefault preference_defaults[] = { { - CAJA_PREFERENCES_EXIT_WITH_LAST_WINDOW, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (TRUE) - }, - { CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS, PREFERENCE_STRING, "local_only", diff --git a/libcaja-private/caja-global-preferences.h b/libcaja-private/caja-global-preferences.h index 82cb033e..ef4ae2ba 100644 --- a/libcaja-private/caja-global-preferences.h +++ b/libcaja-private/caja-global-preferences.h @@ -32,7 +32,7 @@ G_BEGIN_DECLS /* Whether exit when last window destroyed */ -#define CAJA_PREFERENCES_EXIT_WITH_LAST_WINDOW "preferences/exit_with_last_window" +#define CAJA_PREFERENCES_EXIT_WITH_LAST_WINDOW "exit-with-last-window" /* Desktop Background options */ #define CAJA_PREFERENCES_BACKGROUND_SET "background-set" diff --git a/src/caja-main.c b/src/caja-main.c index 52b208b9..ef5714b2 100644 --- a/src/caja-main.c +++ b/src/caja-main.c @@ -494,7 +494,7 @@ main (int argc, char *argv[]) caja_global_preferences_init (); /* exit_with_last_window being FALSE, caja can run without window. */ - exit_with_last_window = eel_preferences_get_boolean (CAJA_PREFERENCES_EXIT_WITH_LAST_WINDOW); + exit_with_last_window = g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_EXIT_WITH_LAST_WINDOW); application = NULL; |