7897 Commits

Author SHA1 Message Date
Colomban Wendling
91630a85a2 autotools: Check for docutils tools with a .py suffix too
Docutils tools are apparently installed with an extension suffix by
default, so check for this too.

Closes #424.
2015-02-20 22:30:58 +01:00
Colomban Wendling
ea79be32f2 autotools: Remove useless code
AC_PATH_PROG supports overrides of its variable, so there is no need
for manual handling.
2015-02-20 22:28:26 +01:00
Frank Lanitz
b87254e1b3 Fix lost <> inside thanks 2015-02-18 00:40:19 +01:00
Frank Lanitz
a6885865bb Change contact data for brahmann 2015-02-18 00:35:44 +01:00
Frank Lanitz
a65cecd59e Merge pull request #422 from strepon/master
update Czech translation
2015-02-15 16:32:03 +01:00
Stanislav Horacek
b0786efc66 update Czech translation 2015-02-15 14:33:10 +01:00
Colomban Wendling
15f75ca2ac Fix a few indentation style issues 2015-02-13 14:11:30 +01:00
Jiří Techet
0c1edb113c Bump API to reflect the addition of keybindings_get_modifiers() and GEANY_PRIMARY_MOD_MASK 2015-02-13 12:47:04 +01:00
Colomban Wendling
ba0d364f64 Merge pull request #420 from techee/vte_keybindings
Revert some OS X keybinding changes for VTE
2015-02-13 01:01:17 +01:00
Jiří Techet
e613d93187 Revert some OS X keybinding changes for VTE
While all normal keybindings use the Command key instead of
control key on OS X, all the command-line applications and
terminal emulators use the Ctrl key like on Linux. This includes
Ctrl+C (SIGINT) and Ctrl+D (EOF) for which there is some
special handling in the VTE support in Geany and which should
use GDK_CONTROL_MASK instead of GEANY_PRIMARY_MOD_MASK.
2015-02-13 00:37:21 +01:00
Colomban Wendling
308041da8d Merge branch 'ctags/python'
Import Python changes from https://github.com/fishman/ctags/
2015-02-11 18:33:19 +01:00
Markus Heidelberg
be2b280377 python: do not ignore the character after a skipped string
Regression for the triple start string issue has been introduced in SVN
revision 669 (fishman git a314e11158307db84c0dadb758846b2302fe69cd) on
2008-06-11. In ctags 5.7 it did work, in 5.8 not anymore.
See also http://sourceforge.net/p/ctags/bugs/229/ for the original bug,
which led to the old fix.

The other issue with normal strings in skipEverything() is even older.
2015-02-11 18:28:59 +01:00
Colomban Wendling
99a509de7e python: Fix out of bounds access on unmatched Cython array declaration 2015-02-11 18:22:55 +01:00
Colomban Wendling
0a97439701 python: Improve and generalize access reporting
Anything at the module/file level:
 * _... is protected
 * rest is public
Anything at the class level:
 * __...__ is public (magic method)
 * __... is private
 * _... is protected
 * rest is public
Anything at the function/method level:
 * everything is private

