9093 Commits

Author SHA1 Message Date
Colomban Wendling
b7900b3f05 Merge pull request #1399 from techee/osx_start
Avoid gdk_display_get_name() on OS X
2017-02-27 18:09:59 +01:00
Colomban Wendling
3b105ec827 Merge pull request #1404 from b4n/search/gtk-3-20-history
Fix search history filling on GTK >= 3.20
2017-02-27 14:18:50 +01:00
Colomban Wendling
6d0062201e Scintilla: speed up converting byte offsets to character offsets
Use a per-line cache to avoid re-computing the offset from the start of
the buffer each time. This dramatically speeds up multiple replacements
on large files.

X-Scintilla-Bug-ID: https://sourceforge.net/p/scintilla/bugs/1910/
2017-02-27 14:16:20 +01:00
Colomban Wendling
b07c8b01c0 Merge branch 'scintilla/update-373'
Update Scintilla to version 3.7.3 plus a fix for a regression on it.

Closes #1320.
2017-02-26 20:24:13 +01:00
Colomban Wendling
1421a3f9c5 scintilla: Fix crash after destroying the widget on GTK < 3.3.6
On GTK2 and GTK3 < 3.3.6 there is no GtkAccessibleClass::widget_unset()
method, so we can't destroy our accessible object right away.  So, to
avoid accessing a destroyed widget, we need to check whether the widget
still exists in the the ScintillaGTKAccessible destructor.

In other methods it's not necessary because the wrapping GObject class
makes sure not to forward other when the widget has been destroyed, but
we still have to destroy the C++ instance no matter what, so the check
has to be on this side.

