platform/upstream/glib.git
10 years agogobject.py: Simplify or_join_array
Jasper St. Pierre [Thu, 19 Sep 2013 19:41:09 +0000 (15:41 -0400)]
gobject.py: Simplify or_join_array

10 years agogobject.py: Simplify and reduce code a bit
Jasper St. Pierre [Thu, 19 Sep 2013 19:24:16 +0000 (15:24 -0400)]
gobject.py: Simplify and reduce code a bit

10 years agogobject.py: Remove old hack for stripping IA__ symbols
Jasper St. Pierre [Thu, 19 Sep 2013 18:59:44 +0000 (14:59 -0400)]
gobject.py: Remove old hack for stripping IA__ symbols

We don't use IA__ symbols anymore; they've been replaced with -Bsymbolic

10 years agogobject.py: Fix indentation
Jasper St. Pierre [Thu, 19 Sep 2013 15:55:47 +0000 (11:55 -0400)]
gobject.py: Fix indentation

10 years agocodegen: direction defaults to "in"
Jasper St. Pierre [Tue, 31 Dec 2013 20:13:06 +0000 (15:13 -0500)]
codegen: direction defaults to "in"

10 years agodocs: fix a typo
Michael Catanzaro [Sun, 29 Dec 2013 20:20:13 +0000 (14:20 -0600)]
docs: fix a typo

10 years agoVisual Studio Projects: Cleanup Property Sheets
Chun-wei Fan [Fri, 27 Dec 2013 04:25:18 +0000 (12:25 +0800)]
Visual Studio Projects: Cleanup Property Sheets

Make the projects include a single property sheet as necessary, which will
in turn include the other property sheet(s) as needed, so that we can avoid
warnings where we include the same property sheets twice in a single
project.

Also make the copying of pre-configured headers into custom build rules so
that they can be removed upon the clean command from the IDE and that they
can be re-copied if their counterpart *.h.win32 are updated.

10 years agoVisual Studio Projects: Use Unix Line Endings
Chun-wei Fan [Fri, 27 Dec 2013 02:50:35 +0000 (10:50 +0800)]
Visual Studio Projects: Use Unix Line Endings

...where possible, to make application of patches easier in the future.
The README.txt's and the .sln files are still in Windows/DOS line endings
as they need to be so.

10 years agoVisual Studio Property Sheets: Use Unix Line Endings
Chun-wei Fan [Fri, 27 Dec 2013 02:32:01 +0000 (10:32 +0800)]
Visual Studio Property Sheets: Use Unix Line Endings

This makes it easier to apply patches in the future.

10 years agokqueue: fix a potential deadlock
Antoine Jacoutot [Thu, 26 Dec 2013 10:03:45 +0000 (11:03 +0100)]
kqueue: fix a potential deadlock

In case an object is already monitored, we lock then return without
unlocking it which can then result in a self deadlock. So properly
unlock before returning.

https://bugzilla.gnome.org/show_bug.cgi?id=721074

10 years agogio-2.0.pc: Add -lselinux when linking statically if so configured
Mikhail Gusarov [Thu, 26 Dec 2013 16:22:05 +0000 (11:22 -0500)]
gio-2.0.pc: Add -lselinux when linking statically if so configured

https://bugzilla.gnome.org/show_bug.cgi?id=721087

10 years agogsubprocesslauncher: Use "env" instead of "environ"
Morten Welinder [Thu, 26 Dec 2013 12:37:17 +0000 (07:37 -0500)]
gsubprocesslauncher: Use "env" instead of "environ"

The latter may come from system headers.

https://bugzilla.gnome.org/show_bug.cgi?id=721059

10 years agogio: Fix return of value from void function
Matthias Scheler [Wed, 25 Dec 2013 18:57:56 +0000 (13:57 -0500)]
gio: Fix return of value from void function

https://bugzilla.gnome.org/show_bug.cgi?id=721034

