platform/upstream/glib.git
11 years agoUpdated Danish translation
Ask H. Larsen [Tue, 17 Sep 2013 16:28:19 +0000 (18:28 +0200)]
Updated Danish translation

11 years agoGLib 2.37.93 2.37.93
Ryan Lortie [Tue, 17 Sep 2013 15:39:56 +0000 (11:39 -0400)]
GLib 2.37.93

11 years agomeasure_disk_usage: properly report results
Ryan Lortie [Tue, 17 Sep 2013 13:53:18 +0000 (09:53 -0400)]
measure_disk_usage: properly report results

In the async case, make sure we copy all of the out parameters from the
results structure, not just 'disk_usage'.

11 years agomeasure_disk_usage: skip progress on NULL callback
Ryan Lortie [Tue, 17 Sep 2013 13:40:04 +0000 (09:40 -0400)]
measure_disk_usage: skip progress on NULL callback

In the real_..._async wrapper for GFile.measure_disk_usage, skip the
wrapping of the progress callback in the case that the user gave a NULL
callback to the async function.  This is a performance improvement
because the sync version won't have to do continuous sampling of the
clock to issue a call to the wrapper which will then do nothing.

Unfortunately, I made this simplifying assumption when writing the
wrapper, but forgot to actually implement it when making the sync call.
As a result, the wrapper is still called, and invokes the NULL callback,
causing a segfault.

Make sure we pass NULL if the user's callback was NULL.

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

11 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Tue, 17 Sep 2013 11:35:13 +0000 (19:35 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

11 years agobump
Ryan Lortie [Mon, 16 Sep 2013 18:14:07 +0000 (14:14 -0400)]
bump

11 years agoGLib 2.37.92 2.37.92
Ryan Lortie [Mon, 16 Sep 2013 17:47:04 +0000 (13:47 -0400)]
GLib 2.37.92

11 years agogio-du: show the correct filename in progress
Ryan Lortie [Mon, 16 Sep 2013 17:42:02 +0000 (13:42 -0400)]
gio-du: show the correct filename in progress

We were showing argv[1] in the progress output before, which is not
always the filename.

11 years agogio-du: Improve test program on Windows
Chun-wei Fan [Fri, 13 Sep 2013 09:42:44 +0000 (17:42 +0800)]
gio-du: Improve test program on Windows

Make use of __wgetmainargs() on Windows so that we can get wide char
versions of the argv's that are passed in when this test program is being
invoked.  This is necessary as one might enter non-ASCII, such as
CJK characters filenames and/or directories to run the test program
against, so that we can process the name(s) and pass the proper
UTF-8-encoded name(s) of the files/directories that is being tested.

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

11 years agoGLocalFile: use GDir for g_file_measure_disk_usage
Ryan Lortie [Thu, 12 Sep 2013 15:44:11 +0000 (11:44 -0400)]
GLocalFile: use GDir for g_file_measure_disk_usage

It turns out that although dirent is available on mingw32 (where the
code was originally tested), it is not usable from MSVC.

Avoid portability problems by just using GDir.

Also, be careful about ensuring that we utf8-format filenames in our
error messages, and leave out the "file://" component since the strings
we're displaying are not URIs (and we don't want to make them URIs since
the extra escaping would reduce legibility).

Thanks to Chun-wei Fan <fanchunwei@src.gnome.org> for portions of this
patch and for reviews.

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

11 years agoGDir: add some glib-private APIs
Ryan Lortie [Thu, 12 Sep 2013 09:00:29 +0000 (17:00 +0800)]
GDir: add some glib-private APIs

Add a simple UNIX-only API that is used to create a GDir object from a
DIR* that is aquired using opendir() or fdopendir().

This makes it possible to use GDir with openat(), which in turn will
allow use of GDir in the existing GLocalFile implementation of
g_file_measure_disk_usage(), avoiding the current MSVC compatibility
problems there.

Also add an API similar to g_dir_open(), but without the GError handling
(since we want to create a better error message from inside of
glocalfile.c).

Thanks to Chun-wei Fan <fanchunwei@src.gnome.org> for portions of this
patch and for reviews.

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

11 years agoUpdated German translation
Benjamin Steinwender [Mon, 16 Sep 2013 17:05:54 +0000 (19:05 +0200)]
Updated German translation

11 years agoUpdated Hungarian translation
Gabor Kelemen [Mon, 16 Sep 2013 11:07:12 +0000 (13:07 +0200)]
Updated Hungarian translation

