1869 Commits

Author SHA1 Message Date
Enrico Tröger
8f38a69121 Move code to reload configuration files into utils_reload_configuration() and add it to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-20 18:07:53 +00:00
Enrico Tröger
d0ec5f6134 Add menu item accelerators first after default and user keybindings have been read to avoid that menu item accelerators of user keybindings can't be overridden anymore (closes #2021703).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-20 17:12:34 +00:00
Enrico Tröger
bdc4e37cc8 Handle tooltip requests for items in the open files tree view properly by using gtk_tree_view_get_tooltip_context().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 15:05:56 +00:00
Enrico Tröger
617cdee77c Encourage single header includes as it is necessary with GTK 2.14+.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 13:56:56 +00:00
Enrico Tröger
8d67117d47 Rename "delete_event" to "delete-event".
Remove some unnecessary GObject casts in g_signal_connect() calls.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2788 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 13:40:48 +00:00
Nick Treleaven
9469f020c8 Move editor popup menu current word items to submenu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2787 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 17:17:51 +00:00
Nick Treleaven
3d24008b34 Add Find Document Usage popup menu command & keybinding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2786 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-17 16:42:03 +00:00
Enrico Tröger
ff43ad1fa7 Enforce focus grabbing when creating new documents (closes #2018427).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2783 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 18:46:17 +00:00
Enrico Tröger
72da6f3c55 Add missing keywords: 'elemental', 'pure' and 'procedure' which also fix broken folding (patch by Henrik Holst, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2782 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 18:36:37 +00:00
Nick Treleaven
71d5e59566 Prevent warning when trying to load an active plugin at startup that
doesn't exist on disk any more.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2781 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 17:16:28 +00:00
Nick Treleaven
43484b8a51 Show '..' item when the current folder is empty (fixes #2015121).
Replace is_top_level_directory() code by checking g_path_skip_root().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2780 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 14:50:06 +00:00
Nick Treleaven
000e8fcc9b Merge the editor-struct branch:
Note: this breaks the plugin API for editor-related document fields
and functions.
Split new GeanyEditor struct type from GeanyDocument fields sci,
line_wrapping, auto_indent, scroll_percent, use_tabs, line_breaking.
GeanyEditor::document allows access back to document fields.
Add GeanyDocument::editor field; this is only valid when the
document is valid, and NULL otherwise. This means any checks for
doc->editor->scintilla != NULL will segfault for invalid
documents - check against doc->is_valid or doc->editor != NULL
instead.
Change plugin API EditorFuncs to use GeanyEditor pointers.
Make editor_set_font() take a pango-style font string, and use a
GeanyEditor pointer.
Use GeanyEditor* instead of GeanyDocument* in editor.c (most global
editor functions still need conversion though, but this may be done
gradually or as required).
Move utils_get_current_function() to symbols.c.
Move utils_replace_filename() to document.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-15 14:29:41 +00:00
Enrico Tröger
ed016dc093 Split filetype Fortran into Fortran 77 and Fortran 90.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2777 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 18:27:20 +00:00
Nick Treleaven
7db4bfe493 Rename GeanyEditor::scintilla to GeanyEditor::sci.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 11:13:54 +00:00
Enrico Tröger
ccd2186f6a Add preferences for year, date and datetime format of the corresponding template wildcards to make them more flexible.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2775 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 11:51:00 +00:00
Enrico Tröger
bb95dfdece Use templates_replace_all() also for snippet completion.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2774 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 10:56:21 +00:00
Enrico Tröger
d3adc32c19 Add support to use template wildcards in snippets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2773 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 10:52:38 +00:00
Enrico Tröger
4ef9af9c6f Fix some formatting issues.
Add 'static' keyword to generated finalize() function in GTK classes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2772 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-12 11:46:59 +00:00
Nick Treleaven
82d63e09b0 Make editor_set_font() take a pango-style font string, and use a
GeanyEditor pointer.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2771 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 17:09:01 +00:00
Nick Treleaven
3bdd42ba4b Change plugin API EditorFuncs to use GeanyEditor pointers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2770 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 14:49:09 +00:00
Nick Treleaven
ad6b64647d Fix segfault in update_type_keywords().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2769 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 14:25:26 +00:00
Nick Treleaven
0ae04ea2f9 Create the doc->editor field in editor_create(). This means any
checks for doc->editor->scintilla != NULL will segfault for invalid
documents - check against doc->is_valid or doc->editor != NULL
instead.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2768 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-11 14:11:53 +00:00
Nick Treleaven
e204cc44fb Remove deprecated struct field macros (this fixes building Geany
when GEANY_DISABLE_DEPRECATED is not set, fixes #2014586).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2767 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-10 14:12:09 +00:00
Nick Treleaven
4837030ca1 Fix compilation.
Move utils_get_current_function() to symbols.c.
Move utils_replace_filename() to document.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2766 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 16:30:37 +00:00
Nick Treleaven
7c71457fb1 Fix building editor.c, using GeanyEditor* instead of GeanyDocument*
(most global editor functions still need conversion though).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2765 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 13:53:08 +00:00
Nick Treleaven
8dcfb7e336 Update for doc->editor->scintilla.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2764 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 11:26:09 +00:00
Nick Treleaven
bceab8d3e2 Note: this breaks the plugin API for editor-related document fields.
Split new GeanyEditor struct type from GeanyDocument fields.
Add GeanyDocument::editor field.
GeanyEditor::document allows access back to document fields.
GeanyEditor::scintilla replaces GeanyDocument::sci.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/editor-struct@2763 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-08 10:50:13 +00:00
Nick Treleaven
18ced215d1 Remove deprecated macros and typedefs (except DOC_IDX_*), as some of
them are likely to cause naming conflicts and all plugins will need
updating since 0.14 anyway.
Add geany macro that simply expands to geany_data.
Deprecate app, main_widgets, prefs, project macros, as the geany
macro can be used instead.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2761 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 16:16:18 +00:00
Nick Treleaven
61bea15355 Rename plugin-symbols.c pluginsymbols.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2760 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 13:08:07 +00:00
Nick Treleaven
32cbcd33e3 Make line breaking work with multi-line comment completion and
'Newline strips trailing spaces' pref.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2759 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 11:38:15 +00:00
Nick Treleaven
d994c9f7e1 Fix infinite loop when parsing datatypes (fixes #2011356).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2758 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 11:09:23 +00:00
Enrico Tröger
cde98b9de3 Revert the change of rev2072: Fix syntax colouring bug when using '?>' in a PHP comment (closes #1838854 and #1848518).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2756 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-05 09:52:33 +00:00
Enrico Tröger
b14568d1f8 Rename signal "populate-edit-menu" into "update-editor-menu".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2755 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-05 09:37:37 +00:00
Nick Treleaven
9f28c3a23c Group focus keybinding callbacks together.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-04 13:54:59 +00:00
Nick Treleaven
27c5665d01 Add 'Switch to Compiler' keybinding (useful when checking build
progress).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2752 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:37:00 +00:00
Nick Treleaven
4b34a992c2 Ensure all opened documents are colourised before being drawn
(should happen anyway in document_set_filetype(), but just in case).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:21:29 +00:00
Nick Treleaven
8f4106b066 Fix possible segfault for XML tag completion when no '<' brace could
be found.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:13:34 +00:00
Nick Treleaven
d832e4fe6c Avoid flickering the menu bar when 'Override Geany keybindings'
Terminal pref is set.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2749 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 17:04:12 +00:00
Enrico Tröger
fdbc255f79 Move the checks for HTML entity completion into an own function to increase readability.
Remove workaround for a wrong styling on last character and replace it with proper style reading (patch by Jason Oster, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2748 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 15:20:44 +00:00
Nick Treleaven
1525e93a7d Fix memory leak in utils_find_open_xml_tag() when size < 3, and only
allocate string when '<' found.
Factor insert_closing_tag() from handle_xml(), fixing a memory leak
when ignoring tags like <br>.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2747 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 14:39:49 +00:00
Enrico Tröger
6c3fe9b2cf Load "ignore_tags" file before generating global tags file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2745 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 13:46:01 +00:00
Enrico Tröger
467fbd9ec2 Fix broken session file support with more than 99 files (closes #2007288).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2744 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 12:51:14 +00:00
Enrico Tröger
d8032f4248 Fix unnecessary 40 character limit for auto-closing XML tags (closes #2007278).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2743 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-03 12:32:55 +00:00
Nick Treleaven
70df7f6388 Add document_close() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2742 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-02 13:40:06 +00:00
Nick Treleaven
89161c353d Fix behaviour of Home and End keys in non-editor widgets when they
are set as keybindings for Go to Line Start/End.
This uses a new ignore_keybinding variable because changing
KeyCallback to return gboolean would break plugin keybindings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2741 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-02 11:58:01 +00:00
Nick Treleaven
2c5a71f054 Add function document_close().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-01 14:20:16 +00:00
Enrico Tröger
2febc39ed5 Add Tools menu item to reload configuration data (at the moment: templates, filetype extensions/configs and snippets).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2739 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 16:29:12 +00:00
Enrico Tröger
1a1f244cc6 Move code to read snippets configuration to editor.c.
Split editor_snippets_free() from editor_finalize().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 16:14:55 +00:00
Enrico Tröger
1a1361db57 In templates_free_templates() destroy also file template menu items.
Add reload argument to filetypes_load_config() to allow re-reading of the settings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:59:00 +00:00
Enrico Tröger
8422e9d2ba Update waf to its latest SVN rev which makes it 20 KB smaller.
Update waf script to reflect waf API changes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2736 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:20:50 +00:00