8 Commits

Author SHA1 Message Date
Thomas Martitz
6098f55032 encodings: move private stuff into private header
encodings.h had a pretty large GEANY_PRIVATE part so it's worthwhile to
separate that into its own header (as per HACKING). What's left is used by the
plugin API.
2015-12-17 09:52:49 +01:00
Colomban Wendling
38f827d087 Merge pull request #533 from techee/doc_changed
Force disk status document check in some specific cases
2015-11-04 21:58:39 +01:00
Jiří Techet
60bda54626 Check whether the current document changed when Geany window activated
This captures the common case when e.g. changing the document outside
Geany and switching back to Geany.

Remove the osx-specific code doing the same for osx only.
2015-11-04 21:35:24 +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
6db80a247f Don't open more than one document for non-existing paths from the CLI
When creating a new document for a non-existing file from the command
line, check if we don't already have opened it and simply show the
existing one if we do.  This avoids creating new documents that will be
saved to the same location again and again.

Closes https://bugs.launchpad.net/linuxmint/+bug/1482558
2015-09-08 16:23:57 +02:00
Philipp Wiesemann
32ee98da17 Fix typo in message 2015-05-10 21:20:55 +02:00
Colomban Wendling
9644fb0ae2 Define GEANY_{EXPORT,API}_SYMBOL from the build system
This makes it easier to define it consistently to what the compiler
and platform supports, and avoids having to include a special header
everywhere, which is some kind of a problem for separate libraries
like TagManager and especially Scintilla.

As we only use these macros from the source and not the headers, it
is fine for it to be defined to a configure-time check from the build
system.

Warning: Although Waf and Windows makefiles are updated they are not
         tested an will probably required tuning.
2015-04-10 16:08:08 +02:00
Matthew Brush
d33758da92 Move Geany's core into a library (libgeany)
This will allow plugins to link against the core when accessing API
functions, now that the macro/struct/funcptr stuff is gone.

Also convert the helper libraries into Libtool helper libraries as
linking a shared library against static libraries is (apparently) not
portable.
2015-03-10 23:09:46 +01:00