[gnome-commander/GSettings] Renames a define
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/GSettings] Renames a define
- Date: Wed, 1 Jun 2016 21:18:26 +0000 (UTC)
commit e20a97c11442785c8bd185af7fb9c8c363ea0b0b
Author: Uwe Scholz <uwescholz src gnome org>
Date: Tue May 31 19:58:01 2016 +0200
Renames a define
src/gnome-cmd-data.cc | 8 ++++----
src/gnome-cmd-data.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index d8c320e..a50a5f4 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -199,7 +199,7 @@ void on_list_orientation_changed ()
{
gboolean list_orientation;
- list_orientation = g_settings_get_boolean (gnome_cmd_data.options.gcmd_settings->general,
GCMD_SETTINGS_LIST_ORIENTATION);
+ list_orientation = g_settings_get_boolean (gnome_cmd_data.options.gcmd_settings->general,
GCMD_SETTINGS_HORIZONTAL_ORIENTATION);
gnome_cmd_data.list_orientation = list_orientation;
main_win->update_list_orientation();
@@ -1767,7 +1767,7 @@ void GnomeCmdData::migrate_all_data_to_gsettings()
options.gcmd_settings->general,
GCMD_SETTINGS_MIDDLE_MOUSE_BUTTON_MODE);
//list_orientation
migrate_data_int_value_into_gsettings(gnome_cmd_data_get_bool ("/options/list_orientation", FALSE) ?
1 : 0,
- options.gcmd_settings->general,
GCMD_SETTINGS_LIST_ORIENTATION);
+ options.gcmd_settings->general,
GCMD_SETTINGS_HORIZONTAL_ORIENTATION);
// ToDo: Move old xml-file to ~/.gnome-commander/gnome-commander.xml.backup
// à la save_devices_old ("devices.backup");
// and move .gnome2/gnome-commander to .gnome2/gnome-commander.backup
@@ -1949,7 +1949,7 @@ void GnomeCmdData::load()
options.icon_scale_quality = (GdkInterpType) g_settings_get_enum (options.gcmd_settings->general,
GCMD_SETTINGS_ICON_SCALE_QUALITY);
options.theme_icon_dir = g_settings_get_string(options.gcmd_settings->general,
GCMD_SETTINGS_MIME_ICON_DIR);
cmdline_history_length = g_settings_get_uint (options.gcmd_settings->general,
GCMD_SETTINGS_CMDLINE_HISTORY_LENGTH);
- list_orientation = g_settings_get_boolean (options.gcmd_settings->general,
GCMD_SETTINGS_LIST_ORIENTATION);
+ list_orientation = g_settings_get_boolean (options.gcmd_settings->general,
GCMD_SETTINGS_HORIZONTAL_ORIENTATION);
gui_update_rate = gnome_cmd_data_get_int ("/options/gui_update_rate", DEFAULT_GUI_UPDATE_RATE);
priv->main_win_pos[0] = gnome_cmd_data_get_int ("/options/main_win_pos_x", -1);
priv->main_win_pos[1] = gnome_cmd_data_get_int ("/options/main_win_pos_y", -1);
@@ -2479,7 +2479,7 @@ void GnomeCmdData::save()
set_gsettings_enum_when_changed (options.gcmd_settings->general, GCMD_SETTINGS_ICON_SCALE_QUALITY,
options.icon_scale_quality);
set_gsettings_when_changed (options.gcmd_settings->general, GCMD_SETTINGS_MIME_ICON_DIR,
options.theme_icon_dir);
set_gsettings_when_changed (options.gcmd_settings->general, GCMD_SETTINGS_CMDLINE_HISTORY_LENGTH,
&(cmdline_history_length));
- set_gsettings_when_changed (options.gcmd_settings->general, GCMD_SETTINGS_LIST_ORIENTATION,
&(list_orientation));
+ set_gsettings_when_changed (options.gcmd_settings->general, GCMD_SETTINGS_HORIZONTAL_ORIENTATION,
&(list_orientation));
gnome_cmd_data_set_int ("/options/gui_update_rate", gui_update_rate);
gnome_cmd_data_set_bool ("/programs/honor_expect_uris", options.honor_expect_uris);
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 3ae5b03..ab35318 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -73,7 +73,7 @@ GcmdSettings *gcmd_settings_new (void);
#define GCMD_SETTINGS_ICON_SCALE_QUALITY "icon-scale-quality"
#define GCMD_SETTINGS_MIME_ICON_DIR "mime-icon-dir"
#define GCMD_SETTINGS_CMDLINE_HISTORY_LENGTH "cmdline-history-length"
-#define GCMD_SETTINGS_LIST_ORIENTATION "horizontal-orientation"
+#define GCMD_SETTINGS_HORIZONTAL_ORIENTATION "horizontal-orientation"
#define GCMD_PREF_FILTER "org.gnome.gnome-commander.preferences.filter"
#define GCMD_SETTINGS_FILTER_HIDE_UNKNOWN "hide-unknown"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]