Nick Treleaven
700e6e96bf
Add sci_set_line_indentation(), sci_get_line_indentation() to API
...
(patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 14:46:32 +00:00
Enrico Tröger
3f3d2d1b9b
Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:09 +00:00
Nick Treleaven
216bf2e5f5
Fix Class Builder plugin to use correct indentation instead of
...
always tabs.
Make editor_insert_text_block() only replace leading tabs for the
'Tabs' indent type; also group edits for undo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4845 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-21 17:04:31 +00:00
Nick Treleaven
53b6be1d64
Synchronize popup menu and plugin preferences dialog 'Show Hidden
...
Files' option (fixes #2989288 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4836 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-19 12:03:32 +00:00
Enrico Tröger
e28ca32274
Add option 'System Default' for toolbar icon style and size to use the GTK default value.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:08 +00:00
Frank Lanitz
a70c8a1513
Make HTMLchars plugin remember whether replacement of special characters was activated even after restart of Geany or reloading of plugin.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-09 20:42:45 +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
f3e103c1e4
Beep if the user hasn't entered a class name on pressing OK.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-31 11:35:31 +00:00
Nick Treleaven
62f79f8f2a
Don't generate FOO_GET_PRIVATE() macro because caching the result
...
in Foo::priv can be much more efficient.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-30 17:19:59 +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
Enrico Tröger
1864e6e6a5
Deprecate GEANY_WINDOW_MINIMAL_WIDTH/GEANY_WINDOW_MINIMAL_HEIGHT to not set Geany's minimum window size anymore ( closes #2972992 ).
...
As replacement, add GEANY_DEFAULT_DIALOG_HEIGHT.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4782 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-20 16:20:55 +00:00
Enrico Tröger
31a4eddf44
Add utils_copy_environment() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4764 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-15 14:48:43 +00:00
Enrico Tröger
f72f6381df
Add and use convenience function ui_is_keyval_enter_or_return() and add it to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 19:33:15 +00:00
Enrico Tröger
46e7e124d9
After opening files, focus the editor widget (based on a patch by Can Koy, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4736 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 18:48:12 +00:00
Enrico Tröger
c5e50e2930
After opening files, focus the editor widget (based on a patch by Can Koy, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4735 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 18:43:31 +00:00
Enrico Tröger
42f8c1fc47
Re-add a wanted tab in the comment
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 14:59:52 +00:00
Enrico Tröger
5c1d191b4c
Replace tabs by spaces.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-21 13:30:31 +00:00
Enrico Tröger
48ca569fea
Minor fixes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4683 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-21 13:29:46 +00:00
Frank Lanitz
3cec880ae8
Close meta tag for export date properly.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4594 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-31 12:07:39 +00:00
Nick Treleaven
9021717031
Use full function name for GeanyFunctions function pointers. This
...
avoids naming conflicts e.g. with C++'s 'new' keyword.
Remove deprecated header pluginmacros.h - use geanyfunctions.h instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-25 15:53:54 +00:00
Nick Treleaven
8f3ee7d8a4
Don't use VERSION macro as the demo plugin should be able to be built independently from Geany.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4532 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-18 16:57:37 +00:00
Frank Lanitz
383841ce01
Add editor_insert_text_block() to plugin API
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-12 18:44:38 +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
Enrico Tröger
4021505786
Add sci_find_text() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-31 15:47:56 +00:00
Enrico Tröger
09afb37dad
Add editor_get_eol_char_name(), editor_get_eol_char_len() and editor_get_eol_char() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4508 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:23:54 +00:00
Enrico Tröger
8206add238
Cast the GTK way.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4459 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-30 22:04:32 +00:00
Enrico Tröger
bfbfad47d5
Add an in-entry clear icon to the filebrowser plugin's filter entry (patch by Dominic Hopf, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4457 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-30 21:41:41 +00:00
Enrico Tröger
bb81104fcb
Add main_is_realized() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-29 13:36:26 +00:00
Nick Treleaven
17a336aa7c
Allow GeanyKeyBinding label field to contain underscores, which won't
...
be displayed by Geany. This saves adding near-duplicate translation
strings.
Add mnemonics for 3 Edit->Format menu items.
Add keybindings_get_label().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4389 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-29 11:59:55 +00:00
Nick Treleaven
d797f9cb02
Fix packing configure widgets equally.
...
Use spacing multiples of 6 as recommended by Gnome HIG.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4369 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 15:31:00 +00:00
Nick Treleaven
b7cc451a56
Don't install unnecessary headers: dialogs.h, main.h, plugins.h,
...
sciwrappers.h, build.h. (This helps to get compiler warnings for uses
of functions not in the API).
Warning: any plugins that include these headers should remove them.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4366 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 13:06:51 +00:00
Enrico Tröger
d7e8d98649
Add sci_goto_line() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4363 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-25 22:27:13 +00:00
Enrico Tröger
8d2a258b94
Rename "select" variables into "selection" to avoid shadowed names.
...
Make use of ui_widget_modify_font_from_string().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4362 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-25 12:32:57 +00:00
Enrico Tröger
192997370a
Add ui_widget_modify_font_from_string() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4361 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-25 12:30:36 +00:00
Enrico Tröger
e87dda5c74
Fix adding the filetype's default extension when using the Instant Save plugin (2885142).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4358 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-25 11:43:21 +00:00
Nick Treleaven
120af21ccb
Call editor_apply_update_prefs() from editor_create_widget() so
...
correct tab width and other settings are applied for Split Window
plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 17:55:30 +00:00
Nick Treleaven
0b8c46a8a8
Add highlighting_set_styles() to API, use for Split Window plugin so
...
filetypes.common settings get set too.
Make highlighting_set_styles() take GeanyFiletype pointer instead of
filetype id.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:54:15 +00:00
Nick Treleaven
cf35a8a495
Revert r4301 - utils_free_pointers() taking 4 arguments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:15:28 +00:00
Nick Treleaven
539f8b3068
Add document_get_notebook_page() to API.
...
Minor edits of dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4311 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 12:21:18 +00:00
Nick Treleaven
39cdcac742
Make Split Window 'Show current document' button have a drop-down menu
...
to select the other documents.
Add new API function ui_menu_add_document_items().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-13 17:14:25 +00:00
Nick Treleaven
f36c9024a3
Make utils_free_pointers() take 4 arguments, add to API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 16:03:10 +00:00
Nick Treleaven
d8a5b10864
Commit forgotten file (oops).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4266 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-29 13:56:37 +00:00
Nick Treleaven
8c38bdd745
Add plugin_show_configure() API utility function.
...
Add File Browser popup menu 'Preferences' item.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4244 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-27 14:07:24 +00:00
Nick Treleaven
32fcd0459d
Make foreach_slist_free() macro to free each node whilst iterating.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4230 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-22 17:53:07 +00:00
Nick Treleaven
51370136c6
Free file list memory whilst iterating the list.
...
Minor formatting fixes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4201 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-17 14:45:17 +00:00
Nick Treleaven
1986d915cc
Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
c100272031
Add sci_set_marker_at_line(), sci_delete_marker_at_line(),
...
sci_is_marker_set_at_line() to the plugin API (thanks to Yura
Siamashka).
Add sci_toggle_marker_at_line().
Fix SciFuncs alignment.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4178 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-12 17:39:49 +00:00
Enrico Tröger
316f77f1f8
Add new plugin signal: "document-before-save".
...
Add get_line_end_position(), set_target_start(), set_target_end(), replace_target() to the plugin API (patch by Eugene Arshinov, thanks).
Add new plugin signal: "document-filetype-set" (closes #2852286 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4162 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:51:11 +00:00
Nick Treleaven
43620e7ce4
Remove GeanyKeyGroup struct from the API - plugins should not set
...
these fields.
Make keybindings_set_item() duplicate the name and label fields
(needed by GeanyLua) and return a keybinding pointer.
Add keybindings_get_item() to the API (in case it's useful).
Move some keybinding code out of plugin source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4123 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 16:55:56 +00:00
Nick Treleaven
770d40ab98
Update PLUGIN_KEY_GROUP() macro so it doesn't allocate any
...
GeanyKeyBinding or GeanyKeyGroup structs, so we don't need to break
the ABI when adding fields to them.
Add plugin_set_key_group() for plugins to dynamically set a
keybinding group (e.g. for the Lua script plugin). Used in Split
Window plugin as an example.
Improve keybinding docs a little.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4115 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-24 11:35:13 +00:00