5357 Commits

Author SHA1 Message Date
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
Nick Treleaven
55336b6cd8 Add Scala custom filetype, based on file by werg (thanks).
(This uses the newly added [styling=C] syntax).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5602 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 16:51:18 +00:00
Nick Treleaven
d74206bf77 Fix wrong label capitalization for Toolbar Preferences dialog tab
and 2 other labels.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 16:41:25 +00:00
Colomban Wendling
ba645513f8 Don't use non-C89 initializers
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5600 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 16:14:56 +00:00
Nick Treleaven
0e888d75be Undo patch change to cc_option_label_new() to append a ':' colon to
label text because this unnecessarily causes string translations to 
be updated.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5599 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 13:02:13 +00:00
Nick Treleaven
d9e3627c01 Fix GLib warning when creating classes and no documents are open
(patch by Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 12:54:41 +00:00
Nick Treleaven
b3edb0e74b Improve Class Builder plugin dialog UI using a table (patch by
Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5597 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 12:49:21 +00:00
Nick Treleaven
a46c2fd899 Support copying filetype definition file group keys from a system
keyfile with e.g. [styling=C].
Add function utils_make_filename() for building filenames easily.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5596 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 12:17:04 +00:00
Nick Treleaven
18c1d6c88e Use utils_build_path() for simplicity where the result is only used immediately (it returns a temporary buffer).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5595 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 12:08:06 +00:00
Frank Lanitz
fccb2fd32f Fix entity inside about dialog. Oops
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5594 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-15 22:42:09 +00:00
Frank Lanitz
0ff5c9d577 Addded Wei-Lun Chao as current maintainer for traditional Chinese as well as to THANKS file
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5593 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-15 21:59:03 +00:00
Frank Lanitz
f6681f1f60 Update of traditionel Chinese translation. Thanks to Wei-Lun Chao
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5592 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-15 21:58:40 +00:00
Colomban Wendling
7a2a413f8c Restore sorting order of plugins configuration tabs (broke by me in r5586)
Now simply insert elements in sorted order rather than sorting the
list at a later point: it's simpler, cleaner and probably faster.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5591 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-15 16:52:12 +00:00
Colomban Wendling
6236c506f2 Use the same indentation for all templates (part of FR#3193527)
From a patch by Matthew Brush, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5590 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-15 16:51:47 +00:00
Nick Treleaven
e6a7d02fbe Fix sign warning in tag_hash().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5589 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-14 17:37:44 +00:00
Enrico Tröger
3a0a9d9a33 Add Markdown extension.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5588 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-13 13:49:29 +00:00
Frank Lanitz
3bbae041b6 Update of traditionel Chinese translation. Thanks to Wei-Lun Chao
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5587 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-12 18:00:29 +00:00
Colomban Wendling
8e79a2255a Prefer prepend elements to lists rather than append them
This is for better performances since appending to a list means walking
it to find the last element to append to. When the list ordering
matters, simply reverse the list after prepengins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5586 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-10 22:27:04 +00:00
Colomban Wendling
6f481c8086 Correctly expand the menubar if the toolbar is appended to it but not visible (closes #3204955)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5585 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-10 16:05:29 +00:00
Enrico Tröger
c6241e16b8 Fix wrong code example in the API docs (spotted by Matthew Brush, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5584 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-08 20:19:01 +00:00
Colomban Wendling
a81f75b288 Import upstream MIO changes not to require a C99 compiler
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5583 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-07 02:44:18 +00:00
Frank Lanitz
a1cbd0f60c Update of German translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5582 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 19:16:48 +00:00
Enrico Tröger
7e29511228 Fix off-by-one bug which hidden the last empty line of a document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5581 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:37:58 +00:00
Colomban Wendling
3ebfcceafe When sorting tags by line, also sort by scope if line is the same
This avoids wrong sorting, and then wrong display in the symbols list,
if a parent tag is on the same line than its children, and one of it's 
children would be sorted before alphabetically (closes #3193982).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5580 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:25:15 +00:00
Enrico Tröger
76b49acf4c Use the full filename and add the extension of the export format.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5579 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:13:45 +00:00
Enrico Tröger
65fcc2b0c0 Cleanup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5578 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:10:30 +00:00