9239 Commits

Author SHA1 Message Date
Colomban Wendling
89a934edee Guard some more code for non-library builds only 2018-12-09 09:45:49 +01:00
Colomban Wendling
e792d4fdf9 Don't export some local functions
They are already fixed upstream, so it doesn't add to the diff.
2018-12-09 09:45:48 +01:00
Colomban Wendling
f61bd540b7 Remove two unused variables 2018-12-09 09:45:48 +01:00
Colomban Wendling
f93aa14788 Remove an unused function that was removed upstream 2018-12-09 09:45:43 +01:00
Masatake YAMATO
749ab56058 main: remove duplicated declarations
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2018-12-09 09:42:09 +01:00
Masatake YAMATO
33a102ee91 Add dummy definitions to Assert* macros for suppressing compiler warnings
main/field.c:968:23: warning: \
     suggest braces around empty body in an ‘else’ statement [-Wempty-body]

     AssertNotReached();

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2018-12-09 09:42:09 +01:00
Jiří Techet
99e0f208b2 Merge branch 'master' into ctags_sync_main
# Conflicts:
#	ctags/main/lcpp.c
#	ctags/main/parse.c
2018-10-13 14:25:12 +02:00
Jiří Techet
248c970aa0 Add missing void 2018-10-13 13:38:08 +02:00
Jiří Techet
25e8ebc444 Fix indent 2018-10-13 13:36:38 +02:00
Jiří Techet
9b44e9fa42 Fix parsing with sub-parsers
The previous code would skip parsing with sub-parsers so these would not
work. Running full createTagsWithFallback1() in this case would cause
two problems:

1. We would have to propagate the extra callback arguments to
runParserInNarrowedInputStream()

2. And the callbacks after each pass should not actually be called in this
case because the caller expects these are called for the master parser,
not the sub-parsers.