11 years agoUpdated Korean translation
Changwoo Ryu [Sat, 14 Sep 2013 13:46:15 +0000 (22:46 +0900)]
Updated Korean translation

11 years agoUpdated Indonesian translation
Andika Triwidada [Sat, 14 Sep 2013 08:42:05 +0000 (15:42 +0700)]
Updated Indonesian translation

11 years ago[l10n] Update Catalan translation
Gil Forcada [Fri, 13 Sep 2013 22:06:21 +0000 (00:06 +0200)]
[l10n] Update Catalan translation

11 years agogmodule: Two minor g-i annotations fixes
Rico Tzschichholz [Fri, 13 Sep 2013 19:16:14 +0000 (21:16 +0200)]
gmodule: Two minor g-i annotations fixes

11 years agoAssamese Translation Updated
Nilamdyuti Goswami [Fri, 13 Sep 2013 12:55:03 +0000 (18:25 +0530)]
Assamese Translation Updated

11 years agogio/tests/gio-du.c: Avoid Using Unintialized Variable
Chun-wei Fan [Mon, 9 Sep 2013 16:49:39 +0000 (00:49 +0800)]
gio/tests/gio-du.c: Avoid Using Unintialized Variable

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

11 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 12 Sep 2013 20:16:04 +0000 (23:16 +0300)]
Updated Lithuanian translation

11 years agotests: remove assertion for '!uncertain' on .txt
Ryan Lortie [Thu, 12 Sep 2013 18:38:08 +0000 (14:38 -0400)]
tests: remove assertion for '!uncertain' on .txt

Virtaal installs a mime package for various .po-like file formats, one
of which has the extension .txt.  This causes GLib to report ".txt"
files still as "text/plain" but no longer with complete certainty.

The result is that asserting !uncertain during the testsuite causes the
test to fail if Virtaal happens to be installed.

Remove this assertion.

11 years agotests: properly set locale to C
Ryan Lortie [Thu, 12 Sep 2013 18:22:56 +0000 (14:22 -0400)]
tests: properly set locale to C

We're testing for particular error messages, so we need to set to a C
locale to make sure we get the untranslated version.

Previously, this test set the LANG environment variable, but that's not
good enough if LANGUAGE is also set.  The only way to ensure that
LANGUAGE is ignored is to disable l10n with LC_ALL=C.

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Thu, 12 Sep 2013 16:20:01 +0000 (19:20 +0300)]
Updated Belarusian translation.

11 years agoUpdated Latvian translation
Rūdolfs Mazurs [Wed, 11 Sep 2013 19:36:52 +0000 (22:36 +0300)]
Updated Latvian translation

11 years agoUpdated Czech translation
Marek Černocký [Tue, 10 Sep 2013 19:01:15 +0000 (21:01 +0200)]
Updated Czech translation

11 years agoUpdated Czech translation
Marek Černocký [Tue, 10 Sep 2013 19:00:16 +0000 (21:00 +0200)]
Updated Czech translation

11 years agoUpdated Galician translations
Fran Diéguez [Tue, 10 Sep 2013 13:53:23 +0000 (15:53 +0200)]
Updated Galician translations

11 years ago[l10n] Updated Italian translation.
Milo Casagrande [Tue, 10 Sep 2013 08:03:24 +0000 (10:03 +0200)]
[l10n] Updated Italian translation.

11 years agoUpdated Brazilian Portuguese translation
Enrico Nicoletto [Mon, 9 Sep 2013 23:31:50 +0000 (20:31 -0300)]
Updated Brazilian Portuguese translation

11 years agoUpdated Polish translation
Piotr Drąg [Mon, 9 Sep 2013 22:56:17 +0000 (00:56 +0200)]
Updated Polish translation

11 years agogio/tests/network-address: fix SCOPE_ID_TEST_INDEX fallback
Dieter Verfaillie [Mon, 9 Sep 2013 21:34:01 +0000 (23:34 +0200)]
gio/tests/network-address: fix SCOPE_ID_TEST_INDEX fallback

11 years agoTrivial typo fix
Kalev Lember [Mon, 9 Sep 2013 21:35:25 +0000 (23:35 +0200)]
Trivial typo fix

11 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 9 Sep 2013 18:35:43 +0000 (20:35 +0200)]
Updated Slovenian translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 9 Sep 2013 14:46:32 +0000 (16:46 +0200)]
Updated Spanish translation