Closes https://github.com/fishman/ctags/issues/216.
2015-02-11 18:21:14 +01:00
Frank Lanitz
7b17db666e Small update of German translation 2015-02-10 18:56:42 +01:00
Frank Lanitz
ae68b10b04 Merge branch 'master' of github.com:geany/geany 2015-02-10 18:55:00 +01:00
Colomban Wendling
b2e5d08dad Spell "Windows" as "Windows", not "Win"
This makes the labels more clear using the canonical name, and avoids
any confusion with the English word "win".
2015-02-10 17:15:38 +01:00
Colomban Wendling
e9c9e9a2fa Merge pull request #396 from techee/osx
OS X improvements
2015-02-10 17:12:30 +01:00
Jiří Techet
1ab9eac704 Use the .dylib extension when loading VTE on OS X 2015-02-10 15:58:01 +01:00
Jiří Techet
6a132ef3fa CR line endings are used on old Mac OS systems only - make it more explicit in labels
Also don't default to CR if OS is neither Windows nor Unix (including OS X).
There's no other GTK backend right now so it doesn't matter much but
still if something else appears, it will most probably not have CR line
endings.
2015-02-10 15:57:50 +01:00
Enrico Tröger
1640471752 Merge pull request #413 from eht16/backup_copy_file_perm
SaveActions: Set file permissions of backup copies to 0600 (SF #125)
2015-02-08 10:42:32 +00:00
Jiří Techet
ca21a8759a Don't use "echo -n" in shell scripts
The standard says:

If the first operand is -n, or if any of the operands contain a
backslash ( '\' ) character, the results are implementation-defined.

On OS X it simply prints the "-n" string and everything which follows,
including the newline.

Use printf instead.
2015-02-08 11:31:42 +01:00
Jiří Techet
f2cab560c6 Eliminate some minor leaks
Found using the Instruments XCode tool on OS X.
2015-02-08 11:12:27 +01:00
Frank Lanitz
642fedef98 Small update of German translation 2015-02-01 22:07:53 +01:00
Colomban Wendling
e454b8962c Merge branch 'json-tag-parser' into json
Import JSON tag parser from CTags:
https://github.com/fishman/ctags/blob/master/json.c
2015-01-31 22:17:26 +01:00
Colomban Wendling
270e32327f json: Enable tag parser and adapt test case for Geany 2015-01-31 22:15:18 +01:00
Colomban Wendling
0bd9585704 json: Optimize memory usage by not collecting string values
When a string is not used as an object property the parser doesn't
need to know its value.  Not collecting it into memory lowers memory
consumption and avoids high memory consumption with huge string values.
2015-01-31 22:14:50 +01:00
Colomban Wendling
2ff1386d96 Add new parser for JSON 2015-01-31 22:14:50 +01:00
Colomban Wendling
b0cf3b4e2d Add JSON custom filetype
Closes #384.
2015-01-31 20:27:07 +01:00
Enrico Tröger
d5cca37922 Change donate link to our own redirection
As discussed in #410, the previous SF redirect is better replaced by
a redirect on www.geany.org which we can control.
This way we can also quickly change the target URL if it changes at
Paypal.
2015-01-31 18:44:10 +01:00
Enrico Tröger
7229aa9cff SaveActions: Set file permissions of backup copies to 0600
As discussed in SF bug #125, it might be dangerous to store backup
copies in a publicly accessable directory like /tmp with default
permissions, especially on multi-user systems.
So set the file permissions on non-Windows systems to 0600 by default.
Also improve the documentation of the save Actions plugin to reflect this
change.
2015-01-31 16:11:48 +01:00
Colomban Wendling
d33a23c40c Add missing documentation for message window orientation setting 2015-01-28 15:55:33 +01:00
Thomas Martitz
7fba0317d0 document: Remove duplicated code.
Since document_compare_by_tab_order_reverse does the exact reverse of
document_compare_by_tab_order the code need not to be duplicated. Instead
document_compare_by_tab_order can be called and the return value be reversed.
2015-01-28 15:33:52 +01:00
Colomban Wendling
f403e7e8c2 Merge pull request #188 from artros/feature/keep-edit-history-on-reload
Maintain edit history on document reload

Conflicts:
 * src/callbacks.c: document_reload_prompt().

Amendments:
 * src/document.c: document_redo(), document_undo(): for loop style.
2015-01-28 15:16:40 +01:00
Colomban Wendling
44eecc25c3 Merge pull request #187 from artros/bug/clear-redo-on-edit
Clear redo stack on edit
2015-01-28 14:30:43 +01:00
Colomban Wendling
526294d72c Merge pull request #399 from b4n/ui/message-window-hierarchy
Drop useless scrolled window around the message window notebook
2015-01-26 17:24:19 +01:00
Nick Treleaven
bb41cb2275 Merge pull request #408 from ntrel/sci-make
Fix strangely undefined GTK for PlatGtk.cxx by moving build dir (#1001)
2015-01-24 16:39:20 +00:00
Nick Treleaven
9506c7ae59 Remove unneeded -liberty flag 2015-01-24 16:30:57 +00:00
Nick Treleaven
8ebac60901 Fix strangely undefined GTK for PlatGtk.cxx by moving build dir (#1001) 2015-01-24 16:30:54 +00:00
Nick Treleaven
6cad08ae1e Port scintilla/gtk/makefile differences (Windows makefiles) 2015-01-22 17:02:21 +00:00
Jiří Techet
47a5b9fc5f Use better default fonts on OS X
Fonts are rendered much smaller on OS X so use bigger sizes
by default. Also, by default they use the Light style which is
extremely thin - use Medium instead. Finally, use better monospace
font than the default Courier (Menlo is derived from Dejavu Sans
Mono and is used by XCode and other editors).
2015-01-20 19:33:06 +01:00
Jiří Techet
daecf69c9c Make keybindings_get_modifiers() part of plugin API 2015-01-20 19:33:06 +01:00
Jiří Techet
508216b7b4 Use the open command to open a directory in Finder on OS X 2015-01-20 19:33:06 +01:00
Jiří Techet
98ae34f1dc Perform execute using the default terminal application on OS X
In order to execute the runner script using the terminal application,
the script has to be executable, otherwise it's not executed.

In addition, when the terminal application starts, it sets $HOME
as the working directory. For this reason the working directory
has to be set in the runner script (to avoid additional ifdefs,
this part is shared with other unix systems where the additional
"cd" shouldn't matter).
2015-01-20 19:33:06 +01:00
Jiří Techet
82b413e506 Fix keybindings on OS X
On OS X the Command key is used for common keybindings instead
of Ctrl. Introduce a new macro, GEANY_PRIMARY_MOD_MASK that
represents the Command key on OS X and Ctrl on other platforms.

For some events, such as mouse key press, GDK_MOD2_MASK is returned
for the Command key by GTK instead of GDK_META_MASK (which is returned
when Command is pressed together with some other key). To hide this
behavior from users, introduce keybindings_get_modifiers() which can be
used instead of gtk_accelerator_get_default_mod_mask() and which
inserts GDK_META_MASK when GDK_MOD2_MASK is found in the mask
on OS X.
2015-01-20 19:33:06 +01:00
Jiří Techet
ac76c84fdc Use Safari as the default browser on OS X
Since Safari isn't on PATH, the open command has to be used
2015-01-20 19:33:06 +01:00
Jiří Techet
558d21f2f2 Fix clang warning regarding mismatching types
The Option initialization didn't match the struct - there was
an extra initialization of -e parameter and missing initialization
of --etags-include a bit later. This means the initializations of
the fields were shifted by one between these two.
2015-01-20 19:33:06 +01:00
Jiří Techet
9767f79e50 Improve ui_get_mime_icon()
It may happen that even though we get GIcon, the actual icon
dosen't exist (typically on Windows and OS X). Check if we
can find the actual icon.

In addition, use "icon name" instead of "stock id" - the latter
doesn't work on OS X / Windows for some reason.
2015-01-20 19:33:06 +01:00
Jiří Techet
3c01fae8d9 Disable scintilla buffer draw on OS X (with Quartz backend)
This delagates font rendering to Quartz so it can be rendered
in 2x resolution on "retina" displays.
2015-01-20 19:33:06 +01:00
Jiří Techet
5356c4549a Fix infinite loop on OS X when using find in files
The GIOCondition is always set to G_IO_IN even when input end
is reached (and no other flags are set) so the read_fif_io()
function never returns FALSE which causes an infinite loop.
It is necessary to check also the return value of
g_io_channel_read_line() and return FALSE on EOF or error.
2015-01-20 19:33:06 +01:00