10 years agoRevert "gsettings m4: check for .xml in src/builddir"
Colin Walters [Mon, 18 Nov 2013 19:28:15 +0000 (14:28 -0500)]
Revert "gsettings m4: check for .xml in src/builddir"

This reverts commit b3593693d918f0ae97094f6712d817180b8eea6a.

See: https://bugzilla.gnome.org/show_bug.cgi?id=712171#c3
See: https://bugzilla.gnome.org/show_bug.cgi?id=712171#c4

Tested using both srcdir == builddir and srcdir != builddir in hotssh.

Conflicts:
m4macros/gsettings.m4

https://bugzilla.gnome.org/show_bug.cgi?id=712630

10 years agogdbus tool: print GVariant errors in context
Ryan Lortie [Fri, 22 Nov 2013 18:06:54 +0000 (13:06 -0500)]
gdbus tool: print GVariant errors in context

Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.

There is a slightly dubious interaction with the "parse me harder"
functionality here.  We're probably going to have to deal with that
separately.

https://bugzilla.gnome.org/show_bug.cgi?id=715028

10 years agogapplication(1): print GVariant errors in context
Ryan Lortie [Fri, 22 Nov 2013 17:57:21 +0000 (12:57 -0500)]
gapplication(1): print GVariant errors in context

Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.

https://bugzilla.gnome.org/show_bug.cgi?id=715028

10 years agogsettings tool: print GVariant errors in context
Ryan Lortie [Fri, 22 Nov 2013 17:55:10 +0000 (12:55 -0500)]
gsettings tool: print GVariant errors in context

Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.

https://bugzilla.gnome.org/show_bug.cgi?id=715028

10 years agoGVariant: add way to print context of parse errors
Ryan Lortie [Sun, 22 Dec 2013 16:41:19 +0000 (11:41 -0500)]
GVariant: add way to print context of parse errors

This was a feature intended from the very beginning that somehow never
got written.  It's a way to replace these sort of error messages out of
the GVariant parser:

  1-2,10-15:unable to find a common type

with something in the style of the Vala compiler:

  unable to find a common type:
    [1, 2, 3, 'str']
     ^        ^^^^^

https://bugzilla.gnome.org/show_bug.cgi?id=715028

10 years agoUse POSIX-specified <poll.h> over <sys/poll.h>
Ryan Lortie [Sun, 22 Dec 2013 16:33:07 +0000 (11:33 -0500)]
Use POSIX-specified <poll.h> over <sys/poll.h>

POSIX specifies that <poll.h> is the correct header to include for
poll(), so let's do that instead.

https://bugzilla.gnome.org/show_bug.cgi?id=141251

10 years agoGVariant: Add g_variant_parse_error_quark()
Murray Cumming [Tue, 17 Sep 2013 09:10:28 +0000 (11:10 +0200)]
GVariant: Add g_variant_parse_error_quark()

Most GErrors, such as GSomethingError, have a function to get
their quark that looks like g_something_error_quark(),
so bindings (such as gtkmm) would expect GVariantParseError
to have g_variant_parse_error_quark(). Instead this had
g_variant_parser_get_error_quark().
This deprecates the old function and adds the correct one,
making life easier for gtkmm (and maybe others).

https://bugzilla.gnome.org/show_bug.cgi?id=708212

10 years agoMore settings backend tests
Matthias Clasen [Sun, 22 Dec 2013 05:44:56 +0000 (00:44 -0500)]
More settings backend tests

This adds some more test coverage around writability changes
in the keyfile and delayed settings backends.

10 years agoGKeyfileSettingsBackend: Use a directory monitor
Matthias Clasen [Sun, 22 Dec 2013 05:43:44 +0000 (00:43 -0500)]
GKeyfileSettingsBackend: Use a directory monitor

GKeyfileSettingsBackend was using a file monitor to monitor
the parent directory of its keyfile.

10 years agoMore test coverage for settings backends
Matthias Clasen [Sat, 21 Dec 2013 21:49:52 +0000 (16:49 -0500)]
More test coverage for settings backends