So instead just do simple parsing without re-tries which are used only in
the C and Fortran parsers which lack sub-parser capability anyway.
2018-10-13 13:33:23 +02:00
Dmytro Semenchenko
719305c5b1 Update uk.po (#1968) 2018-10-03 18:25:27 +02:00
Frank Lanitz
61756967fb Update of Russian translation 2018-10-02 08:41:36 +02:00
Frank Lanitz
749c409b6f Small update of Russian translation 2018-09-30 21:32:55 +02:00
Frank Lanitz
4a47a7dee9 Update of Chinese Simplified translation 2018-09-29 10:17:54 +02:00
Frank Lanitz
7208f3c12c Small update of German translation 2018-09-24 22:18:38 +02:00
Colomban Wendling
c415d1d19d Merge pull request #1931 from eht16/issue1930_fix_gtk3_bundle_download
Update link to GTK+3 bundle for test builds to self-hosted version
2018-09-21 11:16:26 +02:00
Colomban Wendling
0b75601ac8 Merge pull request #1914 from b4n/scintilla/update-3-10-0
Update Scintilla to version 3.10.0

Fixes #1421.
2018-09-19 22:22:24 +02:00
Enrico Tröger
a098fa847b Update link to GTK+3 bundle for test builds to self-hosted version
The host win32builder.gnome.org seems dead and so host the GTK+3 bundle
we use to test builds for Windows cross-compilation on our own.
2018-08-26 09:52:42 +02:00
Frank Lanitz
a7599c5d06 Update of Danish translation 2018-08-20 19:09:53 +02:00
Enrico Tröger
60621434c9 Windows: Update indirect dependencies for bundle creation
Pango now requires fribidi, so we need to install it.
Update the download URL for UnxUtils.
Remove unnecessary cmake files after installation.
2018-08-19 23:32:02 +02:00
Enrico Tröger
3d280fef46
Merge pull request #1894 from hroncok/patch-1
Update Python identifiers with Python 3.7
2018-08-19 16:21:09 +02:00
Colomban Wendling
3f20ad363a Don't beep if there is no next snippet cursor
Now the keybinding can be overridden (e.g. using Tab for it as well as
normal behavior), beeping when there is no next cursor is more annoying
than useful.

Part of #1554.
2018-08-04 16:23:09 +02:00
Colomban Wendling
ea47c6c713 Update Diff styles for new Scintilla version
The new styles are for "diff of a diff", e.g. lines starting with `++`,
`+-`, `-+` and `--`.  Those are currently mapped conservatively keeping
the previous display behavior, until we have good style matches for
them.
2018-08-01 14:53:30 +02:00
Colomban Wendling
3fa7576e13 Update Scintilla to version 3.10.0
Scintilla 3.7.6/4.0.0 deprecated `SCE_*STYLEBITS*` and moved it to
deprecated features that require a build-time flag to be available.

Thus, drop use of those (as they are now no-ops anyway) and bump the
ABI (so plugins depending on those don't build mistakenly load) and API
(so a developer can guard use of those if wanted) version accordingly.
2018-08-01 14:51:52 +02:00
Colomban Wendling
958deb55fe Add a few extra hints in the Scintilla update script 2018-08-01 14:41:00 +02:00
Salvatore Manfredi
0c658c6a32 Fix incorrect translation (#1905)
These two strings have probably been translated with a generic online tool which lacks of contextual translation
2018-07-25 21:54:24 +02:00
LarsGit223
63eaf257de keybindings: Added missing "Strip Trailing Spaces" (#1806)
Fixes #395.
2018-07-16 07:53:01 +10:00
Miro Hrončok
3182ed5e03
Update Python identifiers with Python 3.7
Fixes https://github.com/geany/geany/issues/1351
2018-07-06 22:16:44 +02:00
Balázs Meskó
935c16ea25 Update Hungarian translation (#1880) 2018-06-18 06:47:26 +02:00
Colomban Wendling
8cdf1d1ee8 Make a local function static 2018-06-15 23:08:54 +02:00
Deimos715
592c68b123 Update some links to HTTPS
See also b10b2a716784d7fa3fd953ebde55982c39878313 (PR #1840)

Closes #1868
2018-06-02 15:02:14 -07:00
Colomban Wendling
b778e4b56f Merge pull request #1843 from b4n/smooth-scroll-bug
Fix horizontal and page scroll on GTK3
2018-05-26 12:17:11 -04:00
Jiří Techet
38a0e4f5b0 Allow plugins to process keypress events before Geany (#1829)
In addition, the signal allows plugins swallow the event so it's not
processed by Geany.
2018-05-22 09:35:44 +10:00
Wuerstchen
07643499cd Update de.po (#1858)
Small typo (grammar)
2018-05-18 00:19:18 +02:00
FMuro
af15898823 Fix boldface and italics (#1837)
Before, **boldface** or *italics* (also _italics_) would not generally show as that, definitely not with the default color scheme. After this change, they appear with the same color as normal text but with that typography, in all color schemes.
2018-05-05 20:36:08 +02:00
Enrico Tröger
1507f867ce
Merge pull request #1840 from paulmenzel/use-https-url-for-www.geany.org
Use HTTPS URL for domain www.geany.org
2018-04-25 20:05:07 +02:00
Colomban Wendling
604eac9f06 Fix horizontal and page scroll on GTK3
Our custom scroll handler for horizontal (Shift+Scroll) and page
(Alt+Scroll) scroll didn't properly check the scroll direction and
assume that if it's not down it's up.  This was mostly not a problem
because the other types only were left and right scroll events, which
are a lot less common.

However, it became a lot more problematic with GTK 3.4 that introduced
"smooth scrolling", and thus a new scroll type that can happen for
events in any direction.  We then would scroll up (as we assume "not
down" is up) regardless of the actual direction of the event.

It's still not clear why we'd get smooth scroll events on X11 as no
code I can find asks for it and we generally don't get those, but
sometimes a Scintilla widget starts receiving them, leading to the bug.
On Wayland on the other hand, Scintilla asks for smooth scroll events,
so we need to have a fix for it in any case.
2018-04-24 19:19:56 -03:00
Paul Menzel
b10b2a7167 Use HTTPS URL for domain www.geany.org
Replace all occurrences with the command below.

    git grep -l 'http://www.geany.org' | xargs sed -i 's,http://www.geany.org,https://www.geany.org,g'
2018-04-23 17:11:37 +02:00
Colomban Wendling
1611e3f949 Merge pull request #1748 from kugel-/msgwin-api
Add GI-compatible msgwin_*_add()

Closes #1748.
2018-04-05 15:47:30 -04:00
Colomban Wendling
bec3832359 Bump API version 2018-04-05 15:44:44 -04:00
Thomas Martitz
78644a8260 msgwin: improve doxygen comments
Make the brief text be distinct between msgwin_*_add and msgwin_*_add_string().
Also add @see directives where appropriate. Lastly, add @since to
msgwin_status_add() for completeness.
2018-04-05 15:44:43 -04:00
Thomas Martitz
cb179943ad msgwin: beautify doxygen comments a bit 2018-04-05 15:44:43 -04:00
Thomas Martitz
d3417b7b37 api: add non-variadic variants of msgwin_*_add to the API
The variadic variants cannot be gobject-introspected, i.e. are not available
in  Peasy.

In fact, msgwin_compiler_add_string() and msgwin_msg_add_string() already
existed and have just been exported. msgwin_status_add_string() is new but
msgwin_status_add() becaume a wrapper around it in the same fashion as the
other two pairs.
2018-04-05 15:44:43 -04:00
Colomban Wendling
4d252c7a19 Merge pull request #1799 from b4n/plugin-manager/selection-on-double-click
Fix PM button desynchronization and possible crash
2018-04-03 17:52:19 -04:00
Colomban Wendling
11da5557a0 Skip the format specifier when loading a global tag file
This prevents loading a spurious tag for the format specifier line, as
well as fixing loading of CTags format with a format specifier line.

Before this change, the file pointer was rewound after reading a format
specifier line; but this had various unwanted side effects depending on
the recognized format:

* For TagManager and Pipe formats, it led to loading a tag named after
  the format specifier (e.g. a literal "# format=tagmanager").  This
  was fairly harmless and only introduced a spurious tag seldom even
  used because "#" isn't usually considered for looking up completions.
* For CTags format, having an explicit specifier led to failure to load
  the file in most cases because the specifier line would be parsed but
  doesn't usually follow the format's requirements, leading to early
  abortion loading that file.  On some very specific specifier lines
  actually following CTags format, it could have led to loading a
  spurious tag instead.

Fixes #1814 and closes #1816.
2018-03-23 00:48:18 -04:00
Frank Lanitz
7c6b4794b1 Small update of German translation 2018-03-17 18:45:20 +01:00
LarsGit223
6e4eece981 manual: added documentation about replacement of 'untitled.ext' with filename (#1804)
On "Save As..." a text in the form 'untitled.ext' will be replaced with the chosen
filename if it is found in the first 3 lines of the document. This PR adds a description
of the feature to the manual. Fixes #753.
2018-03-15 08:46:23 +10:00
LarsDW223
7fd73a06a7 keyfile: Output unescaped filename if session file cannot be opened
Fixes #779.
2018-03-13 18:55:01 -07:00
LarsDW223
08a60e3c7e spawn: Changed confusing macro name, fixes #1256 2018-03-13 20:04:53 +01:00
Frank Lanitz
e4bc8c3de1 Update of Swedish translation 2018-03-12 12:39:39 +01:00