11 years agotests/: add gio-du
Ryan Lortie [Sun, 28 Jul 2013 18:46:14 +0000 (14:46 -0400)]
tests/: add gio-du

This is basically a minimally-featured 'du' equivalent to manually test
g_file_measure_disk_usage().

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

11 years agoGFile: add new g_file_measure_disk_usage() API
Ryan Lortie [Sun, 28 Jul 2013 17:41:17 +0000 (13:41 -0400)]
GFile: add new g_file_measure_disk_usage() API

This is essentially the equivalent of 'du'.

This is currently only supported on local files.  gvfs will add support for the
interface later.

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

11 years agoUpdated Serbian translation
Мирослав Николић [Thu, 5 Sep 2013 06:05:45 +0000 (08:05 +0200)]
Updated Serbian translation

11 years agoVisual C++ Builds: Fix "install" Projects
Chun-wei Fan [Thu, 5 Sep 2013 05:58:24 +0000 (13:58 +0800)]
Visual C++ Builds: Fix "install" Projects

Due to the split up of the property sheets, the install projects did not
have info on the Intermediate and Output Paths, which caused confusing
messages from Visual Studio to show up upon completing build+"install" and
closing Visual Studio on whether to reload the install project, at least on
Visual Studio 2008.

Include the property sheet which defines these properties to fix this.

11 years agoUpdated Korean translation
Changwoo Ryu [Tue, 3 Sep 2013 15:29:58 +0000 (00:29 +0900)]
Updated Korean translation

11 years agobump version
Matthias Clasen [Mon, 2 Sep 2013 16:12:58 +0000 (12:12 -0400)]
bump version

11 years ago2.37.7 2.37.7
Matthias Clasen [Mon, 2 Sep 2013 15:25:57 +0000 (11:25 -0400)]
2.37.7

11 years agogobject-2.0: Annotate another GSignal function taking instances
Martin Pitt [Mon, 2 Sep 2013 10:04:43 +0000 (12:04 +0200)]
gobject-2.0: Annotate another GSignal function taking instances

As a followup to commit a72983a, annotate g_signal_handlers_destroy() as well.

11 years agogobject-2.0: Annotate GSignal functions taking instances
Emmanuele Bassi [Tue, 27 Aug 2013 12:11:47 +0000 (14:11 +0200)]
gobject-2.0: Annotate GSignal functions taking instances

Unbreak the GSignal API at least for GObject sub-classes.

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

11 years agoAdd Since tag for g_close
Matthias Clasen [Sun, 1 Sep 2013 18:54:33 +0000 (14:54 -0400)]
Add Since tag for g_close

The lack of this information in the docs was pointed out in

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

11 years ago[l10n] Update Catalan translation
Gil Forcada [Sat, 31 Aug 2013 20:45:44 +0000 (22:45 +0200)]
[l10n] Update Catalan translation

11 years agogmessages: fix g_test_expect_message() with NULL domains
Dan Winship [Sat, 31 Aug 2013 15:51:07 +0000 (11:51 -0400)]
gmessages: fix g_test_expect_message() with NULL domains

Allow passing a NULL domain to g_test_expect_message(), and more
importantly, don't crash if a message with a NULL domain gets logged
while there is an expected message.

11 years agogio/tests/socket: fix warning building on win32
Dan Winship [Sat, 24 Aug 2013 21:47:57 +0000 (17:47 -0400)]
gio/tests/socket: fix warning building on win32

setsockopt() has a broken prototype on win32. Fix this by just using
g_socket_set_option() instead.

11 years agogio/tests/socket: add test for g_socket_get_available_bytes()
Sebastian Dröge [Wed, 24 Oct 2012 12:25:01 +0000 (14:25 +0200)]
gio/tests/socket: add test for g_socket_get_available_bytes()

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

11 years agogsocket: Fix g_socket_get_available_bytes() on Windows and OS X
Dan Winship [Sat, 24 Aug 2013 17:55:06 +0000 (13:55 -0400)]
gsocket: Fix g_socket_get_available_bytes() on Windows and OS X

On Windows and OS X, FIONREAD on a UDP socket gets the total number of
bytes available, not the number of bytes available in the next packet,
which is the more useful number (and how the function always behaved
on Linux).