10 years agoSimplify coverage rules
Matthias Clasen [Sat, 21 Dec 2013 21:16:16 +0000 (16:16 -0500)]
Simplify coverage rules

This works just fine, no need for the manual removal of the
info file.

10 years agoFix a typo
Matthias Clasen [Sat, 21 Dec 2013 20:44:51 +0000 (15:44 -0500)]
Fix a typo

10 years agoFix a !srcdir problem with installed tests
Matthias Clasen [Sat, 21 Dec 2013 18:20:44 +0000 (13:20 -0500)]
Fix a !srcdir problem with installed tests

When installing scripts which are not generated in a
srcdir != builddir build, $< will have ../.. goo in it.
So we need to strip the directory parts before using
the filename to construct a new path.

10 years agoImprove gsettings test coverage
Matthias Clasen [Sat, 21 Dec 2013 17:51:22 +0000 (12:51 -0500)]
Improve gsettings test coverage

Deal with corner cases around delay.

10 years agocontenttype tests: better assertions
Matthias Clasen [Sat, 21 Dec 2013 16:56:24 +0000 (11:56 -0500)]
contenttype tests: better assertions

I recently had to track down why these tests failed. Turned
out that some rogue package on my system had installed mime
types that declared all files with 3 letter names to be
'chemical/x-turbomole-vibrational'.
This change will make it more obvious what is going on by
mentioning the mime types in the assertion message.

10 years agoSlightly improve coverate for notification tests
Matthias Clasen [Sat, 21 Dec 2013 15:48:40 +0000 (10:48 -0500)]
Slightly improve coverate for notification tests

10 years agoImprove test coverage for GPropertyAction
Matthias Clasen [Sat, 21 Dec 2013 06:10:59 +0000 (01:10 -0500)]
Improve test coverage for GPropertyAction

10 years agoTest some gsettings corner case
Matthias Clasen [Sat, 21 Dec 2013 06:00:10 +0000 (01:00 -0500)]
Test some gsettings corner case

Setting a strv to NULL was not tested before.

10 years agoSome tweaks to coverage support
Matthias Clasen [Sat, 21 Dec 2013 05:04:14 +0000 (00:04 -0500)]
Some tweaks to coverage support

Rename the configure option to --enable-coverage, and make
it quiet by default.

10 years agoUpdated Galician translations
Fran Diéguez [Thu, 19 Dec 2013 00:17:25 +0000 (01:17 +0100)]
Updated Galician translations

10 years agoMake g_test_run() return 77 if all tests are skipped
Dan Winship [Wed, 18 Dec 2013 14:59:54 +0000 (09:59 -0500)]
Make g_test_run() return 77 if all tests are skipped

Change g_test_run() to return 1 on failure (rather than the number of
failed tests), and 77 if all tests are skipped (since automake and
some other test harnesses recognize that status code).

Previously g_test_run() returned the number of failed tests, but this
behavior was not documented, and at any rate, prior to 2.39,
g_test_run() would normally not return at all if an error occurred.

https://bugzilla.gnome.org/show_bug.cgi?id=720263

10 years agogtestutils: rename test_skip_count to test_startup_skip_count
Dan Winship [Wed, 18 Dec 2013 14:29:29 +0000 (09:29 -0500)]
gtestutils: rename test_skip_count to test_startup_skip_count

https://bugzilla.gnome.org/show_bug.cgi?id=720263

10 years agogtestutils: skipping a test should count as success, not failure
Dan Winship [Wed, 11 Dec 2013 15:32:11 +0000 (16:32 +0100)]
gtestutils: skipping a test should count as success, not failure

In particular, the test program as a whole should exit with status 0
if you skipped some tests but did not fail any.

https://bugzilla.gnome.org/show_bug.cgi?id=720263

10 years agogdbus-codegen: Fix crasher in goa-using apps
Bastien Nocera [Mon, 16 Dec 2013 16:21:41 +0000 (17:21 +0100)]
gdbus-codegen: Fix crasher in goa-using apps

