[gnome-commander/GSettings] noop: Move migration of two internalviewer options
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/GSettings] noop: Move migration of two internalviewer options
- Date: Tue, 2 Aug 2016 20:32:47 +0000 (UTC)
commit 19c903341f5233a49215ac6e2757d64819eca669
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sat Jul 30 12:51:07 2016 +0200
noop: Move migration of two internalviewer options
src/gnome-cmd-data.cc | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 3924d08..9fc6c5e 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -2988,12 +2988,6 @@ void GnomeCmdData::migrate_all_data_to_gsettings()
//ftp_anonymous_password
migrate_data_string_value_into_gsettings(gnome_cmd_data_get_string
("/network/ftp_anonymous_password", "you provider com"),
options.gcmd_settings->network,
GCMD_SETTINGS_FTP_ANONYMOUS_PASSWORD);
- //case_sens
- migrate_data_int_value_into_gsettings(gnome_cmd_data_get_bool ("/internal_viewer/case_sens", FALSE)
? 1 : 0,
- options.gcmd_settings->internalviewer,
GCMD_SETTINGS_IV_CASE_SENSITIVE);
- //last_mode
- migrate_data_int_value_into_gsettings(gnome_cmd_data_get_int ("/internal_viewer/last_mode", 0),
- options.gcmd_settings->internalviewer,
GCMD_SETTINGS_IV_SEARCH_MODE);
//auto_load0 -> migrate the string into a gsettings string array
if (gnome_cmd_data_get_int ("/plugins/count", 0))
{
@@ -3024,6 +3018,13 @@ void GnomeCmdData::migrate_all_data_to_gsettings()
g_free(str_array);
g_list_free(cmdline_history_for_migration);
}
+ /////////////////////// internal viewer specs ///////////////////////
+ //case_sens
+ migrate_data_int_value_into_gsettings(gnome_cmd_data_get_bool ("/internal_viewer/case_sens", FALSE)
? 1 : 0,
+ options.gcmd_settings->internalviewer,
GCMD_SETTINGS_IV_CASE_SENSITIVE);
+ //last_mode
+ migrate_data_int_value_into_gsettings(gnome_cmd_data_get_int ("/internal_viewer/last_mode", 0),
+ options.gcmd_settings->internalviewer,
GCMD_SETTINGS_IV_SEARCH_MODE);
g_free(color);
// ToDo: Move old xml-file to ~/.gnome-commander/gnome-commander.xml.backup
// à la save_devices_old ("devices.backup");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]