On OS X, fix this by using SO_NREAD. On Windows, fix this by doing a
MSG_PEEK recv() into a giant buffer, since there is apparently no
other way to get the information.

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

11 years agoAdd tests for new '%z' g_date_time_format extensions
Kalev Lember [Fri, 30 Aug 2013 19:58:49 +0000 (21:58 +0200)]
Add tests for new '%z' g_date_time_format extensions

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

11 years agogdatetime: Extend the '%z' timezone format
Kalev Lember [Fri, 30 Aug 2013 19:24:56 +0000 (21:24 +0200)]
gdatetime: Extend the '%z' timezone format

Implement gnulib strftime extensions for the '%z' numeric timezone
format. These are also supported and documented by GNU date(1):

%z     +hhmm numeric time zone (e.g., -0400)

%:z    +hh:mm numeric time zone (e.g., -04:00)

%::z   +hh:mm:ss numeric time zone (e.g., -04:00:00)

%:::z  numeric time zone with : to necessary precision (e.g., -04, +05:30)

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

11 years agoTamil Translations Updated
Shantha kumar [Fri, 30 Aug 2013 10:06:22 +0000 (15:36 +0530)]
Tamil Translations Updated

11 years agogsocket: make GSocketSource trigger on G_IO_NVAL
Dan Winship [Thu, 29 Aug 2013 13:25:42 +0000 (09:25 -0400)]
gsocket: make GSocketSource trigger on G_IO_NVAL

Getting G_IO_NVAL probably indicates bugs/race conditions in the
calling code, but if GSocket just ignores it, it will get stuck in an
infinite loop.

11 years agofix atomic ops detection
Antoine Jacoutot [Wed, 28 Aug 2013 07:35:27 +0000 (09:35 +0200)]
fix atomic ops detection

AC_TRY_LINK should be used instead of AC_TRY_COMPILE because the code
will compile everywhere, either producing ``atomic'' code, or an
external reference to __sync_bool_compare_and_swap.

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

11 years agogtype: fix a no-op assertion
Dan Winship [Tue, 27 Aug 2013 13:40:18 +0000 (09:40 -0400)]
gtype: fix a no-op assertion

g_type_class_add_private() was doing

    g_assert (node->data->instance.private_size <= 0xffff);

but that field is a guint16, so the check was a no-op. (Noticed by
clang, but not gcc for some reason.) Fix it to do the math in a gssize
variable and do the bounds checking there before updating the struct
field.

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

11 years agoUpdated Hungarian translation
Balázs Úr [Mon, 26 Aug 2013 17:39:25 +0000 (19:39 +0200)]
Updated Hungarian translation

11 years agogloadableicon: Fix gir bindings for load_finish
Jonas Danielsson [Sat, 24 Aug 2013 11:12:45 +0000 (13:12 +0200)]
gloadableicon: Fix gir bindings for load_finish

Make the gir notation for g_loadable_icon_load_finish match
the ones for g_loadable_icon_load.

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

11 years agoFix G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE documentation
Dieter Verfaillie [Thu, 22 Aug 2013 18:52:17 +0000 (20:52 +0200)]
Fix G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE documentation

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

11 years agol10n: Update Japanese translation
Jiro Matsuzawa [Thu, 22 Aug 2013 15:41:24 +0000 (00:41 +0900)]
l10n: Update Japanese translation

11 years agoGSocket – GSocketSource finalizing not threadsafe on Windows
Sebastian Dröge [Sun, 28 Jul 2013 14:43:44 +0000 (16:43 +0200)]
GSocket – GSocketSource finalizing not threadsafe on Windows

The requested_conditions list access is not threadsafe. When passing
the socket ownership from a GSource callback to another thread, which
also creates a GSocketSource for the socket, it can happen that the
original GSocketSource is finalized at the same time as the new one
is created. This would cause inconsistencies in the requested_conditions
list and can cause assertions or completely undefined behaviour.

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

11 years agoUpdated slovak translation
Ján Kyselica [Wed, 21 Aug 2013 19:12:28 +0000 (21:12 +0200)]
Updated slovak translation

11 years agogio/gdbusaddress.c: Silence RunDLL errors
Chun-wei Fan [Thu, 15 Aug 2013 13:27:02 +0000 (21:27 +0800)]
gio/gdbusaddress.c: Silence RunDLL errors