When replacing a version of goa-daemon (from gnome-online-accounts)
by a newer version with some added interfaces, evolution-data-server
and the gvfs-goa volume monitor might crash as there's no interface
definition for this new interface.

Work-around this by returning earlier from the _notify() implementation,
rather than accessing invalid memory.

https://bugzilla.gnome.org/show_bug.cgi?id=720539

10 years agoMake gdb pretty-printers compatible with Python3
Tim Lunn [Tue, 17 Dec 2013 20:14:38 +0000 (07:14 +1100)]
Make gdb pretty-printers compatible with Python3

On some systems gdb is linked against python3 where "long" no longer
exists. In this case should be using int.

https://bugzilla.gnome.org/show_bug.cgi?id=720635

10 years agogobject.py: Don't install frame filters when GDB does not support them
Damien Lespiau [Tue, 23 Mar 2010 15:18:12 +0000 (15:18 +0000)]
gobject.py: Don't install frame filters when GDB does not support them

Stock GDB (both versions 7.0 and 7.1) does not come with the new
backtrace code and python API. To prevent an ugly python backtrace when
auto-loading gobject.py, let's catch the exception and not register the
FrameWrapper and the FrameFilter.

https://bugzilla.gnome.org/show_bug.cgi?id=613732

10 years agoBump version
Matthias Clasen [Tue, 17 Dec 2013 05:45:41 +0000 (00:45 -0500)]
Bump version

10 years ago2.39.2 2.39.2
Matthias Clasen [Tue, 17 Dec 2013 05:30:08 +0000 (00:30 -0500)]
2.39.2

10 years agovalgrind.h: add "r0" to the clobber list on PPC
Ryan Lortie [Wed, 20 Nov 2013 21:57:26 +0000 (16:57 -0500)]
valgrind.h: add "r0" to the clobber list on PPC

Looks like the magic sequences trash this register, so make sure GCC
knows that.

https://bugzilla.gnome.org/show_bug.cgi?id=710983

10 years agotests: change test timezone to America/Toronto
Ryan Lortie [Wed, 11 Dec 2013 00:21:33 +0000 (19:21 -0500)]
tests: change test timezone to America/Toronto

America/Toronto is the canonical name for Canada/Eastern in the zoneinfo
database.

10 years agoExpand the truncate tests
Matthias Clasen [Mon, 16 Dec 2013 02:06:35 +0000 (21:06 -0500)]
Expand the truncate tests

Check that the data is expanded with zeros.

10 years agoUpdate tests for new truncate behavior
Matthias Clasen [Mon, 16 Dec 2013 01:06:25 +0000 (20:06 -0500)]
Update tests for new truncate behavior

10 years agogdbus-export: Fix leaks in tests
Stef Walter [Sat, 9 Nov 2013 19:23:01 +0000 (20:23 +0100)]
gdbus-export: Fix leaks in tests

https://bugzilla.gnome.org/show_bug.cgi?id=711802

10 years agogdbus-auth: Fix leaks in tests
Stef Walter [Sat, 9 Nov 2013 19:20:50 +0000 (20:20 +0100)]
gdbus-auth: Fix leaks in tests

https://bugzilla.gnome.org/show_bug.cgi?id=711802

10 years agogsubprocesslauncher: Annotate g_subprocess_launcher_spawnv()
Colin Walters [Mon, 16 Dec 2013 01:44:20 +0000 (20:44 -0500)]
gsubprocesslauncher: Annotate g_subprocess_launcher_spawnv()

Needs to be an array.

10 years agosources: Fix leaks in tests
Stef Walter [Sat, 9 Nov 2013 19:27:57 +0000 (20:27 +0100)]
sources: Fix leaks in tests

https://bugzilla.gnome.org/show_bug.cgi?id=711751

10 years agoFix up gsettings test
Matthias Clasen [Sun, 15 Dec 2013 23:50:49 +0000 (18:50 -0500)]
Fix up gsettings test

