8053 Commits

Author SHA1 Message Date
Colomban Wendling
290a80ab71 Merge pull request #569 from b4n/spawn-wif-and-doc
Prefix the WIF* macros with SPAWN_ and add short doc comments, and fix
Doxygen integration.
2015-07-12 16:46:47 +02:00
Colomban Wendling
bb28bdd1d3 Fix spawn documentation so it appears in the API docs 2015-07-12 16:32:10 +02:00
Colomban Wendling
feca48b59e spawn: Move macros documentation so Doxygen can find them 2015-07-12 16:32:07 +02:00
Dimitar Zhekov
7819cd11c7 Make the search.c exit status checks platform independent 2015-07-12 17:12:20 +03:00
Dimitar Zhekov
2f237c91a1 Prefix the WIF* macros with SPAWN_ and add short doc comments 2015-07-12 17:06:02 +03:00
Colomban Wendling
64fb9f9a51 Don't return with an argument in a function returning void 2015-07-12 15:27:27 +02:00
Enrico Tröger
f11a2eb013 Merge pull request #563 from geany/elextr-news-addition
Update NEWS to mention windows command quoting
2015-07-12 12:51:12 +00:00
elextr
b891c84582 Update NEWS to mention windows command quoting 2015-07-12 14:42:11 +02:00
Colomban Wendling
5b341b1231 spawn: Fix a typo in Windows compatibility code
Thanks to Dimitar for spotting this.
2015-07-12 14:23:08 +02:00
Colomban Wendling
01b01cc83a Merge pull request #561 from b4n/filebrowser-use-spawn
filebrowser: Use Spawn module to launch the external command
2015-07-12 14:15:30 +02:00
Enrico Tröger
a54cca738f Install src/spawn.h as it is part of the plugin API 2015-07-12 10:02:56 +02:00
Colomban Wendling
c021447394 Fix a few typos in NEWS 2015-07-12 01:48:56 +02:00
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