The RunDLL command call during get_session_address_dbus_launch() was
expecting _g_win32_run_session_bus@16 and g_win32_run_session_bus
on Win32 and Win64 respectively at least when GLib is compiled with MSVC,
not g_win32_run_session_bus@16, which caused annoying RunDLL error dialogue
boxes to show up during the use of GtkApplication (such as when running
gtk3-demo-application on Windows), prevented GtkApplication items from
being run for more than one time during the lifespan of the program,
and this also interfered with some GTK+ tests, causing them to fail.

Update accordingly to address the issue.

11 years agoFix typo in last commit
Chun-wei Fan [Wed, 21 Aug 2013 09:54:32 +0000 (17:54 +0800)]
Fix typo in last commit

The gio.vcxprojin and glib.vcxprojin were including .vsprops property
sheets, but it should have been .props instead.

11 years agoMSVC 2010 Project Files: Split up the Property Sheets
Chun-wei Fan [Wed, 21 Aug 2013 08:57:11 +0000 (16:57 +0800)]
MSVC 2010 Project Files: Split up the Property Sheets

Like the Visual Studio 2008 project files, split up the property sheets
so to ease maintenace, and to prepare to use autotools to fill in the
header entries to "install".

Put some of the items that are frequently repeated in the projects as well,
also to simplify maintenance.

Also, update the autotools files to automate the upgrade of Visual Studio
2010 project as we now have multiple property sheets to copy and process.

11 years agoMSVC 2008 Projects: Split the Property Sheets
Chun-wei Fan [Wed, 21 Aug 2013 08:05:47 +0000 (16:05 +0800)]
MSVC 2008 Projects: Split the Property Sheets

Split the property sheet into four sheets, to make maintainance of the
build files easier, and also to prepare for using autotools to fill in
the parts for the "installation" of headers.

Also put more of the items that are repeated in the projects into the
property sheets, also to improve ease of maintenance.

Updates to the Visual Studio 2010 projects will come later, as the script
to update them to Visual Studio 2012 must also be taken into account during'
the process.

11 years agoGLib MSVC Projects: Consolidate PCRE items
Chun-wei Fan [Wed, 21 Aug 2013 05:55:52 +0000 (13:55 +0800)]
GLib MSVC Projects: Consolidate PCRE items

Move the definitions of macros used to build PCRE that ships with GLib into
the property sheets, so that it can be easier to maintain

11 years agoGIO MSVC Projects: Drop Unneeded Defines
Chun-wei Fan [Wed, 21 Aug 2013 05:34:42 +0000 (13:34 +0800)]
GIO MSVC Projects: Drop Unneeded Defines

GIO_MODULE_DIR is dynamically constructed on Windows, so we don't really
need to define it here.

11 years agoGIO MSVC Project: Link to iphlpapi.lib
Chun-wei Fan [Wed, 21 Aug 2013 03:16:19 +0000 (11:16 +0800)]
GIO MSVC Project: Link to iphlpapi.lib

This is needed for GetAdaptersAddresses()[1], which was used to implement
if_nametoindex on Windows, notably on Windows XP, in commit 01156b12.

if_nametoindex and if_indextoname, as noted in config.h.win32(.in), is
available with Windows Vista and later, so when we eventually drop
support for Windows XP, we can call them directly, and these functions
also reside in the same iphlpapi.lib

[1]: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365915%28v=vs.85%29.aspx

11 years agoUpdate config.h.win32.in
Chun-wei Fan [Wed, 21 Aug 2013 03:04:37 +0000 (11:04 +0800)]
Update config.h.win32.in

Make entries more in sync with the items checked with autotools, and
provide a MinGW declaration for _GLIB_EXTERN, taken from configure.ac.

11 years agoUpdated Polish translation
Piotr Drąg [Tue, 20 Aug 2013 21:29:38 +0000 (23:29 +0200)]
Updated Polish translation

11 years agoUpdated Polish translation
Piotr Drąg [Tue, 20 Aug 2013 18:33:47 +0000 (20:33 +0200)]
Updated Polish translation

11 years agopost-release bump
Matthias Clasen [Tue, 20 Aug 2013 03:54:43 +0000 (23:54 -0400)]
post-release bump

11 years ago2.37.6 2.37.6
Matthias Clasen [Tue, 20 Aug 2013 03:31:40 +0000 (23:31 -0400)]
2.37.6

11 years agoSet up test environment properly
Matthias Clasen [Tue, 20 Aug 2013 03:29:54 +0000 (23:29 -0400)]
Set up test environment properly

