Colomban Wendling
417adeb302
Fix a few Doxygen warnings
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:52:03 +00:00
Colomban Wendling
8b737e707d
Use new plugin_idle_add(), preventing an unlikely crash
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:29 +00:00
Colomban Wendling
ef9360c78b
Add plugin_{idle_add,timeout_add,timeout_add_seconds}() to the plugin API
...
These functions does the same as the corresponding GLib functions but
makes sure that the added GSource will be removed when the plugin is
unloaded, preventing possible crashes.
These are only convenience functions for the plugin author not to have to
care about the case the plugin gets unloaded, he can still manually
manage hes GSources if he wants to.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:14 +00:00
Nick Treleaven
22038400cc
Add filetypes_get_sorted_by_name() to API.
...
Fix --ft-names sorting to print in name order, not title order.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 18:06:26 +00:00
Nick Treleaven
acc3e96e5f
Fix undocumented parameter.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5648 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 17:55:26 +00:00
Nick Treleaven
39674589f4
Fix sign comparison warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 16:48:37 +00:00
Nick Treleaven
388e685f30
Fix link - oops.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5646 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 14:02:19 +00:00
Nick Treleaven
e62a83dffa
filetype.xxx -> filetypes.xxx
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5645 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 13:57:08 +00:00
Nick Treleaven
67da926029
Add #filenames subsection for filetype definition files explaining
...
the filename extensions and special cases.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 13:51:50 +00:00
Nick Treleaven
f94f860f3f
Add #reading-styles-from-another-filetype subsection, based on
...
patch by Matthew Brush (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 13:26:39 +00:00
Colomban Wendling
8640d845d0
Don't update parent WorkObjects when updating one in real-time
...
Updating the parent may lead to performance issues if an object have
too many parents since they are updated recursively.
Parent objects are still updated when saving the file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5642 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-28 20:36:06 +00:00
Enrico Tröger
b235ae2f7e
Add new keybinding 'Remove Markers and Error Indicators'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:05:00 +00:00
Colomban Wendling
2fcb9c6790
Revert r5636 "Remove widget reparenting in Split Window plugin"
...
It breaks the X PRIMARY selection on the normal Geany editor.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:34 +00:00
Colomban Wendling
e5071473c1
Revert r5638 "Enable SplitWindow build on Windows again."
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:21 +00:00
Enrico Tröger
9b8b01a0b2
Enable SplitWindow build on Windows again.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5638 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:28:02 +00:00
Enrico Tröger
5521c67983
Initialize GLib's Gthread system early at startup in case any plugins need it.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:04:58 +00:00
Colomban Wendling
df172dfedd
Remove widget reparenting in Split Window plugin
...
Instead of reparenting the documents notebook full of
ScintillaObjects, just ref it, remove it from the old parent, add
it to the new parent, and then unref it. This fixes the display
issue on Windows and seems to have no issues on Linux.
Patch by Matthew Brush, thanks.
Closes #2725342 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5636 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:02:07 +00:00
Frank Lanitz
7b08c52a61
Update of German translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5635 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 11:20:21 +00:00
Colomban Wendling
9704e8f954
Don't unsplit when closing the document if we can show another one
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5634 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:31 +00:00
Colomban Wendling
35d5bb2c24
Fix confusing terminology in Split Window plugin menu labels
...
Patch by Matthew Brush, thanks. Closes #2796316 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5633 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:18 +00:00
Colomban Wendling
fc910a2448
Enable code folding in splitview window ( closes #3097780 )
...
Based on a patch by Matthew Brush, thanks!
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:05 +00:00
Colomban Wendling
4c7ad1f113
Add possibility to detect the indentation width from the file content
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-26 17:25:24 +00:00
Colomban Wendling
fb16bf90d4
Fix the sidebar popup menu to popup for the correct selection
...
Fix the sidebar popup menu to properly use the currently selected item
rather than the previous one.
Also change the hack used for the selection to be updated in the input
handlers (key and mouse button) to call the GtkTreeView's handler
manually rather than doing the actual job in IDLE callbacks for the
TreeView's handler to have run.
This prevents from having several different handlers but removes the
need to work in IDLE time and then possible have a lag, as well as
simplifying the code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5630 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-26 03:12:50 +00:00
Colomban Wendling
5713aa6804
Small code cleanups
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5629 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-26 03:12:38 +00:00
Colomban Wendling
4e5e7cc1b4
Restore secondary keywords entry although it's empty (oops)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5628 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-25 16:49:18 +00:00
Colomban Wendling
8b3f99059b
Update Vala keywords (based on a patch from Matthew Brush, thanks)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5627 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-25 15:34:21 +00:00
Colomban Wendling
dbb260f5bb
Fix some compiler warnings
...
* Shadowed function (splitwindow plugin);
* Invalid escape sequence (classbuilder plugin);
* Non-static local functions (classbuilder plugin);
* Missing function argument type (keybindings.c).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:34 +00:00
Colomban Wendling
7698bf60a7
Improve usage of G_(UN)?LIKELY()
...
G_(UN)?LIKELY() should be only used on whole conditional expressions,
and only if the branching is very highly predictable, not if it is only
more probable.
These macros should be used with care because a wrong prediction may
be a lot worst than what a good prediction can give.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:18 +00:00
Nick Treleaven
ff7d6b9cad
Make VTE copy/paste shortcuts work if 'Override Geany
...
keybindings' is not set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 17:59:05 +00:00
Nick Treleaven
e3d3765ae6
Add fixed shortcuts for VTE copy (Ctrl-Shift-C) and paste
...
(Ctrl-Shift-V).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5623 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 17:33:47 +00:00
Colomban Wendling
15937490ec
Make a few variable holding strings constant
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5622 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:52:34 +00:00
Colomban Wendling
4ac3ccbd37
Make Shift-Enter in search dialog and toolbar search entries search backwards
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:51:02 +00:00
Nick Treleaven
2813df48cf
Add history to filter entry.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5620 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:34:10 +00:00
Colomban Wendling
b72a2aa741
Improve wording of the last commit and update the ChangeLog
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5619 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 02:11:46 +00:00
Colomban Wendling
b1405bec3f
Update the documentation to talk about real-time tag parsing
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5618 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-23 22:36:56 +00:00
Frank Lanitz
246c4ec6c2
Fix a typo inside Slovenian translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5617 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 23:08:43 +00:00
Nick Treleaven
f25e18d866
Allow multiple file filters to be separated by a space for
...
consistency with Find in Files file patterns. ';' is still
allowed also.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5616 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 17:26:47 +00:00
Nick Treleaven
70005af1d6
Make --ft-names list filetypes alphabetically.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5615 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 17:09:48 +00:00
Nick Treleaven
d910ebc5ba
Fix compiler warnings:
...
document.c: In function ‘apply_forced_indent_settings’:
document.c:1008: warning: enumeration value ‘GEANY_FILETYPES_NONE’ not handled in switch
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5614 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 17:03:04 +00:00
Colomban Wendling
05ab6c3c53
Fix invalid free (oops)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5613 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-21 21:38:20 +00:00
Frank Lanitz
a48fb8b2d5
Update of Spanish translation. Thanks to Lucas Vieites for update. ( closes #3222844 )
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5612 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-21 19:08:44 +00:00
Colomban Wendling
57996805ac
Update forced indent settings when setting the filetype
...
This makes documents created or set to a filetype with forced indent
setting (Makefile, F77) to have the correct setting right away.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-20 17:50:59 +00:00
Colomban Wendling
4cfedde35a
Fix a few warnings and style
...
* Don't use strlen(..) > 0 or == 0, simply check the first character
against 0;
* Fix a return without a value (my bad in last commit);
* Fix storing a literal in a non-const string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5610 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-20 16:02:52 +00:00
Colomban Wendling
441bab9d3b
Add new filetype setting "comment_single"
...
This provides separated single-line and multiline comment support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-20 15:02:22 +00:00
Colomban Wendling
bf16b24b98
Create a new undo action when inserting templates
...
This makes sure the user can undo the template insertion without also
undoing a previous action.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5608 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-19 22:48:43 +00:00
Colomban Wendling
7b706faf8e
Properly convert template files to UTF-8 on loading
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5607 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-18 15:57:15 +00:00
Colomban Wendling
f60ead793d
Move document encoding conversion with BOM support to encodings.[ch]
...
Adds the new function encodings_convert_to_utf8_auto(). This makes easy
to convert file data to UTF-8 in a high-level fashion, with BOM support
and everything.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5606 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-18 15:57:02 +00:00
Enrico Tröger
800a80b3f9
Add file template for Vala (patch by Mark Trompell, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5605 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-18 09:35:31 +00:00
Nick Treleaven
e38f3b560a
Fix generating tag files and --ft-names option by ensuring GTK is
...
initialized before calling ui_get_mime_icon().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5604 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 18:00:20 +00:00
Nick Treleaven
c5b834629c
Make special case for filetypes.matlab instead of truncating all
...
filetype config filenames at slash.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5603 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 17:03:01 +00:00