[gnumeric] Conf: base generated parts on gsettings schemas.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Conf: base generated parts on gsettings schemas.
- Date: Fri, 28 Oct 2011 15:29:57 +0000 (UTC)
commit 4a1cf3715c77c37e96b70db3fde40f87746140da
Author: Morten Welinder <terra gnome org>
Date: Fri Oct 28 11:23:35 2011 -0400
Conf: base generated parts on gsettings schemas.
src/gnumeric-conf.c | 62 ++++++++++++++++++++++++++++-----------------------
src/gnumeric-conf.h | 7 +++--
2 files changed, 38 insertions(+), 31 deletions(-)
---
diff --git a/src/gnumeric-conf.c b/src/gnumeric-conf.c
index d34d19b..0c4605e 100644
--- a/src/gnumeric-conf.c
+++ b/src/gnumeric-conf.c
@@ -637,26 +637,6 @@ gnm_conf_get_detachable_toolbars (void)
/* ----------- AUTOMATICALLY GENERATED CODE BELOW -- DO NOT EDIT ----------- */
-static struct cb_watch_enum watch_toolbar_style = {
- 0, "/apps/gnome-settings/gnumeric/toolbar_style", GTK_TOOLBAR_ICONS,
-};
-
-GtkToolbarStyle
-gnm_conf_get_toolbar_style (void)
-{
- if (!watch_toolbar_style.handler)
- watch_enum (&watch_toolbar_style, GTK_TYPE_TOOLBAR_STYLE);
- return watch_toolbar_style.var;
-}
-
-void
-gnm_conf_set_toolbar_style (GtkToolbarStyle x)
-{
- if (!watch_toolbar_style.handler)
- watch_enum (&watch_toolbar_style, GTK_TYPE_TOOLBAR_STYLE);
- set_enum (&watch_toolbar_style, x);
-}
-
static struct cb_watch_bool watch_autocorrect_first_letter = {
0, "autocorrect/first-letter", TRUE,
};
@@ -1051,7 +1031,7 @@ gnm_conf_get_core_file_save_extension_check_disabled_node (void)
}
static struct cb_watch_bool watch_core_file_save_single_sheet = {
- 0, "core/file/save/single_sheet", TRUE,
+ 0, "core/file/save/single-sheet", TRUE,
};
gboolean
@@ -1077,7 +1057,7 @@ gnm_conf_get_core_file_save_single_sheet_node (void)
}
static struct cb_watch_bool watch_core_gui_cells_extension_markers = {
- 0, "core/gui/cells/extension_markers", FALSE,
+ 0, "core/gui/cells/extension-markers", FALSE,
};
gboolean
@@ -1103,7 +1083,7 @@ gnm_conf_get_core_gui_cells_extension_markers_node (void)
}
static struct cb_watch_bool watch_core_gui_cells_function_markers = {
- 0, "core/gui/cells/function_markers", FALSE,
+ 0, "core/gui/cells/function-markers", FALSE,
};
gboolean
@@ -1155,7 +1135,7 @@ gnm_conf_get_core_gui_editing_autocomplete_node (void)
}
static struct cb_watch_enum watch_core_gui_editing_enter_moves_dir = {
- 0, "core/gui/editing/enter_moves_dir", GO_DIRECTION_DOWN,
+ 0, "core/gui/editing/enter-moves-dir", GO_DIRECTION_DOWN,
};
GODirection
@@ -1493,7 +1473,7 @@ gnm_conf_get_core_gui_toolbars_object_position_node (void)
}
static struct cb_watch_bool watch_core_gui_toolbars_object_visible = {
- 0, "core/gui/toolbars/object-visible", FALSE,
+ 0, "core/gui/toolbars/object-visible", TRUE,
};
gboolean
@@ -1753,7 +1733,7 @@ gnm_conf_get_core_sort_dialog_max_initial_clauses_node (void)
}
static struct cb_watch_int watch_core_workbook_autosave_time = {
- 0, "core/workbook/autosave_time", 0, 365 * 24 * 60 * 60, 0,
+ 0, "core/workbook/autosave-time", 0, 365 * 24 * 60 * 60, 0,
};
int
@@ -3503,8 +3483,28 @@ gnm_conf_get_stf_export_terminator_node (void)
return get_node (watch_stf_export_terminator.key);
}
+static struct cb_watch_enum watch_toolbar_style = {
+ 0, "toolbar-style", GTK_TOOLBAR_ICONS,
+};
+
+GtkToolbarStyle
+gnm_conf_get_toolbar_style (void)
+{
+ if (!watch_toolbar_style.handler)
+ watch_enum (&watch_toolbar_style, GTK_TYPE_TOOLBAR_STYLE);
+ return watch_toolbar_style.var;
+}
+
+void
+gnm_conf_set_toolbar_style (GtkToolbarStyle x)
+{
+ if (!watch_toolbar_style.handler)
+ watch_enum (&watch_toolbar_style, GTK_TYPE_TOOLBAR_STYLE);
+ set_enum (&watch_toolbar_style, x);
+}
+
static struct cb_watch_int watch_undo_max_descriptor_width = {
- 0, "undo/max_descriptor_width", 5, 256, 40,
+ 0, "undo/max-descriptor-width", 5, 256, 40,
};
int
@@ -3556,7 +3556,7 @@ gnm_conf_get_undo_maxnum_node (void)
}
static struct cb_watch_bool watch_undo_show_sheet_name = {
- 0, "undo/show_sheet_name", FALSE,
+ 0, "undo/show-sheet-name", FALSE,
};
gboolean
@@ -3746,6 +3746,12 @@ gnm_conf_get_stf_export_dir_node (void)
}
GOConfNode *
+gnm_conf_get_toolbar_style_dir_node (void)
+{
+ return get_node ("toolbar-style");
+}
+
+GOConfNode *
gnm_conf_get_undo_dir_node (void)
{
return get_node ("undo");
diff --git a/src/gnumeric-conf.h b/src/gnumeric-conf.h
index 462a259..e550cc2 100644
--- a/src/gnumeric-conf.h
+++ b/src/gnumeric-conf.h
@@ -30,9 +30,6 @@ gboolean gnm_conf_get_detachable_toolbars (void);
/* ----------- AUTOMATICALLY GENERATED CODE BELOW -- DO NOT EDIT ----------- */
-GtkToolbarStyle gnm_conf_get_toolbar_style (void);
-void gnm_conf_set_toolbar_style (GtkToolbarStyle);
-
GOConfNode *gnm_conf_get_autocorrect_first_letter_node (void);
gboolean gnm_conf_get_autocorrect_first_letter (void);
void gnm_conf_set_autocorrect_first_letter (gboolean);
@@ -469,6 +466,9 @@ GOConfNode *gnm_conf_get_stf_export_terminator_node (void);
const char *gnm_conf_get_stf_export_terminator (void);
void gnm_conf_set_stf_export_terminator (const char *);
+GtkToolbarStyle gnm_conf_get_toolbar_style (void);
+void gnm_conf_set_toolbar_style (GtkToolbarStyle);
+
GOConfNode *gnm_conf_get_undo_max_descriptor_width_node (void);
int gnm_conf_get_undo_max_descriptor_width (void);
void gnm_conf_set_undo_max_descriptor_width (int);
@@ -508,6 +508,7 @@ GOConfNode *gnm_conf_get_plugins_dir_node (void);
GOConfNode *gnm_conf_get_printsetup_dir_node (void);
GOConfNode *gnm_conf_get_searchreplace_dir_node (void);
GOConfNode *gnm_conf_get_stf_export_dir_node (void);
+GOConfNode *gnm_conf_get_toolbar_style_dir_node (void);
GOConfNode *gnm_conf_get_undo_dir_node (void);
/* ----------- AUTOMATICALLY GENERATED CODE ABOVE -- DO NOT EDIT ----------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]