8191 Commits

Author SHA1 Message Date
Colomban Wendling
676f3794fc Merge pull request #553 from b4n/no-reload-maintain-history-by-default
Disable "maintain history on reload" by default
2015-07-11 22:34:41 +02:00
Colomban Wendling
73822e77ec Merge pull request #556 from b4n/gtk3-in-news
Replace references to GTK2 with GTK+ and "stabilize" GTK3 in NEWS
2015-07-11 22:22:09 +02:00
Colomban Wendling
6c753e591b filebrowser: Use Spawn module to launch the external command
This makes the command syntax consistent with other
Geany ones and more native on Windows.
2015-07-11 22:14:25 +02:00
Colomban Wendling
05f35ed683 Include spawn.h in geanyplugin.h as it has Plugin API bits in it 2015-07-11 22:12:08 +02:00
Enrico Tröger
5379e1387f Windows installer: fix plugin installation directory 2015-07-11 16:36:03 +02:00
Colomban Wendling
d6d4728f2e Rename "maintain history on reload" setting temporarily for 1.25
We want it disabled by default in 1.25 for everyone, but want to be
able to get it back on by default later on when the UI is more
polished.

So we will need to have a way to tell whether the configuration comes
from 1.25 and should be upgraded or was willfully disabled by the user
in a later version.  So, use a temporary setting name that defaults to
disabled for 1.25

See #553.
2015-07-11 15:44:00 +02:00
Colomban Wendling
8c907dc00f Merge pull request #555 from b4n/less-spawn-api
spawn: Do not export unnecessary API
2015-07-11 15:27:02 +02:00
Colomban Wendling
fd06d47c7b Merge pull request #548 from techee/run_script_escape
Properly escape working directory in run script

Closes #554.
2015-07-11 15:10:59 +02:00
Colomban Wendling
860e3fb12e Merge pull request #550 from b4n/fix-ubuntu-libdir
autotools: Workaround a Ubuntu issue when installing in /usr/local/lib
2015-07-11 14:09:58 +02:00
Enrico Tröger
8d367d49b9 Merge pull request #360 from b4n/travis-test
travis: Add a Travis CI settings file
2015-07-11 10:05:30 +02:00
Colomban Wendling
3e2b4a269b travis: Make it a bit easier to change GTK bundle URLs 2015-07-10 23:45:48 +02:00
Colomban Wendling
02e6682ea6 travis: Enable Windows cross-compilation
We unfortunately can't run tests as they require running the just build
(foreign) executable, but at least it tries and build the Windows code
paths.
2015-07-10 23:32:56 +02:00
Colomban Wendling
e0eb176418 Mention that GTK3 version is not experimental anymore 2015-07-10 23:00:22 +02:00
Colomban Wendling
3bd7c80776 Replace references to GTK2 with GTK+
This allows to be GTK version agnostic, not to single out GTK3 builds.
2015-07-10 22:58:48 +02:00
Colomban Wendling
e34421377c spawn: Remove unnecessary and redundant comments 2015-07-10 22:41:02 +02:00
Colomban Wendling
7a91a8661d spawn: Do not export unnecessary API
Hide spawn_get_program_name(), spawn_async_with_pipes() and
spawn_get_exit_status_cb(), which are not used by anyone else and
should not be part of the plugin API unless explicitly required.

See http://lists.geany.org/pipermail/devel/2015-June/thread.html#9521

Note: this duplicates some documentation when a now hidden function was
referred to.
2015-07-10 18:24:23 +02:00
Colomban Wendling
cea34734c4 Update NEWS 2015-07-08 18:39:53 +02:00
Colomban Wendling
96d5eec50f Merge pull request #544 from b4n/cxx11-override
c++: Properly parse C++11 overrides, finals and noexcepts
2015-07-08 18:04:05 +02:00
Colomban Wendling
6f5d5db2cb Disable "maintain history on reload" by default
While the feature is nice, it might be unexpected and lacks user
feedback.  This might lead to user thinking they lost their work
because they don't know they can undo the reload operation.

So, disable the feature by default until we introduce appropriate user
feedback allowing the user to learn about the feature and new behavior.

See http://lists.geany.org/pipermail/devel/2015-June/thread.html#9537
2015-07-08 17:54:34 +02:00
Colomban Wendling
c5b86474ad Merge pull request #539 from kugel-/win32-fix
Win32 Autotools build and installer fixes.
2015-07-07 17:34:43 +02:00
Thomas Martitz
71ce7c077d win32: Add some window-specifc LDFLAGS to geany itself as well
Since we build libgeany some ld flags were applied to libgeany only.
Some of them need to be applied to the main binary as well.

This fixes the problem that a sticky terminal window starts together
with geany.
2015-07-05 18:28:20 +02:00
Thomas Martitz
9224c3c391 win32: run geany.nsi.in through automake to replace @GTK_VERSION@ variable
This automatically keeps the installer's idea of Gtk version with the one
used to compile geany in sync.

