7950 Commits

Author SHA1 Message Date
Colomban Wendling
db30fdc6ec Recognize XPM files as C sources 2015-06-27 15:17:34 +02:00
Colomban Wendling
d32ca92a8a Merge pull request #537 from b4n/fix-binreloc
Fix binary relocation support
2015-06-27 14:37:13 +02:00
Colomban Wendling
01612a9505 Merge pull request #536 from zhekov/spawn
Spawn fixes/improvements
2015-06-27 14:33:11 +02:00
Colomban Wendling
14bcd9c87d Fix binary relocation support 2015-06-26 22:33:16 +02:00
Dimitar Zhekov
fc82f9d9e1 Fix spawn with -DSPAWN_TEST not to require GEANY_API_SYMBOL
As stated in spawn.c, "This module does not depend on Geany when
compiled for testing (-DSPAWN_TEST)."
2015-06-26 18:57:44 +03:00
Dimitar Zhekov
8aebf54b47 Fix spawn_async_with_pipes() to work without watch for child_pid=NULL
On child_pid=NULL, the Windows process handle is now closed ASAP, so
no main glib event loop is required.
2015-06-26 18:44:56 +03:00
Colomban Wendling
46a123d6fe python: Fix handling of inline comments
If there was two hashes (#) in an inline comment, only the content
between the two was considered a comment.

X-Universal-CTags-Commit-ID: ee93f5b9f393e76a850cf8c894cc748a62981156
2015-06-25 22:47:32 +02:00
Colomban Wendling
d2052b55ba Merge pull request #532 from techee/optimize_python
python: optimize skipEverything()
2015-06-25 22:39:02 +02:00
Jiří Techet
6781ab30c5 python: optimize skipEverything()
Most of the time there's no start of a string which means all the 10
strcmp()s are done for every character of the input. This is very expensive:
before this patch this function alone takes 55% of the parser time.
When comparing by character (and avoiding further comparison if the first
character doesn't match), this function takes only 11% of the parser time
so the performance of the parser nearly doubles.

In addition check for the "rb" prefix which is possible in Python 3.

Ported from universal-ctags.
2015-06-25 22:10:32 +02:00
elextr
54eff298bd Fix Manual for Build Menu Keybindings
Only fixed items can have keybindings but this manual entry was missed when one execute item was changed from fixed to optional.
2015-06-25 05:56:43 +10:00
Frank Lanitz
98748707b8 Update of Belarussian translation 2015-06-24 15:48:08 +02:00
Frank Lanitz
d124f56375 Merge pull request #529 from xhacker/zh_CN
Update Simplified Chinese translation
2015-06-24 10:30:35 +02:00
LIU Dongyuan / 柳东原
e7a52ccec5 Update Simplified Chinese translation 2015-06-23 23:10:52 -07:00
Colomban Wendling
b165de1f77 Fix color of unmodified build commands on GTK3
Also, as changing the color of the label button doesn't currently work
on GTK2, but would on GTK3 with this change, explicitly skip it for
consistency.

Closes #528.
2015-06-23 02:54:02 +02:00
Colomban Wendling
09cd9b4d30 Small update of the French translation 2015-06-23 00:04:19 +02:00
Frank Lanitz
15f012c2bf Update of Portuguese translation 2015-06-22 23:14:02 +02:00
Frank Lanitz
e274dba084 Update of German translation 2015-06-22 22:06:25 +02:00
Frank Lanitz
a26bd58639 Merge pull request #526 from b4n/po/fr
French translation update
2015-06-22 19:13:20 +02:00
Frank Lanitz
094a71c2cb Update of Spanish translation 2015-06-22 19:12:14 +02:00
Colomban Wendling
0cc3bf31c2 Move comment meant for translators so xgettext can pick them
Apparently xgettext only recognize comments that are straight above the
translation, so move them where it can find them.
2015-06-22 15:46:11 +02:00
Colomban Wendling
3c38434d51 French translation update 2015-06-22 15:40:55 +02:00
Frank Lanitz
d37588241a Merge pull request #525 from scriptum/russian-translation
Update of Russian translation
2015-06-22 10:35:31 +02:00
Pavel Roschin
5bb21066ab Update of Russian translation 2015-06-22 11:01:47 +03:00
Frank Lanitz
5e9176512d Update of Spanish translation 2015-06-21 15:18:18 +02:00
Colomban Wendling
5ebed27d4b Fix incorrect variadic argument type fetch (oops) 2015-06-21 14:23:44 +02:00
Matthew Brush
37794432cc Add G_BEGIN_DECLS and G_END_DECLS to spawn.h 2015-06-20 20:25:08 -07:00
Colomban Wendling
f7a036aab8 VTE: Switch directory on startup when following current document's path 2015-06-20 20:05:39 +02:00
Frank Lanitz
5c2ac4c856 Initial update of po files for string freeze of Geany 1.25 2015-06-20 18:17:26 +02:00
Matthew Brush
3a8ef62794 Fix GLib version number missed in last bump (oops) 2015-06-19 17:12:53 -07:00
Enrico Tröger
3b1f20037b Merge pull request #291 from bittner/master
Autodetect .bashrc, .bash_aliases, and the like
2015-06-18 23:11:32 +02:00
Colomban Wendling
f427a3a6e1 Merge pull request #455 from techee/filebrowser_icons
Show icons corresponding to MIME types in the file browser plugin
2015-06-18 16:49:37 +02:00
Colomban Wendling
f715f8a35c Merge pull request #425 from b4n/remove-some-unused-sciwrappers
Remove a few unused Scintilla wrappers functions
2015-06-18 16:22:25 +02:00
Colomban Wendling
67b464a586 GTK: Fix runtime completion popup warning
GtkScrolledWindow in GTK 3.16 might have a minimum and natural height
of 0 if GTK_OVERLAY_SCROLLING is enabled (which is the default), so we
need to fix our overridden minimal height to never be greater than the
natural height.

Do that by only changing the minimal height if it is greater than what
we want.

I don't know why we didn't use to set 0 here, but it might be that a
height of 0 caused problems on older GTK versions, so keep 1 to be sure.

X-Scintilla-Commit-ID: e9f9c964236a6b740f75d09a8b0ac76e5d6dd09f
2015-06-18 01:37:00 +02:00
Peter Bittner
3ad1627249 Autodetect .bashrc, .bash_aliases, and the like
Autodetect /etc/bash_completion (and the like)

Splitted up autodetection patterns for Bash

This will match:

- `*.bash` (any manufactured Bash scripts)
- `~/.bashrc` (hidden Bash configuration in your home directory)
- `~/.bash_*` (partials included by bashrc, e.g. `.bash_aliases`,  `.bash_history`,  `.bash_logout`)
- `/etc/bash.bashrc` (global Bash configuration)
- `/etc/bash_completion` (and potentially any other `/etc/bash_*` file)
2015-06-18 00:21:40 +02:00
Jiří Techet
358758c9f8 Show icons corresponding to MIME types in the file browser plugin 2015-06-16 15:43:45 +02:00
Colomban Wendling
f86b39c7cb Merge pull request #491 from techee/ft_config
Add filetype configuration menu entries
2015-06-15 21:39:22 +02:00
Jiří Techet
ecc4e0285a Add filetype configuration menu entries
This adds a "Filetype Configuration" under Tools->Configuration Files
with all filetype configuration files (grouped by language type).

This patch mostly reuses the stuff we already have in Geany - the menu
creation code from Document->Set Filetype, file creation in the .config
directory if it doesn't exist (similarly to filetypes.common) and config
file reloading when the file gets updated.
2015-06-15 17:14:00 +02:00
Colomban Wendling
1306bc52d8 Merge pull request #506 from techee/msgwin_resize
Don't resize message window when changing Geany's window height
2015-06-15 15:39:24 +02:00
Colomban Wendling
6f60de3656 Merge pull request #514 from techee/linear_tag_remove
Add linear tag remove path for cases where not many files are open
2015-06-15 14:56:07 +02:00
Colomban Wendling
48ea3e6f85 Merge pull request #515 from b4n/symbol-icons-fixes
Fix unreffing NULL icons when generating tags
2015-06-15 14:29:12 +02:00
Colomban Wendling
733b10efc4 Merge branch 'universal-ctags-fixes'
Import some various parser fixes from Universal CTags.
2015-06-15 00:10:09 +02:00
Colomban Wendling
cdd07e15f5 Fix unreffing NULL icons when generating tags 2015-06-15 00:09:13 +02:00
Colomban Wendling
195d2e3a77 Don't try and query the theme when we don't have a screen
This happens when generating tags.
2015-06-15 00:09:12 +02:00
Colomban Wendling
23eff5cadf Over-engineer symbol tree icon cache a little
This will get useful to fix problems when generating tags.
2015-06-15 00:09:12 +02:00
Colomban Wendling
882687ec37 C#: Don't ignore the character following an '@'
The character following an '@' was dropped if it didn't start a string
literal.

This could lead to unexpected problems if '@' was valid in other
situations.

X-Universal-CTags-Commit-ID: 2e62f475af1db08850447de46f56db14ce99d2eb
2015-06-14 18:27:17 +02:00
Colomban Wendling
dbbc042786 c family: Add support for digraphs
See http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf 6.4.6§3.

Note: This is not exactly the upstream Universal CTags commit because
it depends on another change for adding the `enter` label, which was
then included here.

X-Universal-CTags-Commit-ID: 3b3b60c7664a321a31ec87de336fc6bda90c405e
2015-06-14 18:25:38 +02:00
Colomban Wendling
b737f031ca c family: Fix trigraph handling
X-Universal-CTags-Commit-ID: d6d1a0f2b90a600bdec9cd6ba964ee69382743e4
2015-06-14 18:23:29 +02:00
Colomban Wendling
b975c2652d read: Allow to unget up to 3 characters
Some parsers need to unget more than one characters, so add support for
this.

X-Universal-CTags-Commit-ID: 956af0555d3a8ef33304c5ae6ed873f22b4e4284
2015-06-14 17:57:18 +02:00
Jiří Techet
e26c9ba2ce Add linear tag remove path for cases where not many files are open
When tested with 200000 LOC python file (created by making many copies
of scripts/create_py_tags.py), the tm_tags_remove_file_tags() function
takes about 50% of the CPU time when only this file is open. After adding
the linear path to tm_tags_remove_file_tags() it takes just about 2%. See
the comment in the patch for more details.
2015-06-14 17:52:24 +02:00
Colomban Wendling
944bffb967 json: Fix handling of tags containing a dot
X-Universal-CTags-Commit-ID: 7ae28a3d8a7ad5f8a9d6399a4e357fcf19ad2b2e
2015-06-14 17:29:04 +02:00