Dan Winship [Wed, 20 Nov 2013 14:41:13 +0000 (09:41 -0500)]
building: Document C90 and POSIX requirements
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Wed, 20 Nov 2013 14:31:20 +0000 (09:31 -0500)]
building: belated docs update: GNU make is required, not recommended
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Sat, 19 Oct 2013 17:04:00 +0000 (13:04 -0400)]
Replace #ifdef HAVE_UNISTD_H checks with #ifdef G_OS_UNIX
In Windows development environments that have it, <unistd.h> is mostly
just a wrapper around several other native headers (in particular,
<io.h>, which contains read(), close(), etc, and <process.h>, which
contains getpid()). But given that some Windows dev environments don't
have <unistd.h>, everything that uses those functions on Windows
already needed to include the correct Windows header as well, and so
there is never any point to including <unistd.h> on Windows.
Also, remove some <unistd.h> includes (and a few others) that were
unnecessary even on unix.
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Sat, 19 Oct 2013 17:03:59 +0000 (13:03 -0400)]
Require POSIX.1 (1990) compliance on unix
Assume unix platforms support the original POSIX.1 standard.
Specifically, assume that if G_OS_UNIX, then we have chown(),
getcwd(), getgrgid(), getpwuid(), link(), <grp.h>, <pwd.h>,
<sys/types.h>, <sys/uio.h>, <sys/wait.h>, and <unistd.h>.
Additionally, since all versions of Windows that we care about also
have <sys/types.h>, we can remove HAVE_SYS_TYPES_H checks everywhere.
Also remove one include of <sys/times.h>, and the corresponding
configure check, since the include is not currently needed (and may
always have just been a typo for <sys/time.h>).
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Sat, 19 Oct 2013 17:03:58 +0000 (13:03 -0400)]
Require C90 compliance
Assume all supported platforms implement C90, and therefore they
(correctly) implement atexit(), memmove(), setlocale(), strerror(),
and vprintf(), and have <float.h> and <limits.h>.
(Also remove the configure check testing that "do ... while (0)" works
correctly; the non-do/while-based version of G_STMT_START and
G_STMT_END was removed years ago, but the check remained. Also, remove
some checks that configure.ac claimed were needed for libcharset, but
aren't actually used.)
Note that removing the g_memmove() function is not an ABI break even
on systems where g_memmove() was previously not a macro, because it
was never marked GLIB_AVAILABLE_IN_ALL or listed in glib.symbols, so
it would have been glib-internal since 2004.
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Sat, 19 Oct 2013 17:03:56 +0000 (13:03 -0400)]
Remove alleged support for last-millennium Unixes
Remove workarounds for NeXTStep (last released in 1995), SunOS (1994),
HP-UX 9.x (1992) and 10.x (1995), OSF/1 / Digital UNIX / Tru64 UNIX
4.x (1999), and AIX 4.x (1999).
HP-UX 11 implements dlopen(), so dropping support for earlier versions
also lets us remove the HP-UX-specific gmodule-dld.
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Sat, 19 Oct 2013 17:03:55 +0000 (13:03 -0400)]
Remove alleged support for BeOS
Since the initial addition of BeOS support in 1999, there has only
been one update to it (in 2005, and it wasn't even very big). GLib is
known to not currently build on Haiku (or presumably actual BeOS)
without additional patching, and the fact that there isn't a single
G_OS_BEOS check in gio/ is suspicious.
Additionally, other than the GModule implementation, all of the
existing G_OS_BEOS checks are either (a) "G_OS_UNIX || G_OS_BEOS", or
(b) random minor POSIXy tweaks (include this header file rather than
that one, etc), suggesting that if we were going to support Haiku, it
would probably be simpler to treat it as a special kind of G_OS_UNIX
(as we do with Mac OS X) rather than as its own completely different
thing.
So, kill G_OS_BEOS.
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Dan Winship [Sat, 19 Oct 2013 17:03:46 +0000 (13:03 -0400)]
Remove alleged support for OS/2
In particular, remove the OS/2 GModule implementation (which AFAICT
was never actually built even on OS/2).
https://bugzilla.gnome.org/show_bug.cgi?id=710519
Stef Walter [Tue, 29 Oct 2013 17:03:29 +0000 (18:03 +0100)]
gbacktrace: Print out gdb exec errors correctly
We want to see error messages related to starting and running
gdb (such as if it's not installed).
https://bugzilla.gnome.org/show_bug.cgi?id=711088
Michael Haubenwallner [Thu, 14 Nov 2013 15:22:10 +0000 (16:22 +0100)]
build: Give internal libraries higher precedence
Linking local libraries too late may cause preinstalled libraries to
get found earlier, due to external library paths in .la files.
https://bugzilla.gnome.org/show_bug.cgi?id=712314
Stef Walter [Tue, 29 Oct 2013 20:30:06 +0000 (21:30 +0100)]
gmessages: Add g_info macro for G_LOG_LEVEL_INFO
For completeness. Although less used than others, projects want
to use this, and end up having to define it awkwardly themselves.
https://bugzilla.gnome.org/show_bug.cgi?id=711103
Colin Walters [Mon, 18 Nov 2013 21:15:34 +0000 (16:15 -0500)]
GSocketClient: For _CONNECTING event, make remote address accessible
My application (hotssh) would like to get the resolved address from DNS,
before we start the connect().
We could add a new event, but it's easy enough to just cache it on the
GSocketConnection; this avoids any new API.
https://bugzilla.gnome.org/show_bug.cgi?id=712547
Michael Haubenwallner [Thu, 14 Nov 2013 15:16:59 +0000 (16:16 +0100)]
AIX splice() is something different
AIX does provide the splice() symbol, but this does have different
signature and usecase than what Linux may provide.
https://bugzilla.gnome.org/show_bug.cgi?id=712314
Michael Haubenwallner [Thu, 14 Nov 2013 15:12:02 +0000 (16:12 +0100)]
Use AC_HEADER_MAJOR
Instead of checking for sys/mkdev.h headerfile, there is the
AC_HEADER_MAJOR helper for how to get major(), minor(), makedev().
https://bugzilla.gnome.org/show_bug.cgi?id=712314
Colin Walters [Tue, 12 Nov 2013 18:41:47 +0000 (13:41 -0500)]
gsettings.m4: @GSETTINGS_RULES@: Support srcdir != builddir with nonrecursive make
In hotssh I use nonrecursive make. gnome-continuous uses srcdir !=
builddir by default. @GSETTINGS_RULES@ will then attempt to touch a
nonexistent path.
This patch fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=712171
Dan Winship [Sun, 17 Nov 2013 14:45:20 +0000 (09:45 -0500)]
GDummyTlsBackend: cache the GDummyTlsDatabase
The default GTlsDatabase is supposed to be a singleton (and libsoup
has tests that will fail if it's not).
Ray Strode [Fri, 15 Nov 2013 19:47:09 +0000 (14:47 -0500)]
gobject: Box GMappedFile
GMappedFile is current unintrospectable, because it's not a registered
box type. It already has reference counting functions, so there's
little reason not to box it.
This commit adds GMappedFile to the hoard of other boxes types handled
by gboxed.c
https://bugzilla.gnome.org/show_bug.cgi?id=712393
Ryan Lortie [Fri, 15 Nov 2013 20:23:43 +0000 (15:23 -0500)]
Fix GSettings testcase again
Hopefully this one will work for both srcdir == builddir and not.
Philip Withnall [Thu, 14 Nov 2013 18:06:32 +0000 (18:06 +0000)]
gstrfuncs: Mention nullability in g_ascii_strcasecmp() documentation
Like strcmp(), g_ascii_strcasecmp() requires that both of its parameters
be non-%NULL.
Florian Müllner [Thu, 7 Nov 2013 22:41:21 +0000 (23:41 +0100)]
gdesktopappinfo: Rank Keywords matches higher than GenericName
It makes sense to match on GenericName in case an application does
not provide any keywords, but the Keywords field has been added
to explicitly support the search case, while GenericName was used
to be displayed in menus, so it makes more sense to consider
Keywords more (or equally) relevant for search.
https://bugzilla.gnome.org/show_bug.cgi?id=711640
Ryan Lortie [Tue, 12 Nov 2013 05:19:50 +0000 (00:19 -0500)]
bump version
Ryan Lortie [Tue, 12 Nov 2013 04:09:11 +0000 (23:09 -0500)]
GLib 2.39.1
Ryan Lortie [Tue, 12 Nov 2013 04:11:55 +0000 (23:11 -0500)]
Revert "gdbus-connection-loss: Fix leak in test"
This reverts commit
670379b26f4a86c7b51b928eb0332b9a654e4c4c.
This is causing distcheck to fail and will have to be revisited later.
Ryan Lortie [Tue, 12 Nov 2013 04:17:32 +0000 (23:17 -0500)]
gsettings test: fix srcdir != builddir
Just copy the schemas to the builddir and compile them in place instead
of trying to mess around with creating the compiled file in a different
dir. This solves issues in the summary/description testcase when
GSettings expects the usual situation of having the .xml files present
in the same directory.
Stef Walter [Sat, 9 Nov 2013 07:51:41 +0000 (08:51 +0100)]
gsubprocess: Fix a number of leaks and a segfault
Fixed a number of leaks in gsubprocess, as well as a segfault
that was hidden by never calling g_subprocess_communicate_state_free().
https://bugzilla.gnome.org/show_bug.cgi?id=711803
Stef Walter [Sat, 9 Nov 2013 19:53:32 +0000 (20:53 +0100)]
threadpool-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:26:31 +0000 (20:26 +0100)]
mainloop-test: Fix uninitialized memory access in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Thu, 7 Nov 2013 21:56:11 +0000 (22:56 +0100)]
Revert "giomodule: Fix leaks in module loading"
This reverts commit
dc72039c162e1ca6400f28f92dd8e090ce99bd3f.
This depends on a patch that allows GTypeModule to be finalized.
Lets put this back in bugzilla until that gets in.
Stef Walter [Mon, 11 Nov 2013 14:27:24 +0000 (15:27 +0100)]
Revert "defaultiface: Fix leak in test"
This reverts commit
fd7b2faa64febab407ffde2506c995544583a9d5.
This required another patch to be commited first. Will put this
back in bugzilla.
Chun-wei Fan [Wed, 6 Nov 2013 08:35:21 +0000 (16:35 +0800)]
glib/tests/: Avoid GCCisms and fix tests for MSVC
Skip the tests on inf/nan strings for the gvariant and strfuncs tests, and
skip the hex strings for the strtod tests in strfuncs as they are C99
features that are not yet supported by Visual C++ (even 2013). Use a
definition for NAN and INFINITY (that is also used in PyGObject) as
atof("NaN") and atof("Infinity") simply returns 0.0 (which is not a NAN)
in Visual C++ to fix the tests running there.
Also adapt to the format of g_ascii_formatd() when dealing with 1e99.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Wed, 6 Nov 2013 08:58:00 +0000 (16:58 +0800)]
Tests: Fix up the expected messages
There was an expected messages that was not in the form that GLib on
Windows actually produces, which causes some test to fail. Fix this up.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Wed, 6 Nov 2013 08:45:12 +0000 (16:45 +0800)]
tests: Fix for non-GCC
Remove uses of using empty arrays in initialization and structs, and build
tests that rely on GCCisms on GCC only.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Wed, 6 Nov 2013 07:14:06 +0000 (15:14 +0800)]
glib/tests/spawn-singlethread: Improve test for Windows
Use a Windows-style .bat script for the test_spawn_script() test, at least
when the code is built with Visual C++ (due to differences in how scripts
are written for shells and Windows cmd.exe), and account for Windows-style
line endings for that test too.
Let the MinGW builds (which are normally done in an MSYS BASH-style shell) continue to use the
*NIX-style script for that test.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Tue, 5 Nov 2013 09:33:09 +0000 (17:33 +0800)]
gio/tests/gsubprocess.c: Fix on Windows
We need to check for the correct line endings on Windows (\r\n) for the
echo tests and currently need to skip the test_echo_eof test there, as
it depends on the cat utility that is not normally found on Windows, and
using an external installation of cat via MSYS or Cygwin would render the
test program to hang as cat waits for user input.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Tue, 5 Nov 2013 08:08:45 +0000 (16:08 +0800)]
tests/: Include unistd.h on *NIX only
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Tue, 5 Nov 2013 07:51:08 +0000 (15:51 +0800)]
glib/gspawn-win32-helper.c: Clean up a bit
Remove the parts about storing up the fd's in a data structure, but call
close() on the fd's. However, retain the _get_osfhandle() check on the
fd's when we iterate through the fd's as on fd values in the iteration may
well be invalid fd's. As a result, the invalid parameter handler is still
needed for newer Microsoft CRTs (8.0/2005+) for _get_osfhandle() to
make sure that the program does not abort when we check the validity of
fd's to be closed in the loop[1].
[1]: http://msdn.microsoft.com/en-us/library/ks2530z6%28v=vs.80%29.aspx
Chun-wei Fan [Tue, 5 Nov 2013 04:58:40 +0000 (12:58 +0800)]
tests/: Avoid closing invalid fd's
...and only include unistd.h when we are on *NIX.
Newer Visual C++ runtimes (8.0/2005 and later) will cause the program to
crash with an internal abort() call when they detect instances of close()
being called on an invalid fd, such as when the fd is -1, and these should
be purged anyways.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Chun-wei Fan [Tue, 5 Nov 2013 04:45:38 +0000 (12:45 +0800)]
glib/gmessages.h: Unify log messages
...Under various compilers when !G_DISABLE_CHECKS. Previously, the
messages that are logged differ depending whether GLib was built with GCC
or not. To simplify test cases, make all builds use a single output format
for g_return_if_fail(), g_return_val_if_fail(), g_return_if_reached(), and
g_return_val_if_reached(), by using the GCC-style format and replaceing
__PRETTY_FUNCTION__ with G_STRFUNC, so that it will work across various
compilers.
https://bugzilla.gnome.org/show_bug.cgi?id=711047
Dan Winship [Sat, 2 Nov 2013 13:33:26 +0000 (09:33 -0400)]
gcancellable: don't use g_cancellable_connect() in GCancellableSource
g_cancellable_connect() is documented as calling its callback only
once, but GCancellableSource should trigger every time the cancellable
is cancelled.
https://bugzilla.gnome.org/show_bug.cgi?id=710691
https://bugzilla.gnome.org/show_bug.cgi?id=711286
Shantha kumar [Mon, 11 Nov 2013 08:50:40 +0000 (14:20 +0530)]
Updated Tamil Translations
Stef Walter [Sat, 9 Nov 2013 19:28:28 +0000 (20:28 +0100)]
gdbus-connection-loss: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sat, 9 Nov 2013 19:23:15 +0000 (20:23 +0100)]
gdbus-introspection: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Thu, 7 Nov 2013 21:40:40 +0000 (22:40 +0100)]
private: Use threading primitives correctly in private test
We shouldn't be clearing statically allocated mutexes, and also
don't use deprecated heap-allocated GPrivate.
https://bugzilla.gnome.org/show_bug.cgi?id=711755
Stef Walter [Sat, 9 Nov 2013 19:52:16 +0000 (20:52 +0100)]
timeloop: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:29:56 +0000 (20:29 +0100)]
file-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 23:15:30 +0000 (00:15 +0100)]
gthreadpool: Don't pass bad data to GThreadPool sorter
This causes sorters to crash.
https://bugzilla.gnome.org/show_bug.cgi?id=711756
Stef Walter [Thu, 31 Oct 2013 10:43:14 +0000 (11:43 +0100)]
gmain: Fix use of uninitialized memory in sigaction structure
https://bugzilla.gnome.org/show_bug.cgi?id=711754
Stef Walter [Sun, 10 Nov 2013 14:58:06 +0000 (15:58 +0100)]
defaultiface: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Sun, 10 Nov 2013 14:57:12 +0000 (15:57 +0100)]
timeloop-closure: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Sun, 10 Nov 2013 14:56:59 +0000 (15:56 +0100)]
signals: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Sun, 10 Nov 2013 14:56:32 +0000 (15:56 +0100)]
paramspec-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Sun, 10 Nov 2013 14:56:17 +0000 (15:56 +0100)]
override: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Sun, 10 Nov 2013 14:55:56 +0000 (15:55 +0100)]
gvalue-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Sun, 10 Nov 2013 14:55:35 +0000 (15:55 +0100)]
accumulator: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Thu, 7 Nov 2013 21:57:27 +0000 (22:57 +0100)]
threadtests: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Thu, 7 Nov 2013 21:57:13 +0000 (22:57 +0100)]
enums: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711779
Stef Walter [Thu, 7 Nov 2013 22:00:28 +0000 (23:00 +0100)]
giomodule: Fix leaks in module loading
https://bugzilla.gnome.org/show_bug.cgi?id=711798
Stef Walter [Sun, 10 Nov 2013 13:48:36 +0000 (14:48 +0100)]
boxed: Fix double free in boxed unit tests
https://bugzilla.gnome.org/show_bug.cgi?id=711782
Stef Walter [Sat, 9 Nov 2013 19:21:44 +0000 (20:21 +0100)]
gdbus-connection: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sat, 9 Nov 2013 19:21:16 +0000 (20:21 +0100)]
gdbus-connection-slow: Fix leak in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sat, 9 Nov 2013 19:28:41 +0000 (20:28 +0100)]
gdbus-connection: Fix use after free in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sat, 9 Nov 2013 07:54:28 +0000 (08:54 +0100)]
gsubprocess: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sat, 9 Nov 2013 07:53:13 +0000 (08:53 +0100)]
gsubprocess: Fix error detection logic in tests
Various tests were depending on local_error being set by a callback
when it could never have been the case. Simplify async error detection
logic in those cases, and fix leak of GError.
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Fri, 8 Nov 2013 13:28:55 +0000 (14:28 +0100)]
g-icon: Fix memory leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Fri, 8 Nov 2013 13:28:23 +0000 (14:28 +0100)]
contexts: Fix memory leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sun, 10 Nov 2013 15:39:45 +0000 (16:39 +0100)]
data-output-stream: Fix some access after free
The memory pointed to by a GMemoryOutputStream can be realloc'd
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sun, 10 Nov 2013 15:39:28 +0000 (16:39 +0100)]
buffered-output-stream: Fix some access after free
The memory pointed to by a GMemoryOutputStream can be realloc'd
https://bugzilla.gnome.org/show_bug.cgi?id=711802
Stef Walter [Sat, 9 Nov 2013 19:19:44 +0000 (20:19 +0100)]
gtestdbus: Fix leak of GMainLoop
https://bugzilla.gnome.org/show_bug.cgi?id=711808
Stef Walter [Sun, 10 Nov 2013 09:54:47 +0000 (10:54 +0100)]
module-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711768
Stef Walter [Sun, 10 Nov 2013 13:32:17 +0000 (14:32 +0100)]
utils: Don't free memory owned by glib in test
https://bugzilla.gnome.org/show_bug.cgi?id=711775
Stef Walter [Sun, 10 Nov 2013 09:54:26 +0000 (10:54 +0100)]
iochannel-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:52:42 +0000 (20:52 +0100)]
unicode-encoding: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:51:18 +0000 (20:51 +0100)]
thread-test: Fix leaks in tests
This is a test of deprecated functionality and its age is
showing. Doesn't actually do what it says. But fix leaks anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:30:11 +0000 (20:30 +0100)]
mainloop-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:29:04 +0000 (20:29 +0100)]
datetime: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:26:57 +0000 (20:26 +0100)]
mapping-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:26:15 +0000 (20:26 +0100)]
gio-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:25:39 +0000 (20:25 +0100)]
completion-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:25:23 +0000 (20:25 +0100)]
child-test: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Sat, 9 Nov 2013 19:25:07 +0000 (20:25 +0100)]
asyncqueue-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Thu, 7 Nov 2013 21:40:59 +0000 (22:40 +0100)]
unix: Fix memory leak in unix test
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Dan Winship [Thu, 7 Nov 2013 21:38:52 +0000 (22:38 +0100)]
gerror: Don't leak memory when overwrite warning
Even though we can't always make no-leak guarantees when g_warning()
in this case we're testing this behavior in tests, and it would be
good to be able to valgrind this.
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Stef Walter [Thu, 31 Oct 2013 13:41:34 +0000 (14:41 +0100)]
private: Fix memory leak in tests
Don't use g_private_new(), it's deprecated, and leaks by definition.
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Michael Catanzaro [Sat, 9 Nov 2013 15:33:42 +0000 (09:33 -0600)]
giomodule: small typo in documentation
Matthias Clasen [Sat, 9 Nov 2013 01:57:04 +0000 (20:57 -0500)]
Small documentation improvement
Matthias Clasen [Sat, 9 Nov 2013 01:45:54 +0000 (20:45 -0500)]
Add an index for new api in glib docs
Rico Tzschichholz [Fri, 8 Nov 2013 07:15:43 +0000 (08:15 +0100)]
Revert "gio/Makefile: make sure to dist gappinfoprivate.h"
This reverts commit
c45b26d61f6539dbf4e202aded08d9614b441f81.
Michael Catanzaro [Fri, 8 Nov 2013 00:39:59 +0000 (18:39 -0600)]
gstrfuncs: fix small typo in documentation
Ryan Lortie [Thu, 7 Nov 2013 18:56:56 +0000 (13:56 -0500)]
GAppInfoMonitor: don't try to use NULL hash table
Don't g_hash_table_iter_init() on a NULL table if we see the app info
monitoring but no monitors have been created yet.
https://bugzilla.gnome.org/show_bug.cgi?id=711632
Ryan Lortie [Tue, 29 Oct 2013 19:02:44 +0000 (12:02 -0700)]
GApplication: fix bogus testcase
We had a GApplication testcase that handled both open and commandline.
This only way that this worked was by implementing the commandline
handler without actually setting the HANDLES_COMMAND_LINE flag.
This behaviour is now invalid, so just rip out the offending part of the
test.
https://bugzilla.gnome.org/show_bug.cgi?id=711099
Ryan Lortie [Thu, 10 Oct 2013 13:28:30 +0000 (09:28 -0400)]
appinfo: Add some testcases for searching
https://bugzilla.gnome.org/show_bug.cgi?id=711557
Ryan Lortie [Wed, 6 Nov 2013 03:51:48 +0000 (22:51 -0500)]
Add g_desktop_app_info_search()
The first time this function is called we load all of the keyfiles in
the directory, ignoring the 'Hidden' ones and build an index out of the
interesting fields using g_str_tokenize_and_fold().
We do prefix matching on the tokens to find relevent desktop files.
Right now this is implemented as a hashtable that we iterate over,
checking prefixes on each token. This could possibly be sped up by
creating an array, but it's already pretty fast...
https://bugzilla.gnome.org/show_bug.cgi?id=711557
Ryan Lortie [Thu, 7 Nov 2013 17:11:55 +0000 (12:11 -0500)]
gio/Makefile: make sure to dist gappinfoprivate.h
Rico Tzschichholz [Thu, 7 Nov 2013 16:37:13 +0000 (17:37 +0100)]
gio: Add gappinfoprivate.h to Makefile.am
In addition to
e55d33edc1336ddc6d5cdfa0e3003a69a5812d26
Dimitris Spingos [Thu, 7 Nov 2013 15:19:09 +0000 (17:19 +0200)]
Updated Greek translation
Patrick Welche [Thu, 7 Nov 2013 10:58:46 +0000 (10:58 +0000)]
configure: test(1) uses = to test for string equality
https://bugzilla.gnome.org/show_bug.cgi?id=711600
Chun-wei Fan [Tue, 29 Oct 2013 06:55:27 +0000 (14:55 +0800)]
codegen.py: Rearrange GLib Version Check
...so that the generated code will build on all platforms, as compilers
like Visual C++ does not like #ifdef checks during a definition/use of
a macro.
https://bugzilla.gnome.org/show_bug.cgi?id=711049
Ryan Lortie [Wed, 25 Sep 2013 13:19:43 +0000 (09:19 -0400)]
Add GAppInfoMonitor
This is a simple object that emits a "change" signal when the installed
applications may have changed in some way.
https://bugzilla.gnome.org/show_bug.cgi?id=711556
Ryan Lortie [Sat, 27 Jul 2013 20:04:56 +0000 (16:04 -0400)]
gdesktopappinfo: keep a list of files in the dirs
In each DesktopFileDir, store a list of desktop files for that
directory. This speeds up opening desktop files by name because we can
skip statting in directories that we know don't have the file and also
speeds up _get_all() because we can avoid enumeration.
This also improves our support for dealing with names like
'kde4/kate.desktop' (equivalent to kde4-kate.desktop) since we find out
about all of these files are the start and don't need to guess about
which '-' to change to a '/'. It also means that we can easily deal
with more than one level of such prefixes.
We use a file monitor to watch for changes, invalidating our lists when
we notice them.
https://bugzilla.gnome.org/show_bug.cgi?id=711520
Stef Walter [Thu, 31 Oct 2013 22:07:10 +0000 (23:07 +0100)]
signals: Fix memory leaks in signals unit tests
https://bugzilla.gnome.org/show_bug.cgi?id=627423