10 years agogio: Update GMemoryOutputStream length after truncate
Ross Lagerwall [Sun, 8 Dec 2013 20:41:15 +0000 (22:41 +0200)]
gio: Update GMemoryOutputStream length after truncate

For GMemoryOutputStream, update valid_len when truncating so that
g_memory_output_stream_get_data_size () returns the correct result.

https://bugzilla.gnome.org/show_bug.cgi?id=720080

10 years agoSimplify subprocesses in tests
Matthias Clasen [Sun, 15 Dec 2013 16:20:19 +0000 (11:20 -0500)]
Simplify subprocesses in tests

Use the new way of running tests in a subprocess without
registering extra 'subprocess' test cases where appropriate.

10 years agogtestutils: Allow clean simple use of g_test_trap_subprocess()
Stef Walter [Wed, 11 Dec 2013 08:31:35 +0000 (09:31 +0100)]
gtestutils: Allow clean simple use of g_test_trap_subprocess()

Allow g_test_trap_subprocess() to be used in a simple cases by
rerunning the same test case itself. This is accomplished by
passing %NULL as the test case name.

https://bugzilla.gnome.org/show_bug.cgi?id=720236

10 years agoAdd a testcase for g_ptr_array_insert
Matthias Clasen [Sun, 15 Dec 2013 04:54:18 +0000 (23:54 -0500)]
Add a testcase for g_ptr_array_insert

10 years agoAdd g_ptr_array_insert to the docs
Matthias Clasen [Sun, 15 Dec 2013 04:45:36 +0000 (23:45 -0500)]
Add g_ptr_array_insert to the docs

10 years agoGPtrArray: Added g_ptr_array_insert()
Tristan Van Berkom [Wed, 27 Nov 2013 05:34:20 +0000 (14:34 +0900)]
GPtrArray: Added g_ptr_array_insert()

Speaks for itself, I've found myself on numerous occasions
writing my own version of this, or using a GArray of pointers.

https://bugzilla.gnome.org/show_bug.cgi?id=719395

10 years agoglib/gwin32.c: Silence a Deprecation Warning
Chun-wei Fan [Fri, 13 Dec 2013 08:21:00 +0000 (16:21 +0800)]
glib/gwin32.c: Silence a Deprecation Warning

Since we are already building a deprecated function for compatibility
reasons, we don't really need to see a warning when it uses another
deprecated GLib function.

10 years agogio/gdbusaddress: Clean up Win32 code a bit
Chun-wei Fan [Thu, 12 Dec 2013 10:00:52 +0000 (18:00 +0800)]
gio/gdbusaddress: Clean up Win32 code a bit

Combine duplicate parts into one, as the symbol used by RunDLL under x64
is the same for either Visual C++ or MinGW-64

10 years ago[l10n] Updated Italian translation.
Milo Casagrande [Thu, 12 Dec 2013 08:50:46 +0000 (09:50 +0100)]
[l10n] Updated Italian translation.

10 years agoRemove an unused define
Matthias Clasen [Wed, 11 Dec 2013 15:35:45 +0000 (10:35 -0500)]
Remove an unused define

https://bugzilla.gnome.org/show_bug.cgi?id=720210

10 years agogdesktopappinfo: Add missing annotations
Martin Pitt [Wed, 11 Dec 2013 12:17:10 +0000 (13:17 +0100)]
gdesktopappinfo: Add missing annotations

Add missing (allow-none) annotations to
g_desktop_app_info_launch_uris_as_manager(). Tested with

  python -c "from gi.repository import GLib, Gio; Gio.DesktopAppInfo.new('gcalctool.desktop').launch_uris_as_manager([], None, GLib.SpawnFlags.SEARCH_PATH|GLib.SpawnFlags.STDOUT_TO_DEV_NULL, None, None, None, None)"

which is necessary to do a launch_uris() without leaking stdout.

https://launchpad.net/bugs/1259721

