8438 Commits

Author SHA1 Message Date
Jiří Techet
10f7cb24b2 Avoid possible invalid memory access when activating plugin
It may happen (and happens on OS X) that plugin activation using
plugin_new() triggers some action which causes the tree view to
update. However, as the old plugin was freed before, the tree view
contains an invalid pointer to p which causes invalid memory access.

After freeing the old pointer, set the tree view value to NULL - the
plugin pointer is checked at other places for NULL value so it
doesn't crash.
2015-11-04 17:35:48 +01:00
Dimitar Zhekov
23323f5377 Cast windows HANDLE to intptr_t, not long
The cast in g_warning is not fixed. It's unimportant, displaying a
handle value does not provide any meaningful information anyway.

Closes #727.
2015-11-03 19:30:53 +01:00
Devyn Collier Johnson
ac48644904 Update filetype_extensions.conf
Changes
- Ensured consistency by ending every line with a semicolon
- Added two MathML file-extensions (*.mml and *.mathml;) to "XML="

Justification for proposed changes
- Code consistency is important in programming
- MathML is a form of XML that is commonly used and is part of the HTML5 standard
- W3 MathML Specification: http://www.w3.org/TR/MathML3/
- Geany properly highlights the code when the MathML file-extension is recognized
2015-11-03 10:38:43 -05:00
Frank Lanitz
a11e43e22a Update of Portuguese translation 2015-11-03 08:15:55 +01:00
Frank Lanitz
64cb6aff94 Merge pull request #729 from xhacker/zh_CN
Update zh_CN.po
2015-11-03 07:53:29 +01:00
Frank Lanitz
a68df6ef4f Merge pull request #730 from peter-scholtens/master
Update of Dutch translation.
2015-11-03 07:53:08 +01:00
Peter C. S. Scholtens
17892335c4 Update of Dutch translation. 2015-11-02 23:15:28 +01:00
LIU Dongyuan / 柳东原
ad77aed367 Update zh_CN.po 2015-11-02 12:52:27 -08:00
Frank Lanitz
d4f3ff6eb4 Another small update of German translation 2015-11-01 19:21:00 +01:00
Frank Lanitz
9734acdbc1 Update of German translation 2015-11-01 19:18:59 +01:00
Frank Lanitz
8934d32ab2 Another update of po files as a merge changed some strings 2015-11-01 19:04:21 +01:00
Colomban Wendling
b317da6a0d Merge pull request #701 from zhekov/improve-spawning-errors
Alter spawn to return the error message only in error->message

Closes #541.
2015-11-01 19:01:54 +01:00
Frank Lanitz
fa0a034d97 Update of German translation 2015-11-01 18:58:14 +01:00
Frank Lanitz
7a8140b76a Update po files for string freeze for 1.26 2015-11-01 17:46:28 +01:00
Frank Lanitz
d3ca4299e7 Update of Greek translation 2015-11-01 17:42:28 +01:00
Dimitar Zhekov
6390830953 Fix custom command spawning error message
They are configured in Custom Commands, not Preferences.
Also fix the duplicated g_error_free().
2015-11-01 16:19:40 +02:00
Dimitar Zhekov
a99454f4a0 Clarify the template command spawning message 2015-11-01 16:00:03 +02:00
Dimitar Zhekov
ca76d87cac Fix context action spawning error message
Properly display what configuration should be checked, and show the
entire command line on parsing error.
2015-11-01 15:34:26 +02:00
elextr
f50a1a9fc4 Merge pull request #672 from kugel-/reload-docmsg
document: show informational doc message after first reload

Closes #562
2015-10-31 11:47:43 +10:00
Thomas Martitz
9b458b9fd5 document: Revert 6f5d5db and d6d4728
Now that there is a proper user indication for the "maintain history on
reload" feature we can toggle it on by default. The setting is also renamed
so that the default is effective for everyone (this was the plan).
2015-10-30 15:30:14 +01:00
Thomas Martitz
b1e9c4f3b6 document: show informational doc message after first reload
6f5d5db and d6d4728 disabled "maintain history on reload" by default,
with the intention to reenable it when we have a better method to
make it discoverable for the user. This was necessary since it became
enabled by default but could be surprising given Geany warned about
losing data before.

This commit tries to resolve the discoverability, by providing an
informational doc message that is shown once to the user, after the first
reload. The doc message also gives the option to disable this feature.
2015-10-30 15:23:44 +01:00
Dimitar Zhekov
e44e00afe0 Fix configdir encoding
configdir is initially in locale (glib) encoding. Converting it from
UTF-8 is wrong, and it must be converted _to_ UTF-8 when used in
geany_debug() - otherwise, Help -> Debug Messages fails assertion.
POSIX only, under Windows the glib encoding is also UTF-8.

Closes #658.
2015-10-29 23:37:29 +01:00
Colomban Wendling
4c6bd09b5a Merge pull request #711 from geany/elextr-patch-1
Add ".adoc" extension to asciidoc filetype
2015-10-25 16:37:34 +01:00
Colomban Wendling
4335804d23 Merge branch 'mio/update'
Manually import some upstream MIO changes.
2015-10-25 16:09:21 +01:00
Colomban Wendling
5dea35ada9 Respect Smart Home Key setting in Go To Start of Display Line 2015-10-25 14:05:37 +01:00
Colomban Wendling
326c39f8d5 Add printf attribute to vprintf() functions
This allows GCC to check vprintf() format, and makes
`-Wsuggest-attribute=format` happy.
2015-10-24 20:16:44 +02:00
Colomban Wendling
cbc85b7444 Improve memory backend of mio_read()
Drop the loop in mem_read() in favor of a single memcpy() call.

