Revision: 5944 http://geany.svn.sourceforge.net/geany/?rev=5944&view=rev Author: ntrel Date: 2011-09-22 11:52:58 +0000 (Thu, 22 Sep 2011) Log Message: ----------- Add configuration_add_various_pref_group().
Modified Paths: -------------- trunk/ChangeLog trunk/src/keyfile.c trunk/src/keyfile.h trunk/src/stash.c trunk/src/ui_utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-09-21 16:03:11 UTC (rev 5943) +++ trunk/ChangeLog 2011-09-22 11:52:58 UTC (rev 5944) @@ -1,3 +1,9 @@ +2011-09-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/stash.c, src/keyfile.c, src/keyfile.h, src/ui_utils.c: + Add configuration_add_various_pref_group(). + + 2011-09-20 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/keyfile.c:
Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2011-09-21 16:03:11 UTC (rev 5943) +++ trunk/src/keyfile.c 2011-09-22 11:52:58 UTC (rev 5944) @@ -110,6 +110,14 @@ }
+/* The group will be free'd on quitting. */ +void configuration_add_various_pref_group(struct StashGroup *group) +{ + configuration_add_pref_group(group, TRUE); + stash_group_set_various(group, TRUE); +} + + static void init_pref_groups(void) { StashGroup *group; @@ -183,8 +191,7 @@
/* various geany prefs */ group = stash_group_new(PACKAGE); - configuration_add_pref_group(group, TRUE); - stash_group_set_various(group, TRUE); + configuration_add_various_pref_group(group);
stash_group_add_boolean(group, &editor_prefs.show_scrollbars, "show_editor_scrollbars", TRUE); @@ -210,8 +217,7 @@
/* various build-menu prefs */ group = stash_group_new("build-menu"); - configuration_add_pref_group(group, TRUE); - stash_group_set_various(group, TRUE); + configuration_add_various_pref_group(group);
stash_group_add_integer(group, &build_menu_prefs.number_ft_menu_items, "number_ft_menu_items", 0);
Modified: trunk/src/keyfile.h =================================================================== --- trunk/src/keyfile.h 2011-09-21 16:03:11 UTC (rev 5943) +++ trunk/src/keyfile.h 2011-09-22 11:52:58 UTC (rev 5944) @@ -37,6 +37,8 @@
void configuration_add_pref_group(struct StashGroup *group, gboolean for_prefs_dialog);
+void configuration_add_various_pref_group(struct StashGroup *group); + void configuration_save(void);
gboolean configuration_load(void);
Modified: trunk/src/stash.c =================================================================== --- trunk/src/stash.c 2011-09-21 16:03:11 UTC (rev 5943) +++ trunk/src/stash.c 2011-09-22 11:52:58 UTC (rev 5944) @@ -360,8 +360,7 @@ }
-/* Useful so the user can edit the keyfile manually while the program is running, - * and the setting won't be overridden. +/* Used for selecting groups passed to stash_tree_setup(). * @c FALSE by default. */ void stash_group_set_various(StashGroup *group, gboolean various) {
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2011-09-21 16:03:11 UTC (rev 5943) +++ trunk/src/ui_utils.c 2011-09-22 11:52:58 UTC (rev 5944) @@ -2066,8 +2066,7 @@ StashGroup *group = stash_group_new(PACKAGE);
/* various prefs */ - configuration_add_pref_group(group, TRUE); - stash_group_set_various(group, TRUE); + configuration_add_various_pref_group(group);
stash_group_add_boolean(group, &interface_prefs.show_symbol_list_expanders, "show_symbol_list_expanders", TRUE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.