10 years agoUpdate Visual C++ "Installation" Phase
Chun-wei Fan [Wed, 11 Dec 2013 12:09:59 +0000 (20:09 +0800)]
Update Visual C++ "Installation" Phase

Install the Python scripts that is used by gdbus-codegen in
share\glib-2.0\codegen, to be consistent with the other platforms.

Please see https://bugzilla.gnome.org/show_bug.cgi?id=702862 for details
on this.

10 years agogdbus-codegen: look for deps in correct path under win32
Manuel Bachmann [Wed, 11 Dec 2013 09:59:28 +0000 (10:59 +0100)]
gdbus-codegen: look for deps in correct path under win32

codegen.py and friends get installed in "share/glib-2.0",
so look for them there.

https://bugzilla.gnome.org/show_bug.cgi?id=702862

10 years agogdbus-connection: Work around race in connection tests
Stef Walter [Wed, 4 Dec 2013 11:48:53 +0000 (12:48 +0100)]
gdbus-connection: Work around race in connection tests

GDBusConnection cleanup is inherently racy due to its use of worker
threads. Put tests that expect a NULL G_BUS_TYPE_SESSION singleton
as the first tests to work around cleanup races.

https://bugzilla.gnome.org/show_bug.cgi?id=719837

10 years agog_get_current_dir(): consult PWD first
Ryan Lortie [Sun, 8 Dec 2013 23:18:16 +0000 (18:18 -0500)]
g_get_current_dir(): consult PWD first

Check if the current directory is the same as $PWD.  This matches the
behaviour of the get_current_dir_name() function in glibc.

https://bugzilla.gnome.org/show_bug.cgi?id=705902

10 years agog_settings_get: only check for non-copying format string
Lars Uebernickel [Sun, 8 Dec 2013 16:30:33 +0000 (17:30 +0100)]
g_settings_get: only check for non-copying format string

396d40af introduced a redundant call to g_variant_check_format_string().
Checking whether the format string copies all values is enough.

https://bugzilla.gnome.org/show_bug.cgi?id=719979

10 years agoclang fixes: tweak last commit
Ryan Lortie [Sun, 8 Dec 2013 21:38:47 +0000 (16:38 -0500)]
clang fixes: tweak last commit

We need to actually ignore "-Wformat-nonliteral" to make clang happy

10 years ago[PATCH] Fix trivial non literal format uses
Ryan Lortie [Sun, 8 Dec 2013 19:22:51 +0000 (14:22 -0500)]
[PATCH] Fix trivial non literal format uses

Based on a patch from Henrique Dante de Almeida <hdante@gmail.com>.

https://bugzilla.gnome.org/show_bug.cgi?id=691608

10 years agoUpdate Chinese simplified translation
keyring [Sat, 7 Dec 2013 07:05:26 +0000 (15:05 +0800)]
Update Chinese simplified translation

10 years agog_settings_get: check validity of format string
Lars Uebernickel [Fri, 6 Dec 2013 15:01:48 +0000 (16:01 +0100)]
g_settings_get: check validity of format string