This greatly improves performances when nmemb > 1, for a small loss
for some values of size when nmemb == 1.  Gain can theoretically be
infinite since swapping nmemb and size parameters changes almost
nothing while it had a dramatic performance impact previously.  Loss
is up to about 25% in the worst case for some values of size when
nmemb is 1.

Also, now the function always copies as much data as possible, not only
whole blocks.  This follows the glibc implementation of fread() and
simplifies the code.  Doing so also fixes the position after a partial
read to be at the last readable character rather than the end of the
last read block.
2015-10-24 20:15:58 +02:00
elextr
06f2cbe6f6 Add ".adoc" extension to asciidoc filetype
Closes #708
2015-10-23 16:34:25 +10:00
Colomban Wendling
7fbe99fd8a Merge pull request #707 from b4n/waf/c99
waf: Check and enable C99 compiler support
2015-10-22 21:53:32 +02:00
Colomban Wendling
1c6b908c9e waf: Check and enable C99 compiler support
Closes #679.
2015-10-22 01:38:15 +02:00
Frank Lanitz
459983ed15 Update of Portuguese translation 2015-10-20 22:42:38 +02:00
Dimitar Zhekov
748f5689cc Unify the spawn callers error messages: custom command 2015-10-20 20:38:37 +03:00
Dimitar Zhekov
d8318b6366 Unify the spawn callers error messages: template replacement command 2015-10-20 20:37:23 +03:00
Dimitar Zhekov
389c0a223d Unify the spawn callers error messages: print command 2015-10-20 20:35:12 +03:00
Dimitar Zhekov
897197ae51 Unify the spawn callers error messages: context action 2015-10-20 20:33:41 +03:00
Dimitar Zhekov
421f8a0ce0 Unify the spawn callers error messages: terminal command 2015-10-20 20:31:37 +03:00
Dimitar Zhekov
e74dc40e11 Unify the spawn callers error messages: grep tool 2015-10-20 20:30:00 +03:00
Dimitar Zhekov
5aa0b02f00 Sync spawn glib/unix and Windows messages
In particular, the exec() and CreateProcess() errors are reported
directly, but failures in other any functions, which are extremely
rare, include some descriptive text, such as "Failed to set pipe
handle to inheritable (Access denied)". The example is artificial.
2015-10-20 20:22:51 +03:00
Dimitar Zhekov
d60a4b789d Alter spawn to cut glib citing of the program name or working dir
Mostly translate the G_SPAWN error codes back to errno, and get the
curresponding g_strerror() message.
2015-10-19 20:43:23 +03:00
Dimitar Zhekov
716c785e34 Alter spawn to return the error message only in error->message
That is, do not cite the original text, program name, or the failed
OS function name (except when the testing program is compiled).
Also cut glib citing of the original text on bad quoting.
2015-10-19 20:00:36 +03:00
Colomban Wendling
9420ec8493 Merge pull request #697 from techee/val_if_fail
Use g_return_val_if_fail() to fix build on OS X
2015-10-19 15:45:28 +02:00
Matthew Brush
d5e484cadb Update manual for changes to view menu/color schemes dialog
Closes #699
2015-10-17 11:00:56 -07:00
Jiří Techet
f9e6ceacee Use g_return_val_if_fail() to fix build on OS X 2015-10-15 20:52:08 +02:00
Colomban Wendling
7215c50277 Merge pull request #646 from b4n/new-cl-files-once
Don't open more than one document for non-existing paths from the CLI
2015-10-13 22:35:16 +02:00
Colomban Wendling
b2879e9fca tagmanager: Fix handling of scopes starting with a non-ASCII character
Fix handling of scopes starting with a non-ASCII character.

Actually, just drop the check on the first byte of the scope, as it
doesn't seem to serve any purpose as it only checks the first byte (so
isn't any kind of real validation; and as it predates Geany it's
impossible to know the real reason behind this check), and breaks
support for non-ASCII scopes.
2015-10-12 19:20:02 +02:00
Colomban Wendling
152103392c Merge pull request #376 from kugel-/keybindings-rework3
Keybindings rework
2015-10-10 13:57:47 +02:00
Dimitar Zhekov
d6e94cf9d4 Use GStatBuf instead of plain struct stat
Especially under Windows, there are 32-bit and 64-bit stat, and
g_[l]stat may use the non-default one.

Closes #677
2015-10-07 17:16:09 -07:00
Colomban Wendling
c6952c7599 Merge pull request #629 from kugel-/pluxy
Add support for plugins acting as proxies for foreign plugins,
promoting foreign plugins to first-class citizen.
2015-10-06 15:53:14 +02:00
Colomban Wendling
d0f94460ea Bump plugin API version for proxy plugins support 2015-10-06 15:43:40 +02:00
Thomas Martitz
6cb443e863 plugins: enforce geany_plugin_register_proxy() can be called once
In the future we might want to enable calling it again to set new supported
plugin types/extensions. This is not implemented yet, but in order to
allow this in the future we have to prevent it now, otherwise we'd
need to break the API.
2015-10-06 15:40:57 +02:00