To make the G_TEST_SRCDIR and G_TEST_BUILDDIR variables
reach our test binaries, we have to add it to the
TESTS_ENVIRONMENT variable.

11 years agoDist tap-test script
Matthias Clasen [Tue, 20 Aug 2013 02:31:56 +0000 (22:31 -0400)]
Dist tap-test script

Otherwise it won't be around when make distcheck is looking
for it.

11 years agoFix make check
Matthias Clasen [Tue, 20 Aug 2013 00:00:25 +0000 (20:00 -0400)]
Fix make check

The glib/tests contained some tests for gtester. Now that
we're not including glib.mk anymore, we have to define
GTESTER ourselves.

11 years agoGSocket – Implement multicast interface selection on Windows
Sebastian Dröge [Wed, 31 Jul 2013 12:11:55 +0000 (14:11 +0200)]
GSocket – Implement multicast interface selection on Windows

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

11 years agognetworkaddress: allow IPv6 scope ids in URIs
Dan Winship [Mon, 19 Aug 2013 16:14:27 +0000 (12:14 -0400)]
gnetworkaddress: allow IPv6 scope ids in URIs

GNetworkAddress was allowing IPv6 scope ids in g_network_address_new()
/ g_network_address_parse(), but not in g_network_address_parse_uri().
Fix that.

Part of https://bugzilla.gnome.org/show_bug.cgi?id=669724

11 years agognetworkaddress: fix parsing of URIs with IPv6 literal and port
Dan Winship [Mon, 19 Aug 2013 16:09:59 +0000 (12:09 -0400)]
gnetworkaddress: fix parsing of URIs with IPv6 literal and port

Addresses like "http://[::1]:8080/" were being parsed as though they
did not include a port. Fix that, and add some more parsing tests.

11 years agoExpand docs for thread names
Matthias Clasen [Sun, 18 Aug 2013 22:13:02 +0000 (18:13 -0400)]
Expand docs for thread names

Thread names may be NULL, and don't have to be unique.
The docs should tell you that.

11 years ago[l10n] Updated Italian translation.
Milo Casagrande [Sun, 18 Aug 2013 12:29:29 +0000 (14:29 +0200)]
[l10n] Updated Italian translation.

11 years agoRemove legacy icon name support
William Jon McCann [Wed, 16 Jan 2013 20:07:54 +0000 (15:07 -0500)]
Remove legacy icon name support

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

11 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 17 Aug 2013 23:59:54 +0000 (01:59 +0200)]
Updated Slovenian translation

11 years agoStart using TAP
Matthias Clasen [Sat, 17 Aug 2013 19:46:00 +0000 (15:46 -0400)]
Start using TAP

Convert {glib,gobject,gio}/tests to use the automake TAP driver
and test harness instead of gtester. To do so, we add a glib-tap.mk
that provides the same interface as glib.mk, except for the
reporting and coverage testing functionality. Eventually, we may
want to replace glib.mk with it. I've not yet converted the
toplevel tests/ directory, since it mixes gtestutils tests with
other binaries.

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

11 years agoUpdate the documentation for assertion macros
Matthias Clasen [Sat, 17 Aug 2013 19:23:41 +0000 (15:23 -0400)]
Update the documentation for assertion macros

The assertion macros that are part of gtestutils (but not
g_assert) can now be made non-fatal. Update the documentation
to reflect that.

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

11 years agoAdd a way to make assertions non-fatal
Matthias Clasen [Sat, 17 Aug 2013 19:18:29 +0000 (15:18 -0400)]
Add a way to make assertions non-fatal

When using test harnesses other than gtester (e.g. using TAP),
it can be suboptimal to have the very first failed assertion
abort the test suite.

This commit adds a g_test_set_nonfatal_assertions() that can
be called in a test binary to change the behaviour of most
assert macros to just call g_test_fail() and continue. We
don't change the behavior of g_assert() and g_assert_not_reached(),
since these to assertion macros are older than GTest, are
widely used outside of testsuites, and will cause compiler
warnings if they loose their noreturn annotation.

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

11 years agoAdd g_assert_true, g_assert_false and g_assert_null
Matthias Clasen [Sat, 2 Feb 2013 17:53:05 +0000 (12:53 -0500)]
Add g_assert_true, g_assert_false and g_assert_null