Allow only format strings that copy all values (i.e, don't contain '&'),
as the returned pointers might become invalid in some rare cases.

Since this is technically an API break, this patch only prints a
critical when a faulty format string is detected, but still fetches the
values.

https://bugzilla.gnome.org/show_bug.cgi?id=719979

10 years agogtestdbus: Add a note about thread safety to the documentation
Philip Withnall [Tue, 3 Dec 2013 08:27:05 +0000 (08:27 +0000)]
gtestdbus: Add a note about thread safety to the documentation

https://bugzilla.gnome.org/show_bug.cgi?id=712148

10 years agoFix documentation typos in GTask and GCancellable examples
Daiki Ueno [Thu, 5 Dec 2013 09:16:36 +0000 (18:16 +0900)]
Fix documentation typos in GTask and GCancellable examples

https://bugzilla.gnome.org/show_bug.cgi?id=719884

10 years agogsignal: Signal connection ids are always > 0 if successful
Colin Walters [Tue, 3 Dec 2013 22:15:14 +0000 (17:15 -0500)]
gsignal: Signal connection ids are always > 0 if successful

Note this explicitly so that people can rely on doing:

if (mystruct->sigid > 0)
  g_signal_disconnect (mystruct->object, mystruct->sigid);

https://bugzilla.gnome.org/show_bug.cgi?id=719809

10 years agogutf8: use g_try_malloc_n
Marc-André Lureau [Tue, 26 Nov 2013 16:45:37 +0000 (17:45 +0100)]
gutf8: use g_try_malloc_n

As recommended by Christian Persch.

https://bugzilla.gnome.org/show_bug.cgi?id=711546

10 years agogmessages: make _g_log_abort() do only breakpoints again
Marc-André Lureau [Tue, 3 Dec 2013 14:35:50 +0000 (15:35 +0100)]
gmessages: make _g_log_abort() do only breakpoints again

Commit e53caad4 makes _g_log_abort() noreturn by calling abort()
unconditionally.

However, it is useful to be able to skip some log_abort() with a
debugger, to reach a point of interest. Revert back to previous
behaviour. Make g_assert_warning() noreturn by calling abort().

https://bugzilla.gnome.org/show_bug.cgi?id=711800

10 years agoRemove g_trap_instance_signals as well
Matthias Clasen [Tue, 3 Dec 2013 03:26:48 +0000 (22:26 -0500)]
Remove g_trap_instance_signals as well

This is another crude conditional breakpoint mechanism and can
be done better with actual conditional breakpoints or with systemtap
tracepoints.

https://bugzilla.gnome.org/show_bug.cgi?id=719687

10 years agoDrop g_trap_object_ref debugging mechanism
Matthias Clasen [Tue, 3 Dec 2013 02:48:03 +0000 (21:48 -0500)]
Drop g_trap_object_ref debugging mechanism

This is really just a very crude and limited conditional breakpoint.
Update the documentation to explain conditional breakpoints in
gdb instead. Also, remove the link to refdbg, which appears dead.

https://bugzilla.gnome.org/show_bug.cgi?id=719687

10 years agoDocument clearly async functions not copying its args
Xavier Claessens [Mon, 2 Dec 2013 19:37:23 +0000 (14:37 -0500)]
Document clearly async functions not copying its args

Usually async methods copy/ref its arguments so caller can
forget about them. g_file_replace_contents_async() and
g_output_stream_write_async() are exceptions.

https://bugzilla.gnome.org/show_bug.cgi?id=690525

10 years agoGFile: add GBytes version of _replace_contents_async()
Xavier Claessens [Mon, 2 Dec 2013 19:40:35 +0000 (14:40 -0500)]
GFile: add GBytes version of _replace_contents_async()

https://bugzilla.gnome.org/show_bug.cgi?id=690525

10 years agogsubprocess: Annotate g_subprocess_newv()
Colin Walters [Sun, 1 Dec 2013 23:52:37 +0000 (18:52 -0500)]
gsubprocess: Annotate g_subprocess_newv()

So that it can actually be invoked by bindings.

10 years agobuild/win32/vs9/gio.vcprojin: Use UNIX Line endings
Chun-wei Fan [Mon, 2 Dec 2013 01:51:18 +0000 (09:51 +0800)]
build/win32/vs9/gio.vcprojin: Use UNIX Line endings

Be more consistent with the other project file templates, which will
simplify future application of patches.

10 years agoInstall all test data
Matthias Clasen [Sun, 1 Dec 2013 16:45:41 +0000 (11:45 -0500)]
Install all test data

The desktop-files directory contains a mimeapps.cache file
that was not installed as data for installed tests, causing
the file measure test to fail only in when installed.

10 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 1 Dec 2013 16:30:19 +0000 (18:30 +0200)]
Updated Lithuanian translation

10 years agoImprove file measure testcase
Matthias Clasen [Sun, 1 Dec 2013 03:51:03 +0000 (22:51 -0500)]
Improve file measure testcase

