Enrico Tröger
ef0a297d9b
Remove unused variables (suggested by Eugene Arshinov).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5814 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 10:00:53 +00:00
Enrico Tröger
6ac2623208
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
1c60d96df5
Fix using gint* for integer settings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5337 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-28 11:45:14 +00:00
Nick Treleaven
21536dfb84
Fix build with GLib 2.8.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5293 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-08 14:42:41 +00:00
Nick Treleaven
6bb2011f14
Improve Stash GUI example.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5252 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-22 16:33:38 +00:00
Nick Treleaven
cc736eb4af
Fix writing the default value when a key is missing for hidden
...
prefs, even if it was overridden when it was originally read.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5121 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-10 12:46:30 +00:00
Nick Treleaven
a8bc1cb59a
Add Stash widget functions to API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4795 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-31 16:21:28 +00:00
Nick Treleaven
90acc27a7a
Add Stash setting functions to API.
...
Remove unnecessary argument to stash_group_load_from_file().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-30 16:29:38 +00:00
Nick Treleaven
809a37ddd2
Add stash_group_load_from_file() and stash_group_save_to_file().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4778 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-19 17:38:27 +00:00
Nick Treleaven
86e5bb4bc7
Make adding string and string vector settings initialise the setting
...
to NULL for safety.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4777 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-19 12:51:08 +00:00
Nick Treleaven
201b595b51
Rename Stash data types to be independently named from Geany (so
...
Stash can be reused for other projects).
Rename GeanyPrefGroup to StashGroup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-18 17:04:17 +00:00
Nick Treleaven
aa872a4545
Add doc-comments for Stash setting functions.
...
Add an example file showing usage of Stash.
(Not enabled yet until added to the plugin API).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4769 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-17 17:15:47 +00:00
Enrico Tröger
7ba4a81181
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Nick Treleaven
e270ab749f
Use typedef instead of pointer for widget_id function arguments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4393 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-30 14:09:46 +00:00
Nick Treleaven
69922305e0
Add plugin_signal_connect() for connecting plugin signals at
...
runtime and also for connecting to any GObject signal.
Add 'Plugin Utility Functions' on main page.
Add foreach_array() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4041 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-29 17:40:20 +00:00
Nick Treleaven
20c66a6816
Add stash_group_add_widget_property() so we can save any widget's
...
read/write properties.
Use Stash for ui_prefs.sidebar_page setting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3996 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 12:00:06 +00:00
Nick Treleaven
555c06727c
Fix using prefs dialog editor & files tab spin button values when
...
they've just been edited and Alt-O is used to close the dialog
without moving the focus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3452 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-08 17:14:18 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Nick Treleaven
640053e598
Add ui_hookup_widget() macro to the API.
...
Make saving Stash string settings NULL-safe.
Move fif_extra_options search setting code to search.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3428 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-28 17:25:09 +00:00
Nick Treleaven
ad6626fc0d
Use G_STRFUNC instead of G_GNUC_FUNCTION, which doesn't work for modern compilers.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3427 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-28 16:20:52 +00:00
Nick Treleaven
0f575ea2b7
Don't forget active plugins after disabling plugin support.
...
Use Stash for plugin-related prefs.
Add geany_object "save-settings" signal (for core only).
Add stash_group_add_string_vector().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3425 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-28 13:21:35 +00:00
Nick Treleaven
f0d2f92e65
Add Project Indentation prefs, which override the Editor
...
Preferences dialog options. For new projects, these default to the
editor indent prefs.
- Plugins:
For compatibility with this change, use editor_get_indent_prefs().
- Code changes:
The Project Properties dialog is now created by Glade, but (for
now) the existing options are added manually.
Add GeanyProjectPrivate project field.
Add stash_group_set_use_defaults().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3423 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-27 12:55:04 +00:00
Nick Treleaven
e455f5967c
Add comment note about why we use a GArray rather than having users
...
declare a static array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3420 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-22 18:18:14 +00:00
Nick Treleaven
c56f0c450b
Add stash_group_add_combo_box_entry(), stash_group_add_entry().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3419 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-22 17:13:37 +00:00
Nick Treleaven
6a2f565931
Rename GeanyPrefEntry::type -> setting_type for clarity.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3418 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-22 16:14:48 +00:00
Nick Treleaven
df5b4d85d9
Remove remaining PrefEntry code, use Stash instead.
...
Add stash_group_add_spin_button_integer(),
stash_group_add_combo_box().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3417 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-22 16:03:16 +00:00
Nick Treleaven
e1cc154601
Use helper function add_widget_pref() for GUI prefs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3416 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-22 13:01:50 +00:00
Nick Treleaven
26fc571dcd
Rename stash_group_load() -> stash_group_load_from_key_file().
...
Rename stash_group_save() -> stash_group_save_to_key_file().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3415 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-22 12:50:19 +00:00
Nick Treleaven
f4fd1ea2ca
Use Stash radio button prefs instead of RadioPrefEntry.
...
Add stash_group_add_radio_buttons().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3375 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-15 13:02:29 +00:00
Nick Treleaven
b280806a40
Add note about not duplicating static arrays passed to Stash.
...
Don't duplicate default_value argument for string prefs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3358 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 13:25:08 +00:00
Nick Treleaven
a6992526e8
Add foreach_ptr_array() macro to utils.h.
...
Merge toggle button prefs code into keyfile.c Stash code.
Add toggle button support to Stash code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3356 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-11 12:49:26 +00:00
Nick Treleaven
5c5dfe9df5
Move Stash data types to stash.c, so Stash functions could be used
...
by plugins without breaking the ABI when appending fields. Also the
user code is neater and has type checking.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3349 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 13:16:52 +00:00
Nick Treleaven
78c3589336
Add G_TYPE_STRING setting support to Stash code, use in keyfile.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3302 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-01 14:54:47 +00:00
Nick Treleaven
4bbdf80b14
Add foreach_c_array() macro in utils.h.
...
Add stash.[hc] for reading/writing GKeyFile settings and (later)
synchronizing widgets with C variables. Currently this only
supports boolean and integer settings.
Replace keyfile.c SettingEntry code with new stash code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3285 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-28 12:52:19 +00:00