Enrico Tröger
a95a59a42f
Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
...
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
Enrico Tröger
a9dc990049
Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +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
Nick Treleaven
68928213df
Use g_slist_nth_data() with sorted_filetypes list instead of
...
filetypes_find() as it is neater.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3673 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 15:07:27 +00:00
Nick Treleaven
4753e20394
Fix sorting filetype template menu items.
...
Add foreach_slist() macro.
Make sorted_filetypes list public, and include None filetype first.
Rename filetypes_foreach_sorted() to filetypes_foreach_named() to
show it doesn't include the None filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 14:32:03 +00:00
Nick Treleaven
c220fadc9e
Make None filetype name = title = _("None").
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3665 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 16:14:29 +00:00
Nick Treleaven
127cef3c9f
Fix Gtk warnings & sort by filetype title, not name.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3664 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 15:52:38 +00:00
Nick Treleaven
ba6b5c81e9
Fix sorting Document menu filetype names.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 15:36:10 +00:00
Nick Treleaven
bc9639e800
Move sorted_filetypes list insertion to filetype_add().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 14:14:46 +00:00
Nick Treleaven
0cd1683ca6
Sort open dialog filetypes in combo boxes by title.
...
Add filetypes_foreach_sorted(), filetypes_find().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 14:06:11 +00:00
Nick Treleaven
305707906c
Move ActionScript to the Script group.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3642 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:41:12 +00:00
Nick Treleaven
5ddc129829
Make GEANY_FILETYPES_NONE = 0; other things are now broken, e.g.
...
setting Open dialog filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:18:32 +00:00
Enrico Tröger
4122c1b138
Add filetype ActionScript (patch by Chris Macksey, thanks).
...
Update type keywords only for real C-like languages.
Fix wrong sorting of Assembler and Ada filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 09:58:27 +00:00
Enrico Tröger
b2eeefc919
Add some missing @since tags to the API documentation of various functions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 18:53:23 +00:00
Enrico Tröger
60e751eaf2
Remove filetype O-Matrix (probably unused for years).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3482 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:18:38 +00:00
Enrico Tröger
c636728975
Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +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
Enrico Tröger
42578efd22
Add *.desktop as extension for the Conf filetype.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3445 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:24:50 +00:00
Enrico Tröger
d007adc71f
Add filetype Ada ( closes #1811306 and #1765830 , patch by Philipp Gildein, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3444 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 16:00:50 +00:00
Nick Treleaven
077270c647
Remove geanyobject.h includes.
...
Use GObject instead of unused GeanyObject argument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3439 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 13:03:42 +00:00
Enrico Tröger
6c60580989
Add new filetypes CMake and NSIS.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3414 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-21 20:31:09 +00:00
Enrico Tröger
9e25c43487
Move implementation of lookup_widget() into ui_lookup_widget().
...
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Enrico Tröger
5db30d1067
Change comment character to '!' for Fortran 90 ( closes #2438423 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3393 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-17 16:01:09 +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
Enrico Tröger
e5de10ac67
Fix wrongly detected PHP files as HTML if they start with HTML code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3297 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 18:35:44 +00:00
Enrico Tröger
0f8b8a2f2f
Add new filetype 'YAML' (patch by Walery Studennikov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:51:50 +00:00
Nick Treleaven
492f78c769
Move configuration_read_filetype_extensions() to
...
filetypes_read_extensions().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3281 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 16:09:48 +00:00
Nick Treleaven
899dce26b6
Add 'Tools->Configuration Files' menu with items to open
...
filetype_extensions.conf and ignore.tags. These files are also
reloaded automatically when saved.
- Code changes:
Make app->configdir a realpath().
Add ui_add_config_file_menu_item().
Add utils_build_path(), similar to g_build_path() but (re)using a
fixed buffer, so the result is never freed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 13:15:53 +00:00
Nick Treleaven
eafc95a59f
Apply patch from Colomban Wendling to add Vala filetype (thanks).
...
Fix c.c tagLetter() bug.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3205 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 16:33:20 +00:00
Enrico Tröger
474a0b4410
Add new filetype 'Matlab' ( closes #1938631 , patch by Roland Baudin, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:39:45 +00:00
Enrico Tröger
af1c81efcb
Fix doc comment.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3152 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:56:12 +00:00
Enrico Tröger
57c764867c
Add simple auto-detection for HTML files without proper extension.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 18:44:05 +00:00
Enrico Tröger
087872260f
Add new filetype 'Gettext translation file' ( closes #2131985 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3018 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-28 16:32:49 +00:00
Nick Treleaven
59cb3b2cce
Apply patch from Andrew Rowland to add support for the R language
...
(thanks, #2121502 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 12:23:59 +00:00
Nick Treleaven
ea42918879
Detect which error regex match contains the line number, and use the
...
other match for the filename.
Update 'Build system' docs for custom error regexes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 11:30:44 +00:00
Nick Treleaven
80538bb116
Hopefully fix building when HAVE_REGCOMP is not defined.
...
Add debug message when trying to parse an error regex when
HAVE_REGCOMP is undefined.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2992 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 10:30:46 +00:00
Nick Treleaven
bf3ea6c5f0
Add filetypes.* [build_settings] key 'error_regex' to support custom
...
error message parsing using an extended regular expression.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2988 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-23 16:12:40 +00:00
Nick Treleaven
43d8e21362
Add GeanyFiletypePrivate instead of using inheritance for non-public
...
fields (this was unnecessary and meant using ugly casts).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2977 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-19 17:19:34 +00:00
Nick Treleaven
c403ddd56c
Fix Doxygen 1.5.4 undocumented parameter warnings.
...
Improve dox for sciwrappers.c.
Correct sci_grap_focus() misspelling.
(Merged from split-window-plugin branch).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2951 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-16 15:37:50 +00:00
Nick Treleaven
1e79093f2c
Add GeanyFiletypeGroupID enum and GeanyFiletype::group field.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2909 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-27 16:16:50 +00:00
Nick Treleaven
6ce421f141
Add OpenGL Shader Language (GLSL) filetype (patch from Colomban
...
Wendling, thanks; closes #2060961 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-27 12:44:54 +00:00
Nick Treleaven
2ad140a1fd
Use pointer in init_builtin_filetypes() instead of repeating
...
filetypes[GEANY_FILETYPES_X]->... on each line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2907 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-26 16:30:25 +00:00
Nick Treleaven
4de845a2c6
Only compile filetypes_detect_from_file() if HAVE_PLUGINS is defined.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2807 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 11:20:48 +00:00
Nick Treleaven
5f18cee90f
Add dox for FiletypeFuncs and some of GeanyFiletype.
...
Rename filetypes_detect_from_file() to
filetypes_detect_from_document().
Rename filetypes_detect_from_filename() to
filetypes_detect_from_file() because it also detects shebang lines.
Remove function prototype comments for filetypes.h (see filetypes.c
or API dox instead).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2805 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-23 14:44:27 +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
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
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
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