[nautilus-actions] NASettings: define new 'main-tabs-pos' user preference



commit 57239cb2af33eaee07647f6405a4f571eb4613b1
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Feb 1 22:22:31 2012 +0100

    NASettings: define new 'main-tabs-pos' user preference

 ChangeLog              |    3 +++
 src/core/na-settings.c |    1 +
 src/core/na-settings.h |    1 +
 3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8ca4f73..fcf7589 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-02-01 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-settings.c:
+	* src/core/na-settings.h: Define new "main-tabs-pos" user preference.
+
 	* src/core/na-importer-ask.c (on_destroy_toplevel): Reset static variable.
 
 	* src/io-desktop/nadp-reader.c
diff --git a/src/core/na-settings.c b/src/core/na-settings.c
index 50eed36..a6eb647 100644
--- a/src/core/na-settings.c
+++ b/src/core/na-settings.c
@@ -172,6 +172,7 @@ static const KeyDef st_def_keys[] = {
 	{ NA_IPREFS_MAIN_PANED,                       GROUP_NACT,    NA_DATA_TYPE_UINT,        "200" },
 	{ NA_IPREFS_MAIN_SAVE_AUTO,                   GROUP_NACT,    NA_DATA_TYPE_BOOLEAN,     "false" },
 	{ NA_IPREFS_MAIN_SAVE_PERIOD,                 GROUP_NACT,    NA_DATA_TYPE_UINT,        "5" },
+	{ NA_IPREFS_MAIN_TABS_POS,                    GROUP_NACT,    NA_DATA_TYPE_STRING,      "Top" },
 	{ NA_IPREFS_MAIN_TOOLBAR_EDIT_DISPLAY,        GROUP_NACT,    NA_DATA_TYPE_BOOLEAN,     "true" },
 	{ NA_IPREFS_MAIN_TOOLBAR_FILE_DISPLAY,        GROUP_NACT,    NA_DATA_TYPE_BOOLEAN,     "true" },
 	{ NA_IPREFS_MAIN_TOOLBAR_HELP_DISPLAY,        GROUP_NACT,    NA_DATA_TYPE_BOOLEAN,     "true" },
diff --git a/src/core/na-settings.h b/src/core/na-settings.h
index 6482996..6650322 100644
--- a/src/core/na-settings.h
+++ b/src/core/na-settings.h
@@ -113,6 +113,7 @@ G_BEGIN_DECLS
 #define NA_IPREFS_MAIN_PANED						"main-paned-width"
 #define NA_IPREFS_MAIN_SAVE_AUTO					"main-save-auto"
 #define NA_IPREFS_MAIN_SAVE_PERIOD					"main-save-period"
+#define NA_IPREFS_MAIN_TABS_POS						"main-tabs-pos"
 #define NA_IPREFS_MAIN_TOOLBAR_EDIT_DISPLAY			"main-toolbar-edit-display"
 #define NA_IPREFS_MAIN_TOOLBAR_FILE_DISPLAY			"main-toolbar-file-display"
 #define NA_IPREFS_MAIN_TOOLBAR_HELP_DISPLAY			"main-toolbar-help-display"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]