5629 Commits

Author SHA1 Message Date
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
Colomban Wendling
87350d7624 Fix wrong constant variable
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5577 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:08:54 +00:00
Enrico Tröger
b77b71fdd2 Add option to insert line numbers (closes #3197150).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5576 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:02:09 +00:00
Enrico Tröger
4f6354d434 Respect saved state of 'Case sensitive' option when using the 'Regular expressions' option as well.
Cleanup.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5575 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 14:36:42 +00:00
Colomban Wendling
7ebea499de Fix MIO's COPYING
MIO moved to GPLv2+ yesterday, seems I forgot to fetch the new license...


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5574 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 14:26:08 +00:00
Enrico Tröger
56cd8dff87 Remember Find and Replace options across restarts (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5573 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 14:18:05 +00:00
Enrico Tröger
3e4a399140 Fix Windows build
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5572 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 13:10:48 +00:00
Enrico Tröger
1920cc6a1d Fix typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 12:11:54 +00:00
Enrico Tröger
bdde2d59b6 fix Waf build
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 12:09:14 +00:00
Colomban Wendling
470f1d0bb1 Fix a typo preventing distcheck to pass
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5569 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 00:45:51 +00:00
Colomban Wendling
6ff0986cde Update ChangeLog
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5568 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 23:30:54 +00:00
Colomban Wendling
6f7a06780f Improve performances of symbol list updating
Rather than walking the whole tree for each tag to find a possibly
corresponding row, use a hash table as cache.
This is a very significant improvement on large files with many tags,
reducing for example to about 170ms an update that took more than 18s
before.

Also fix merging of tags with same name and scope (probably unlikely to
exist in real-world files, but the tagmanager extract them correctly
and they used to display correctly too).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5567 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:56:55 +00:00
Colomban Wendling
b82c07b4be Fix some indentation style errors
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5566 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:55:34 +00:00
Colomban Wendling
56d9dc4565 Fix some debugging functions in C tag parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5565 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:55:00 +00:00
Colomban Wendling
d41435537f Plug a memory leak in the C tag parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5564 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:54:33 +00:00
Colomban Wendling
a2d04123bb Fix suffix of anonymous symbols (structs, enums, ...) in the C parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5563 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:53:58 +00:00
Colomban Wendling
57d00f48d0 Update the symbol list rather than clearing and re-building it
The main advantages of not clearing and rebuilding the whole list is
that it doesn't loose the folding and selection (as far as the selected
row(s) still exist after the update, of course), and it reduces
flickering upon update.

The current implementation works in 3-steps:
1) mark all rows as invalid;
2) insert/update the rows, according to the new tag list, marking them
   as valid;
3) remove all rows that are still invalid.
This walks (rows) the first time, (tags*rows) the second and (rows) the
third. This also uses an extra column to store the row's validity.

A (probably) better implementation would be to:
1) walk the current rows, updating them if necessary, or removing them;
2) add the remaining tags that weren't there before.
This is probably faster in theory (and probably also in practice), but
it needs to refactor a lot the code to easily update *or* create a row,
what the current code does not provide.
Basically this is would be a two-pass update, walking (rows*tags) in
the first pass, and only the remaining non-added tags in the second.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5562 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:53:13 +00:00
Colomban Wendling
a1a13e18e2 Don't remove and add the symbols tree view if we re-add the same one
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5561 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:51:32 +00:00
Colomban Wendling
f120554364 Provide a GType for TMTag and use it
It is a boxed type but uses reference counting behind the scene. This
allow for example the tag store to make sure the tags it holds are
always valid.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5560 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:50:04 +00:00
Colomban Wendling
b99d06d47c Make TMTag reference-counted
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5559 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:48:25 +00:00
Colomban Wendling
88aa81b6a8 Improve implementation of hide_empty_rows() to do all in one shot
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5558 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:47:13 +00:00
Colomban Wendling
67cd5dbd13 Add possibility to update symbol list in IDLE time
Enabled by default, using a minimal delay of 250ms between two updates.
Also add a preference to configure this in Geany's UI, under
Preferences -> Editor -> Completion.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5557 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:46:32 +00:00
Colomban Wendling
676f8e6d76 Enable in-memory tag parsing
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:44:22 +00:00
Colomban Wendling
569670b771 Move most of TagManager's I/O to MIO
Moved the parsers to MIO, which allows both in-memory and file parsing.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5555 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:40:50 +00:00
Enrico Tröger
c5089e5ab4 Add Colomban to the COMMITTERS list
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5554 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 22:58:02 +00:00
Colomban Wendling
77e400d1aa Add missing documentation to some plugin API functions
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5553 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 21:08:51 +00:00
Enrico Tröger
84da9b961b Welcome Colomban Wendling, a new Geany developer.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 20:16:00 +00:00
Enrico Tröger
4d2679ad2d Fix wrong warning on empty backup directory setting if 'Backup Copy' is not enabled at all.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 20:00:17 +00:00
Nick Treleaven
4998d40f46 Fix segfault when inserting e.g. fileheader template when the
template file is empty (#3070913, thanks to lphilpot).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5544 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-22 17:15:29 +00:00