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
Nick Treleaven
e3076fc1c0
Set the cursor color for the split window.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4113 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-21 10:49:50 +00:00
Nick Treleaven
aa85bcec6a
Add geanyfunctions.h to API docs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4112 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-20 12:16:28 +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
86a168fb9f
Change utils_str_remove_chars() to work in place; fix allocating on
...
the stack (the string length could exhaust the stack size).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4012 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 11:00:32 +00:00
Enrico Tröger
46ecf7061d
Fix broken 'Show the current document' tool button icon.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4006 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:12:24 +00:00
Enrico Tröger
373678aec3
Move utils_str_remove_chars() from the plugins/splitwindow.c to src/utils.c and add it to the plugin API.
...
Make utils_str_remove_chars() work on a new copy of the input string instead of modifying it in place.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4003 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:10:46 +00:00
Nick Treleaven
c4513eecaf
Add geanyplugin.h single include for plugin API; update all core
...
plugins to use it.
Add sci_set_font() to API.
Update plugin howto.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 15:06:20 +00:00
Nick Treleaven
80ac9273ee
Note geanyfunctions.h must be included last.
...
Use triple quoted text for file header.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3965 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 13:26:19 +00:00
Nick Treleaven
c980e1160f
Edit label.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-07 12:30:47 +00:00
Nick Treleaven
9d8863f79e
Fix removing underscores in translated string using no_underscore()
...
macro.
Set a tooltip for the Split Window plugin's Show Current tool button.
Add utils_strdupa() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3922 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-07 11:57:50 +00:00
Nick Treleaven
c8820b45d5
Fix using same version number as Geany.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-22 15:09:16 +00:00
Enrico Tröger
29574a354c
Avoid using deprecated GTK API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3877 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:14 +00:00
Nick Treleaven
f56cad490e
Remove data_ptr argument to foreach_[s]list() macros, as using
...
node->data is enough sometimes; this makes the macro a bit more
efficient too.
Add foreach_[s]list() macros to the plugin API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-12 15:32:35 +00:00
Enrico Tröger
5de4dc54e8
Fix wrongly created header guards when the class filenames contains dashes (patch by PCMan, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3838 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:09:04 +00:00
Enrico Tröger
1330c145e1
When a filter is set, apply it only to files, not directories and apply the filter to the UTF-8 name of the file as the filter string itself is also UTF-8.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3772 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-08 16:13:29 +00:00
Enrico Tröger
a032a5c111
Use the startup path as the initial directory for the filebrowser plugin when no project and no files are opened
...
(patch by Matias Gea, thanks; closes #2780521 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-24 19:31:23 +00:00
Enrico Tröger
5ff2057412
Add utils_str_middle_truncate() and document_get_basename_for_display() to the plugin API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3719 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:53:11 +00:00
Nick Treleaven
8bf28b76fb
Merge trunk changes.
...
Add string.h include for htmlchars.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3679 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-03 13:45:47 +00:00
Enrico Tröger
d71d3521d2
Fix Windows build by removing the last reference of the old VCdiff plugin (oops, reported by Timothy Boronczyk).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3678 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-02 15:49:19 +00:00
Nick Treleaven
26d27cbd2e
Rename sorted_filetypes filetypes_by_title, and add to GeanyData
...
for plugin API access.
Fix order of filetypes in Save Actions Instant Save configuration
dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3677 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-02 15:00:17 +00:00
Frank Lanitz
c7a62c6b3d
Applied a patch by Enrico to improve code of htmlchars plugin
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 20:35:28 +00:00
Frank Lanitz
10ea2cc7ba
Remove usage of deprecated sci_get_selected_text() from htmlchars plugin.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 18:45:16 +00:00
Enrico Tröger
df4a62d571
Deprecate sci_get_text(), sci_get_selected_text() and sci_get_text_range().
...
Add sci_get_contents(), sci_get_contents_range() and sci_get_selection_contents() as replacement functions to provide an easier and cleaner API (initial patch by Frank).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 18:13:28 +00:00
Frank Lanitz
3c36f39cd5
Extend htmlchars plugin with some replacment functions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 17:22:18 +00:00
Enrico Tröger
476c18e7af
Add keybindings for the split actions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-19 17:50:38 +00:00
Enrico Tröger
f6087b5af8
Use G_DEFINE_TYPE in the GTK+ class template instead of manual code.
...
Other minor cleanups.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 09:59:58 +00:00
Enrico Tröger
fbbe778eeb
Fix punctuation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-05 13:03:51 +00:00
Enrico Tröger
f3351261ed
Fix possible crash on non-32-bit systems (patch by Wolfgang Ocker, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3610 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:07:06 +00:00
Frank Lanitz
44c2ec3bb5
Removed deprecated plugin VC Diff. Please use geanyVC instead
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3603 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-26 01:25:38 +00:00
Enrico Tröger
a6eda7c875
Enable socket support when cross-compiling.
...
Enable plugin compilation when cross-compiling.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3594 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-24 18:25:41 +00:00
Nick Treleaven
c6859d74a2
Don't build Split Window plugin on Windows (doesn't work).
...
Add note about ChangeLog.pre-0-17.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3588 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-16 13:18:20 +00:00
Enrico Tröger
8cd312e250
Small optimisations by moving out function calls of loop break conditions (patch by Frank, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:11:25 +00:00
Enrico Tröger
e98cf99fb7
Don't follow the path of the document if the document has not an absolute file path.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3568 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:52:43 +00:00
Enrico Tröger
d6c1d1e801
Add editor_get_word_at_pos() as a convenient function to retrieve the word at a given position.
...
Make document_get_status_color() returning a const GdkColor.
Add editor_get_word_at_pos() and document_get_status_color() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3567 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:52:21 +00:00
Enrico Tröger
0e8e7a687b
Fix path quoting problems on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3566 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:51:49 +00:00
Enrico Tröger
27530eabe8
Make Menu key and Shift-F10 working on the filebrowser treeview.
...
Return TRUE if appropriate in the event handlers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3565 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:51:31 +00:00
Enrico Tröger
51b3a33503
Add plugin_module_make_resident() to the plugin API which allows plugins to make the module resident. This seems necessary when using GTypes, e.g. by using the GObject API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3559 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-06 19:05:12 +00:00
Enrico Tröger
c45ea64eec
Add an option to 'follow the path of the current file' in the filebrowser plugin.
...
Add an option to automatically set the project's base directory when a project is opened/changed (closes #2554027 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-01 18:48:09 +00:00
Enrico Tröger
56a1470bb9
Add utils_string_replace_first() to the plugin API.
...
Allow entering paths prefixed with '~' in the filebrowser path entry.
Show the full path for files and folders in the filebrowser plugin as tooltips.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3529 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 16:12:25 +00:00
Enrico Tröger
5752ee9863
Rename utils_start_browser() in utils_open_browser() and add it to the plugin API.
...
Add plugin symbol plugin_help() which is called by Geany when the plugin should show its documentation (if any). This symbol is optional, plugins can omit it if not needed.
Add a Help button next to the Configure button in the plugin manager dialog to easily open a plugin's documentation if available.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3524 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 19:30:18 +00:00
Enrico Tröger
f22c9a5916
Mention necessary header includes in the plugin signal descriptions.
...
Add missing header includes for the demoplugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3522 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 17:55:58 +00:00
Enrico Tröger
a2c01c6637
Use the selection 'changed' signal of the treeview to update the popup menu items and show the popup menu on mouse button press events so right clicking on items will select them first.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 17:22:34 +00:00
Enrico Tröger
644a9cfbff
Add a progressbar widget to the statusbar and use it to show progress when building with the Make commands, when printing and when using Find in Files.
...
Add progressbar convenience functions and ui_entry_add_clear_icon() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 20:19:43 +00:00
Enrico Tröger
836fa1dca0
Add dialogs_show_input_numeric() to the plugins API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:47 +00:00
Enrico Tröger
de3d3b42fb
Add document_save_file_as and document_rename_file to the plugin API.
...
If GIO is available, use GFileMonitor to watch for file disk changes and indicate them immediately using an orange tab label colour.
Break plugin ABI for this and the last commits.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3484 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:19:58 +00:00
Enrico Tröger
4a6abdaa0e
Fix build without GIO again (sorry).
...
Remove trailing slashes in Makefile.am's (patch by Daniel Richard G., thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3463 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-12 00:33:29 +00:00