Fixes #1410.
2017-02-26 20:07:33 +01:00
Frank Lanitz
df05fc8712 Update NEWS 2017-02-26 12:07:15 +01:00
Frank Lanitz
7125769d54 Update NEWS 2017-02-26 12:04:33 +01:00
Frank Lanitz
f4c3363c69 Update of Portuguese translation 2017-02-26 12:04:33 +01:00
Thomas Martitz
7b091809db api: new function geany_api_version
This allows plugins to detect the API version of Geany at runtime. This enables
soft dependencies based on Geany's API version, perhaps using a new feature
with a fallback for older API versions. Previously the only alternatives
were hard-depending on a more recent Geany version or ignoring new features.
2017-02-24 16:24:16 +01:00
Abel Serrano Juste
1c2d35a541 Solved spanish fuzzy translation for Geany 1.30 (#1408) 2017-02-24 09:16:41 +01:00
Colomban Wendling
0b85db49e6 GTK: Fix double scrolling under X11
Really restrict smooth scrolling handling to Wayland.

X-Scintilla-Bug-URL: https://sourceforge.net/p/scintilla/bugs/1901/
X-Scintilla-Commit-ID: ae52e0c68190d423505624ae1d26e442e015d48f
2017-02-23 20:36:08 +01:00
Frank Lanitz
ed4fd6a5c7 Update po-files for string freeze of Geany 1.30 2017-02-22 18:00:00 +01:00
Colomban Wendling
9a230e1f45 Fix search history filling on GTK >= 3.20
Since GTK 3.19.12, GtkComboBox has an intermediate GtkBox internal
child wrapping the inner GtkEntry.  To get the entry,
`gtk_bin_get_child()` still works as it is part of the API, but the
change breaks the assumption we had that it works the other way around,
that `gtk_widget_get_parent(gtk_bin_get_child(combobox)) == combobox`.
So, while this assumption seemed reasonable, stop relying on it as it
is effectively not correct on GTK 3.20 and newer.

See: https://git.gnome.org/browse/gtk+/commit/?id=222c43fc60362eeb97ce2d5e3a5583a69a2e30ef
2017-02-21 23:23:49 +01:00
Colomban Wendling
93f273428a Update for new Scintilla styles 2017-02-21 14:16:56 +01:00
Colomban Wendling
2219ab720c Update Scintilla to version 3.7.3 2017-02-21 14:16:23 +01:00
Frank Lanitz
f096fa2163 Small update of German translation 2017-02-19 19:14:26 +01:00
Jiří Techet
ed46b65c00 Avoid gdk_display_get_name() on OS X
More in the comment.
2017-02-16 11:45:46 +01:00
Vasiliy Faronov
7347631563 Fix setting menu item labels dynamically
Fixes https://github.com/geany/geany-plugins/issues/462
2017-02-16 01:44:53 +03:00
Colomban Wendling
170ebf610f scintilla: Fix build with older GCC
Don't convert function pointer to non-function pointer.  This is
undefined behavior, and some older GCC don't like it.
2017-02-08 22:43:27 +01:00
Colomban Wendling
b0f71a1666 Merge branch 'Forkest/copy-items-nonlatin'
Work around incorrect keybinding handling with multiple layouts so
cut/copy/delete keybindings work via menuitem activation if we failed
to trigger the action ourselves.

Closes #1386.
2017-02-05 17:32:54 +01:00
Colomban Wendling
2c1a71ad2b Use :select/:deselect signals for consistency
Instead of having a handler on 2 separate objects, use :select and
:deselect on the same one.  Those signals are appropriate, as the
documentation mentions that submenus are popped up on :select.
2017-02-05 15:34:24 +01:00
Forkest
67d6562f20 Fix cut and copy actions in non-Latin keyboard layouts
Mark the associated menu items sensitive when the menu is hidden, so
that GTK's accelerator handling can trigger them.  This works around
incorrect handling in Geany's code of keybindings coming from multiple
layouts for cut/copy/delete actions.

Partial workaround for #998, #1286 and #1368.
2017-02-05 12:52:51 +01:00
Colomban Wendling
0df7d5a03a scintilla: Prevent running signal handlers on a destroyed a11y object
Avoid crash when detaching the widget from the accessible object
without destroying that widget.

In such situations, the widget is still valid but we will have
destroyed the orphaned accessible object.  Thus, we must make sure we
disconnected the signal handlers the late accessible had set up on the
widget, as they won't be implicitly disconnected by widget
finalization in this case.

Fixes #1385.
2017-02-02 14:42:38 +01:00
Robert Antoni Buj Gelonch
38d59835db Update Catalan translation (#1375) 2017-01-24 09:38:15 +01:00
Colomban Wendling
00a3aef94d Merge pull request #1361 from Akronix/keywords-js.filetypes
Updated filetypes.javascript keywords
2017-01-23 14:10:45 +01:00
Abel 'Akronix' Serrano Juste
c6984699d3 Removed 'alert' from secondary keywords since it depends on a DOM environment 2017-01-14 21:26:36 +01:00
Colomban Wendling
59935a3579 Merge pull request #1356 from b4n/snippets-keybindings-signature
Fix snippets keybindings not blocking handled events
2017-01-12 19:39:42 +01:00
Abel 'Akronix' Serrano Juste
c328051382 Some adjustmenys in javascript keywords: Deleted 'each' from secondary keywords 2017-01-11 23:18:38 +01:00
Abel 'Akronix' Serrano Juste
6fad4c017c Updated js keywords with ES6 2017-01-11 23:05:05 +01:00
Colomban Wendling
1724bab3b8 scripts/github-news: Fix issues link
Closes #1360.
2017-01-11 14:32:37 +01:00
Colomban Wendling
d4a35947d3 Fix snippets keybindings not blocking handled events
Fix signature of the snippets keybindings callback, properly blocking
further propagation of handled events thus avoiding possibly activating
another action (like a builtin Scintilla keybinding).

Fixes #1354.
2017-01-09 14:42:20 +01:00
Colomban Wendling
43b7982b2e Merge pull request #1350 from kugel-/for-upstream
api: rework GeanyProxyProbeResults compat symbols as defines
2017-01-09 14:18:16 +01:00
Frank Lanitz
4780b2a827 Update of German translation 2017-01-06 14:52:50 +01:00
Colomban Wendling
c914598dba Update Scintilla to version 3.7.2 2016-12-31 16:28:00 +01:00
Enrico Tröger
16ea1d35a6 Fix file names of generated tags files for C, PHP and Python 2016-12-28 23:20:47 +01:00
Enrico Tröger
59f080d058 Update tags and filedefs path references in scripts
This is a follow-up of #485.
2016-12-28 22:59:46 +01:00
Thomas Martitz
129389c75b api: rework GeanyProxyProbeResults compat symbols as defines
Constants with different namespace in the same enum confuse g-ir-scanner.
2016-12-28 00:39:35 +01:00
Colomban Wendling
cad224d204 Merge pull request #1280 from b4n/current-scope
Fix the current scope shown in the statusbar
2016-12-22 13:54:16 +01:00
Colomban Wendling
19af3caa73 Fix the current scope shown in the statusbar
Since the Scintilla C++ lexer started to fold on `()` [1], the code
looking up the current scope is confused whenever the function
signature spans multiple lines.  Fix this by skipping fold levels that
correspond to parentheses.

Fixes #1279.

[1] https://sourceforge.net/p/scintilla/feature-requests/1138/
    imported in 24f91981c057a7e212c09da66fb974c3ccc85bd6
2016-12-22 13:52:12 +01:00
Colomban Wendling
a8bc890541 Merge branch 'scintilla/accessible-fixes'
Fix some various issues with accessibility code in Scintilla.
2016-12-20 21:47:51 +01:00
Colomban Wendling
07c665197f GTK: Ensure styles are valid when retrieving them for accessibility purposes 2016-12-20 21:45:29 +01:00
Colomban Wendling
a31a43efe1 GTK: Fix reporting deletion length in the accessible
We cannot compute the length in characters after the text has been
deleted, so we need to compute it in BEFOREDELETE.  However, we need to
emit the signal once the buffer has actually changed, so we need to
cache the value in-between those events.
2016-12-20 21:45:29 +01:00
Colomban Wendling
745d15de2e GTK: Fix off-by-one error in accessible attribute runs 2016-12-20 21:45:29 +01:00
Colomban Wendling
2f327b767b GTK: Fix accessible object lifetime on GTK < 3.8 2016-12-20 21:45:29 +01:00
Colomban Wendling
407cb36ceb GTK: Add some documentation on accessible object reference ownerships 2016-12-20 21:45:29 +01:00
Colomban Wendling
9fdb014b07 javascript: Partial highlighting of ES6 template strings
This doesn't support nested templates or escaped `es, but at least
handles the most obvious cases for now.

Part of #934.
2016-12-18 17:38:37 +01:00
SukkoPera
21b37f553f Add Arduino custom filetype
Closes #1339
2016-12-16 02:55:35 -08:00
tsvisimcha
9573a3886d Update HACKING (#1340) 2016-12-16 09:27:00 +01:00
Colomban Wendling
3ddea9c3ae Update NEWS for Scintilla 3.7.1
It actually introduces a few new things worth mentioning.
2016-12-10 11:31:50 +01:00
Colomban Wendling
aa11c3ea48 Update Scintilla to version 3.7.1 2016-12-05 14:23:34 +01:00