These are just like g_assert(), but using a different entry
point for the message, so we can repurpose them together
with the other assertion macros.

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

11 years agoMake g_assert and g_assert_not_reached use the same entry point
Matthias Clasen [Sat, 2 Feb 2013 17:47:54 +0000 (12:47 -0500)]
Make g_assert and g_assert_not_reached use the same entry point

These two assertion macros are commonly used outside tests,
so we can't repurpose them, as we are going to do with the
other assertion macros in the following commits. This
change is in preparation for that.

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

11 years agoSupport TAP as an output format
Matthias Clasen [Sat, 17 Aug 2013 18:16:37 +0000 (14:16 -0400)]
Support TAP as an output format

Initial support for the Test Anything Protocol for
GTest output. Use the --tap option to get TAP output.
More information about TAP can be found e.g. here:
http://en.wikipedia.org/wiki/Test_Anything_Protocol

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

11 years agoAdd a function to check test status from the inside
Matthias Clasen [Sat, 17 Aug 2013 18:14:20 +0000 (14:14 -0400)]
Add a function to check test status from the inside

The new g_test_failed() function can be used to find
out if a currently running testcase is already marked
as failed.

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

11 years agoAdd functions to mark tests as skipped or incomplete
Matthias Clasen [Sat, 17 Aug 2013 18:11:24 +0000 (14:11 -0400)]
Add functions to mark tests as skipped or incomplete

We also expand the GTestResult enumeration to include
values for skipped and incomplete tests, and pass that
on when logging a test result.

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

11 years agoAdd a GTestResult enumeration
Matthias Clasen [Sat, 17 Aug 2013 18:04:58 +0000 (14:04 -0400)]
Add a GTestResult enumeration

This enumeration will be expanded to introduce more results
in the following commits.

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

11 years agoAdd start/stop suite log messages
Matthias Clasen [Sun, 20 Jan 2013 08:23:38 +0000 (03:23 -0500)]
Add start/stop suite log messages

These will be used in the following commits, when
implementing support for TAP as an alternative
test driver protocol.

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

11 years agoGApplication: Stop using deprecated api
Matthias Clasen [Sat, 17 Aug 2013 21:25:25 +0000 (17:25 -0400)]
GApplication: Stop using deprecated api

11 years agoQuell a few compiler warnings
Matthias Clasen [Sat, 17 Aug 2013 21:22:05 +0000 (17:22 -0400)]
Quell a few compiler warnings

11 years agoTake out an unused line from gdatetime tests
Matthias Clasen [Sat, 17 Aug 2013 17:45:34 +0000 (13:45 -0400)]
Take out an unused line from gdatetime tests

This line was apparently causing build problems on Win64,
and since the only test involving the t_str variable was
already commented out, lets just take this out altogether.

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

11 years agoMark up warnings/critical functions for clang analyzer
Stef Walter [Tue, 14 May 2013 06:49:55 +0000 (08:49 +0200)]
Mark up warnings/critical functions for clang analyzer

The clang code analyzer needs to know that functions like g_error
g_critical an g_return_if_fail should be seen by the analyzer in the
same way as g_assert(). That is the analyzer should think they are
fatal.

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

11 years agoGSocket: fix g_socket_bind() allow_reuse semantics
Dan Winship [Sun, 17 Feb 2013 20:11:18 +0000 (15:11 -0500)]
GSocket: fix g_socket_bind() allow_reuse semantics

With UDP sockets, g_socket_bind() with allow_reuse=TRUE on Linux
behaved in a way that the documentation didn't suggest, and that
didn't match other OSes. (Specifically, it allowed binding multiple
multicast sockets to the same address.)

Since this behavior is useful, and since allow_reuse didn't have any
other meaning with UDP sockets, update the docs to reflect the Linux
behavior, and make it do the same thing on non-Linux.

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

11 years agoGSocket: fix broadcast documentation
Dan Winship [Sun, 17 Feb 2013 14:41:55 +0000 (09:41 -0500)]
GSocket: fix broadcast documentation

The :broadcast property only affects sending broadcast packets, not
receiving them.

11 years agoAdd G_SPAWN_DEFAULT to GSpawnFlags
Robert Ancell [Thu, 30 May 2013 23:07:55 +0000 (11:07 +1200)]
Add G_SPAWN_DEFAULT to GSpawnFlags

This is convenient for language bindings, and also makes
invocations of g_spawn functions in C more readable.

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