Nick Treleaven
921f010ffc
Rename msgwin_compiler_add -> msgwin_compiler_add_string.
...
Rename msgwin_msg_add -> msgwin_msg_add_string.
Rename msgwin_compiler_add_fmt -> msgwin_compiler_add.
Rename msgwin_msg_add_fmt -> msgwin_msg_add.
This fixes 2 geanyfunctions.h macros, and is more consistent with
msgwin_status_add().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3326 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 17:30:06 +00:00
Nick Treleaven
501ddabb69
Remove final filetypes_array old macro usage.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3325 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 17:26:30 +00:00
Nick Treleaven
bcfc76db9f
Fix use of filetypes_array.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3324 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 16:41:23 +00:00
Nick Treleaven
7994128e38
Rename sci_cmd() to sci_send_command() to match the plugin API and
...
fix the generated macro name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 12:34:20 +00:00
Nick Treleaven
73d44c0a79
Update to use geanyfunctions.h.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3317 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 17:05:36 +00:00
Enrico Tröger
724ac63ac1
Add command line option to suppress status output.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3316 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 16:17:04 +00:00
Nick Treleaven
2d015b6fb2
Allow generating macros for functions with digits in the name.
...
Don't generate dummyprefix_scintilla_send_message and lookup_widget
macros.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3312 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 13:55:11 +00:00
Nick Treleaven
5e85300f65
Deprecate pluginmacros.h in favour of geanyfunctions.h.
...
Move geany macro to plugindata.h.
Remove geanyfunctions.h dependency on pluginmacros.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3311 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 13:26:48 +00:00
Nick Treleaven
5763dfbe2d
Add document_index(), filetypes_index() array accessor functions to
...
the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3310 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 18:03:54 +00:00
Nick Treleaven
80b936037e
Add scintilla_send_message() to the API with its own prefix, so
...
the geanyfunctions.h macro works.
Deprecate p_sci->send_message().
Add scintilla_new() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3309 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 13:36:45 +00:00
Nick Treleaven
b5ff19731e
Move target for geanyfunctions.h to plugins/Makefile.am and depend
...
on src/plugins.c instead of all plugin API headers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-03 12:41:05 +00:00
Nick Treleaven
f813a6a7e4
Add ui_lookup_widget() to plugin API (so genapi.py has a suitable
...
prefix).
Mark SupportFuncs as deprecated.
Add description comment for geanyfunctions.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3307 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-02 18:33:41 +00:00
Nick Treleaven
80a8939612
Add header guards for geanyfunctions.h and include pluginmacros.h
...
temporarily.
Update Demo plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3306 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-02 17:05:50 +00:00
Nick Treleaven
98e127d3bd
Generate plugin API header geanyfunctions.h containing macros to
...
avoid having to type the function pointer names manually.
E.g. plugin_add_toolbar_item(...) is expanded to
p_plugin->add_toolbar_item(...).
Note: For now, building on Windows or with Waf needs genapi.py to be
run manually when adding plugin API functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-02 16:34:32 +00:00
Nick Treleaven
bea7bbab00
Use g_str_has_suffix() instead of utils_str_equal().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3277 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-24 17:57:16 +00:00
Enrico Tröger
160e5e8491
Attempt to make utils_get_date_time() UTF-8 safe and add it to the plugin API.
...
Fix misnamed str_casecmp() function in the plugin API, sorry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 17:40:04 +00:00
Nick Treleaven
dc8227ad94
Add function ui_image_menu_item_new() to the plugin API, to easily
...
create a menu item with a stock image and a custom label.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3261 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 13:34:58 +00:00
Enrico Tröger
81ffd05aa1
dd ui_widget_set_tooltip_text() as a convenience function to easily set tooltips for widgets. It uses gtk_widget_set_tooltip_text() on GTK >= 2.12 otherwise the old tooltips API.Use ui_widget_set_tooltip_text().
...
Use ui_widget_set_tooltip_text() in the plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:14:42 +00:00
Nick Treleaven
484f1ea9ab
Update utils_free_pointers().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3246 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 17:24:10 +00:00
Enrico Tröger
d7caf0f9c0
Follow XDG Base Directory specification and use $XDG_CONFIG_HOME/geany (most often this is ~/.config/geany) as default configuration directory ( closes #2166229 ).
...
The previous configuration will be moved to the new location if the new directory doesn't exist yet.
Move utils_make_settings_dir() into main.c.
Remove win32_get_appdata_folder() because g_get_user_config_dir() does the same.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 14:37:47 +00:00
Nick Treleaven
24c7302f9c
Add Split Vertically command (patch by Moritz Barsnick, thanks;
...
#2219553 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3215 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 16:21:32 +00:00
Enrico Tröger
0b49cf4449
Use 'utf8' as encoding package in the LaTeX template as it seems it is the most used version for UTF-8 support.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3208 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 18:07:35 +00:00
Nick Treleaven
12e29d7ebd
Make Version Diff plugin set the indent type for diffs based on the
...
current file's indent type.
Add editor_set_indent_type() to the API.
Note: uses editor.h plugindata.h include.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3194 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-08 13:32:55 +00:00
Enrico Tröger
bae8ca23d7
Revert last change as it breaks (again) the primary X selection as well as the mouse cursor on the scrollbar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-30 15:23:27 +00:00
Enrico Tröger
c9fc4a1048
Try to fix a weird bug in reparenting the notebook widget when splitting on Windows. It still occurs on unsplitting.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-29 20:52:22 +00:00
Enrico Tröger
6bc86c4462
Replace gtk_widget_(un)ref() with g_object(un)ref(), patch by Colomban Wendling, thanks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-22 15:36:45 +00:00
Enrico Tröger
a47d72432c
Include "support.h" for I18N support instead of <glib/gi18n.h> to get strings translated with GLib 2.18+.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3112 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-18 10:54:49 +00:00
Nick Treleaven
1096ec427c
Fix mixed indentation (prevents vcdiff.c being detected as T/S).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3096 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-15 12:24:48 +00:00
Nick Treleaven
51d28d688d
Use ui_add_document_sensitive().
...
Use PLUGIN_VERSION_CHECK(GEANY_API_VERSION) for internal plugins,
except the Demo plugin (as an example).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3085 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-14 17:03:44 +00:00
Nick Treleaven
d8d727752e
- API changes:
...
Replace p_ui->get_toolbar_insert_position() with
p_plugin->add_toolbar_item(), which also adds a separator when the
first item is added.
Add 'GeanyPlugin *geany_plugin' plugin symbol, partly to replace
plugin_info (now deprecated), mainly to identify a plugin and hold
private implementation fields for plugin utility functions.
(plugin_info will be removed after the 0.15 release.)
- Code changes:
Add ui_auto_separator_add_ref() to hide separator-like widgets when
their visible group elements are hidden or destroyed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3074 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-13 12:38:32 +00:00
Enrico Tröger
5b772ef629
InstantSave: when opening new files from template, use the template's filetype, otherwise fall back to configured default filetype.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3072 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-12 17:51:56 +00:00
Nick Treleaven
76708ae327
Fix only updating filename label after saving the relevant document.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3059 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-08 11:38:40 +00:00
Enrico Tröger
9aa5ba41c7
Plug some memory leaks due to some missing g_object_unref's.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 18:51:50 +00:00
Nick Treleaven
c430b7e57a
Add filename label.
...
Fix Gtk warning when resplitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3055 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 17:31:17 +00:00
Nick Treleaven
8c2a6ed157
Refactor with set_editor().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3054 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 17:12:33 +00:00
Nick Treleaven
73c73a6bcf
Fix segfault when clicking on split window after the original
...
document has been closed and the view has been refreshed to another
document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3053 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 15:19:37 +00:00
Nick Treleaven
c47a0d8ab2
Use EditWindow structure instead of separate global variables.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3052 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 14:50:54 +00:00
Nick Treleaven
21b5fb03f2
Fix file header info.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 12:03:45 +00:00
Nick Treleaven
7d3adcea45
Add toolbar with Refresh button to sync to the current document, and
...
an Unsplit button (reuses existing string).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3049 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 12:00:29 +00:00
Nick Treleaven
ff85d28238
Fix wrong editor scrollbar mouse cursor and broken middle-click
...
paste after splitting or unsplitting (fixes #2142186 ).
Note: this is a workaround for an issue with Scintilla where the
widget (or its parents) can't be removed or reparented to a
non-visible widget.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-06 16:13:35 +00:00
Nick Treleaven
a9f071e3f5
Remove trailing whitespace.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3043 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-06 15:48:42 +00:00
Enrico Tröger
75d46bff7e
Merge InstantSave, AutoSave and BackupCopy plugins into the plugin 'Save Actions'.
...
Add a section for documentation of internal plugins in the documentation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3035 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-02 13:37:35 +00:00
Nick Treleaven
186e366348
Add editor_create_widget() to the API; remove editor_create(),
...
editor_destroy().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2950 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-16 15:21:46 +00:00
Nick Treleaven
e6c807c25b
Use SCI_STYLEGET(FONT|SIZE) instead of parsing editor_font.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-15 16:53:31 +00:00
Nick Treleaven
a0493aa678
Make menu document-sensitive.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-12 14:12:15 +00:00
Nick Treleaven
0d9f0ea3df
Set pane splitter halfway.
...
Copy cursor position from original editor.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2939 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-11 16:26:34 +00:00
Nick Treleaven
0bf9414532
Unsplit when the source document is closed.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2937 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-11 15:06:14 +00:00
Nick Treleaven
906ec0e73b
Move menu items to a submenu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2935 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-10 14:49:16 +00:00
Nick Treleaven
850a558f9c
Add Unsplit command.
...
Clean up menus and split window when unloading plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-10 14:29:16 +00:00
Nick Treleaven
9f8f2c7b28
Add Split Window plugin (work-in-progress).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/split-window-plugin@2906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-26 15:58:07 +00:00