Make the testcase compare the byte size to what is reported
by du. Also add a test for the async api, and mak eit test
the progress reporting callback.

10 years agogtestdbus: Minor documentation fixes
Philip Withnall [Tue, 12 Nov 2013 13:14:19 +0000 (13:14 +0000)]
gtestdbus: Minor documentation fixes

https://bugzilla.gnome.org/show_bug.cgi?id=712148

10 years agogtestdbus: Fix non-const use of const variables
Philip Withnall [Tue, 12 Nov 2013 13:10:33 +0000 (13:10 +0000)]
gtestdbus: Fix non-const use of const variables

The argv array should be declared as const.

https://bugzilla.gnome.org/show_bug.cgi?id=712148

10 years agogtestdbus: Fix variable shadowing
Philip Withnall [Tue, 12 Nov 2013 13:09:56 +0000 (13:09 +0000)]
gtestdbus: Fix variable shadowing

Shut up, GCC.

https://bugzilla.gnome.org/show_bug.cgi?id=712148

10 years agoAdd a test for g_file_measure_disk_usage
Matthias Clasen [Fri, 29 Nov 2013 05:11:47 +0000 (00:11 -0500)]
Add a test for g_file_measure_disk_usage

10 years agotests/gsubprocess: Only compare basename of /tmp
Colin Walters [Fri, 29 Nov 2013 04:12:26 +0000 (04:12 +0000)]
tests/gsubprocess: Only compare basename of /tmp

Otherwise, we break in Continuous where /tmp == /sysroot/tmp,
and something in the execve() or the kernel will do realpath()
for us.

10 years agoImprove GType test coverage
Matthias Clasen [Fri, 29 Nov 2013 02:58:48 +0000 (21:58 -0500)]
Improve GType test coverage

Add a test for g_type_class_get_instance_private_offset

10 years agoAdd a test for g_atexit
Matthias Clasen [Fri, 29 Nov 2013 02:58:25 +0000 (21:58 -0500)]
Add a test for g_atexit

10 years agoImprove GApplication test coverage
Matthias Clasen [Fri, 29 Nov 2013 02:57:47 +0000 (21:57 -0500)]
Improve GApplication test coverage

Exercise more of the GActionMap implementation.

10 years agoImprove GNotification test coverage
Matthias Clasen [Fri, 29 Nov 2013 02:56:48 +0000 (21:56 -0500)]
Improve GNotification test coverage

10 years agoImprove GSimpleActionGroup test coverage
Matthias Clasen [Fri, 29 Nov 2013 02:53:53 +0000 (21:53 -0500)]
Improve GSimpleActionGroup test coverage

Add a case that overwrites an existing action.

10 years agoGenerate overview images for coverage
Matthias Clasen [Thu, 28 Nov 2013 19:50:59 +0000 (14:50 -0500)]
Generate overview images for coverage

lcov has the options to generate overview images for each source
file with the --frames option. Lets try this.

10 years agoImprove GSettings test coverage
Matthias Clasen [Thu, 28 Nov 2013 19:33:03 +0000 (14:33 -0500)]
Improve GSettings test coverage

This covers some more GSettingsSchemaKey api.

10 years agoImprove search utils test coverage
Matthias Clasen [Thu, 28 Nov 2013 18:54:50 +0000 (13:54 -0500)]
Improve search utils test coverage

This adds test cases for the Turkish i.

10 years agoImprove GNotification test coverage
Matthias Clasen [Thu, 28 Nov 2013 18:54:17 +0000 (13:54 -0500)]
Improve GNotification test coverage

10 years agoImprove GKeyFile test coverage
Matthias Clasen [Thu, 28 Nov 2013 18:00:03 +0000 (13:00 -0500)]
Improve GKeyFile test coverage

10 years agoImprove test coverage for GHashTable
Matthias Clasen [Thu, 28 Nov 2013 17:59:32 +0000 (12:59 -0500)]
Improve test coverage for GHashTable