Traditionally we use the bundles from gtk.org to compile geany, and this
is also used for the installer. With msys2, we can use precompiled
msys2 binaries. These exist for GTK3 as well so we can actually provide a
GTK3 based installer. The installer naturually should reflect this.
Msys2's GTK2 is also newer.

Use the new script gtk-bundle-from-msys2.sh to extract the precompiled
GTK binaries from msys2 / pacman for packing the installer (can also be
used to make a zip for sharing).

mkdir gtk; cd gtk; ../scripts/gtk-bundle-from-msys.sh [-c] [-z] [-2 | -3]

waf is also adapted to process geany.nsi.in. This implies geany.nsi is now
under _build_, not in the root anymore.
2015-07-05 18:28:09 +02:00
Thomas Martitz
2e76e3792e win32: port some defines from win32-config.h & waf to a new win32defines.h
autotools based build system uses only config.h. This file was lacking some
important defines. Rather than maintaining the defines in all build systems,
we can simply define in a specialized header that is included by all .c files
that use windows.h
2015-07-05 18:25:24 +02:00
Thomas Martitz
ba80af0822 win32: install a few more files needed by the installer 2015-07-05 18:25:24 +02:00
Colomban Wendling
10e9dd7089 autotools: Workaround a Ubuntu issue when installing in /usr/local/lib
Ubuntu's linker apparently has a bug when installing in /usr/local/lib,
as it is setup in such a way that makes libtool recognize it correctly
as a system path so doesn't add RPATH to our executable, but ld can't
find the library without an explicit ldconfig call (unlike when
installing in /usr/lib).

So, workaround this by explicitly calling ldconfig when installing in
/usr/local/lib -- and when our library is actually not found, to try
and avoid doing something unnecessary on working systems, like e.g.
Debian.
2015-07-05 16:17:55 +02:00
Colomban Wendling
6ebf90ad1d Add an explicit entry about libgeany in the NEWS 2015-07-05 02:04:22 +02:00
Colomban Wendling
43a76923db Fix a small inconsistency in the French translation
In the VTE, the "Input Method" string mimics a GTK string, so use the
same translation as GTK.
2015-07-04 18:44:39 +02:00
Enrico Tröger
4017442f86 Merge pull request #477 from eht16/ctags_powershell
Add PowerShell tag parser
2015-07-04 12:52:46 +02:00
Enrico Tröger
a90b99b968 Merge pull request #540 from kugel-/win32-plugindir
win32: change default plugin dir to match Linux.
2015-07-04 12:29:22 +02:00
Jiří Techet
41184e4b98 Properly escape working directory in run script using g_shell_quote()
The g_strescape() function escapes non-ASCII characters so that bash
doesn't understand them.
2015-07-03 10:30:23 +02:00
Colomban Wendling
e22f0ca054 travis: Add a Travis CI settings file 2015-07-02 21:45:16 +02:00
Thomas Martitz
0b4228b94c win32: change default plugin dir to match Linux.
There is no need to do it differently as Linux here, and it confuses the
autotools based compilation of geany-plugins which installs to libdir/geany
unconditionally.
2015-07-01 23:41:37 +02:00
Colomban Wendling
aa40250fda Fix invalid memory access when quitting
When quitting and the prefs dialog has been created, the StashPrefs are
destroyed before the stash tree and so the stash tree cleanup code
accesses freed memory.  Fix this by removing access to the StashPref in
the tree cleanup code, as fixing it properly is a bit of a mess.

Closes #538.
2015-07-01 23:03:38 +02:00
Enrico Tröger
11d0d54552 Merge pull request #519 from techee/cxx_o2
Add -O2 flag also for C++ files when building with waf
2015-07-01 20:42:12 +02:00
Colomban Wendling
4476ed9c4b c++: Add a small test combining various C++14 things 2015-07-01 12:55:52 +02:00
Colomban Wendling
f60b31385e c++: Handle C++11 noexcept 2015-07-01 12:55:52 +02:00
Colomban Wendling
95a0d4db7e c++: Properly parse C++11 override and final members
As `override` and `final` aren't real keywords, handle them manually
not to break identifiers of those names.
2015-07-01 12:55:29 +02:00
Colomban Wendling
641863c264 c++: Fix handling of the final contextual keyword
`final` is not a normal keyword, as it only have a special meaning in
some specific context.  So, use a special case instead of a keyword not
to break identifiers of that name.
2015-06-30 23:22:08 +02:00
Jiří Techet
89f7a2eec9 Fix leaking typename_array in tag manager 2015-06-30 13:23:02 +02:00
Enrico Tröger
8a6fbd9786 Add PowerShell tag parser 2015-06-28 15:46:23 +02:00
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