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.
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
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
Balázs Úr [Mon, 26 Aug 2013 17:39:25 +0000 (19:39 +0200)]
Updated Hungarian translation
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
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
Jiro Matsuzawa [Thu, 22 Aug 2013 15:41:24 +0000 (00:41 +0900)]
l10n: Update Japanese translation
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
Ján Kyselica [Wed, 21 Aug 2013 19:12:28 +0000 (21:12 +0200)]
Updated slovak translation
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.
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.
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.
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.
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
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.
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
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.
Piotr Drąg [Tue, 20 Aug 2013 21:29:38 +0000 (23:29 +0200)]
Updated Polish translation
Piotr Drąg [Tue, 20 Aug 2013 18:33:47 +0000 (20:33 +0200)]
Updated Polish translation
Matthias Clasen [Tue, 20 Aug 2013 03:54:43 +0000 (23:54 -0400)]
post-release bump
Matthias Clasen [Tue, 20 Aug 2013 03:31:40 +0000 (23:31 -0400)]
2.37.6
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.
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.
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.
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
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
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.
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.
Milo Casagrande [Sun, 18 Aug 2013 12:29:29 +0000 (14:29 +0200)]
[l10n] Updated Italian translation.
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
Matej Urbančič [Sat, 17 Aug 2013 23:59:54 +0000 (01:59 +0200)]
Updated Slovenian translation
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
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
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
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
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
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
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
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
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
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
Matthias Clasen [Sat, 17 Aug 2013 21:25:25 +0000 (17:25 -0400)]
GApplication: Stop using deprecated api
Matthias Clasen [Sat, 17 Aug 2013 21:22:05 +0000 (17:22 -0400)]
Quell a few compiler warnings
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
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
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
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.
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
Matthias Clasen [Sat, 17 Aug 2013 16:35:33 +0000 (12:35 -0400)]
Make g_date_time_new check its arguments
The documentation for this function explicitly gives valid
ranges for the arguments and states that out-of-range arguments
will cause NULL to be returned. Only, the code didn't check
the ranges, and crashed instead. Fix that and add a testcase
for invalid arguments. It turns out that the test_z testcase
was providing invalid arguments and relied on g_date_time_new
to return a non-NULL value anyway, so this commit fixes that
testcase as well.
https://bugzilla.gnome.org/show_bug.cgi?id=702674
Ryan Lortie [Fri, 7 Jun 2013 15:41:41 +0000 (11:41 -0400)]
Export __glib_assert_msg
Put __glib_assert_msg in the dynamic symbol table, but not in any public
headers.
This variable is _not_ part of our API but this way debuggers and
automated crash report utilities will be able to access this variable,
even if debug symbols are not available.
https://bugzilla.gnome.org/show_bug.cgi?id=701800
Dan Winship [Sat, 17 Aug 2013 14:35:13 +0000 (10:35 -0400)]
update .gitignores
Dan Winship [Thu, 7 Feb 2013 15:02:55 +0000 (10:02 -0500)]
build: fix dtrace-related warnings
Fix the warnings when compiling and linking the probes files by
calling dtrace with all the -W flags removed from CFLAGS (since dtrace
generates bad C code), and with CC set to "libtool --mode=compile ..."
(so that it will output a proper .lo file and libtool won't warn when
linking it into the .la).
https://bugzilla.gnome.org/show_bug.cgi?id=693335
Dan Winship [Sun, 2 Jun 2013 22:59:09 +0000 (19:59 -0300)]
glib/tests/gdatetime: use UTC time in test_GDateTime_diff()
test_GDateTime_diff() checks that the span from 2009-01-01 to
2010-01-01 is exactly 365 * G_TIME_SPAN_DAY, but it does this using
local time, and so fails if you are in a timezone that is in the
southern hemisphere which only did DST during one of 2008-2009 and
2009-2010 (in which case the year will end up being one hour too long
or too short).
Switch the diff tests to use UTC time instead; there are plenty of
other local time tests already.
https://bugzilla.gnome.org/show_bug.cgi?id=701529
Wouter Bolsterlee [Sat, 17 Aug 2013 12:58:12 +0000 (14:58 +0200)]
Updated Dutch translation
Daiki Ueno [Fri, 16 Aug 2013 15:44:14 +0000 (17:44 +0200)]
codegen: Treat input file as binary
Under C locale, open() in Python 3 sets the file encoding to ASCII.
As expat looks at encoding="..." in XML declaration, gdbus-codegen can
simply open the input file as binary and let expat decode the content.
https://bugzilla.gnome.org/show_bug.cgi?id=696633
Chun-wei Fan [Fri, 16 Aug 2013 02:35:19 +0000 (10:35 +0800)]
config.h.win32.in: Drop unneeded item
...We no longer have the iconv cache code around.
Chun-wei Fan [Fri, 16 Aug 2013 02:29:41 +0000 (10:29 +0800)]
Update config.h.win32.in
Make its entries match the items that are being checked by the autotools
builds in config.h.in.
Colin Walters [Thu, 15 Aug 2013 22:24:45 +0000 (18:24 -0400)]
giochannel: Add an out annotation for g_io_channel_read_unichar()
Since it's an output variable.
https://bugzilla.gnome.org/show_bug.cgi?id=704165
Dan Winship [Thu, 15 Aug 2013 15:30:59 +0000 (11:30 -0400)]
gio/tests/task: fix a race condition in test_run_in_thread()
When running a task in a thread, GTask may still be internally holding
a ref on the task in that thread even after the callback is called in
the original thread (depending on thread scheduling). Fix the test to
handle that by using a weak notify that signals a GCond, and wait for
that GCond from the main thread. (And add a corresponding check to
test_return_on_cancel().)
https://bugzilla.gnome.org/show_bug.cgi?id=705152
Nick Schermer [Wed, 7 Aug 2013 19:01:00 +0000 (21:01 +0200)]
gobject: Handle ref_count==0 in notify_by_pspec
Just like g_object_notify, check for a zero ref_count in
g_object_notify_by_pspec and leave if it is 0.
This allows using functions in ->finalize() that possibly also
notify a property change on the object. Previously,
this resulted in an error from g_object_ref.
https://bugzilla.gnome.org/show_bug.cgi?id=705570
Theppitak Karoonboonyanan [Wed, 14 Aug 2013 10:07:38 +0000 (17:07 +0700)]
Updated Thai translation.
Matthias Clasen [Tue, 13 Aug 2013 20:48:51 +0000 (16:48 -0400)]
GSimpleActionGroup: Deprecated redundant API
See https://bugzilla.gnome.org/show_bug.cgi?id=705600
Cosimo Cecchi [Tue, 13 Aug 2013 13:16:48 +0000 (15:16 +0200)]
themedicon: correctly fallback to symbolic icons
When an icon is requested as symbolic, our generic fallback algorithm
uses fullcolor icons when the specified icon name is not found, treating
the "-symbolic" suffix as another component of the icon name.
Change the algorithm to check beforehand if the icon is symbolic, remove
the suffix if so, and re-add it at the end for all the generated icon
names.
https://bugzilla.gnome.org/show_bug.cgi?id=680926
Aurimas Černius [Sun, 11 Aug 2013 18:01:50 +0000 (21:01 +0300)]
Updated Lithuanian translation
Kjartan Maraas [Thu, 8 Aug 2013 20:14:04 +0000 (22:14 +0200)]
Updated Norwegian bokmål translation
Daniel Mustieles [Thu, 8 Aug 2013 09:14:31 +0000 (11:14 +0200)]
Updated Spanish translation
Ryan Lortie [Mon, 29 Jul 2013 14:00:20 +0000 (10:00 -0400)]
g_get_tmp_dir(): Clean up envars
On UNIX, we should only ever be looking at TMPDIR.
On Windows, we should only ever look at TEMP.
Also, clean up the documentation to better describe what is actually
happening. The previous docs may have left someone confused about why
this function returns "/var/tmp" on Solaris, even with no TMPDIR set.
https://bugzilla.gnome.org/show_bug.cgi?id=705075
Yaron Shahrabani [Sun, 4 Aug 2013 07:31:19 +0000 (10:31 +0300)]
Updated Hebrew translation.
Emanuele Aina [Sat, 3 Aug 2013 09:51:00 +0000 (11:51 +0200)]
gtype: Fix typo in g_type_class_add_private() error message
https://bugzilla.gnome.org/show_bug.cgi?id=705398
Yuri Myasoedov [Sun, 4 Aug 2013 05:44:21 +0000 (09:44 +0400)]
Updated Russian translation
Sandeep Sheshrao Shedmake [Sun, 4 Aug 2013 03:27:37 +0000 (08:57 +0530)]
Updated Marathi Translations
Marek Černocký [Sat, 3 Aug 2013 18:05:34 +0000 (20:05 +0200)]
Updated Czech translation
Chao-Hsiung Liao [Sat, 3 Aug 2013 13:06:46 +0000 (21:06 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Rafael Ferreira [Sat, 3 Aug 2013 02:15:58 +0000 (23:15 -0300)]
Updated Brazilian Portuguese translation proofread by Enrico Nicoletto
Fran Diéguez [Fri, 2 Aug 2013 10:16:30 +0000 (12:16 +0200)]
Updated Galician translations
Rico Tzschichholz [Thu, 1 Aug 2013 18:41:50 +0000 (20:41 +0200)]
GMenuModel: Fix typo in annotation
Sweta Kothari [Thu, 1 Aug 2013 08:16:52 +0000 (13:46 +0530)]
Updated Gujarati Translations
Daniel Svensson [Tue, 30 Jul 2013 22:20:44 +0000 (18:20 -0400)]
gdesktopappinfo: Add missing return value
Nilamdyuti Goswami [Tue, 30 Jul 2013 17:10:49 +0000 (22:40 +0530)]
Assamese translation updated
Dan Winship [Tue, 30 Jul 2013 13:12:48 +0000 (09:12 -0400)]
gsocket: fix a cut-and-pasted error message
Matthias Clasen [Mon, 29 Jul 2013 22:07:32 +0000 (18:07 -0400)]
post-release version bump
Matthias Clasen [Mon, 29 Jul 2013 21:18:06 +0000 (17:18 -0400)]
2.37.5
Ryan Lortie [Mon, 29 Jul 2013 21:15:19 +0000 (17:15 -0400)]
GMenuModel: add annotations to virtual functions
Patch from Ted Gould.
https://bugzilla.gnome.org/show_bug.cgi?id=704931
Sébastien Wilmet [Mon, 29 Jul 2013 15:29:05 +0000 (17:29 +0200)]
Fix G_ADD_PRIVATE_DYNAMIC()
Chun-wei Fan [Fri, 19 Jul 2013 11:10:41 +0000 (19:10 +0800)]
Add MSVC implementations of G_GNUC_*_IGNORE_DEPRECATIONS
As Visual Studio 2008 and later have support for the __pragma keyword,
where the compiler pragmas can be used in a macro, we can support
G_GNUC_BEGIN_IGNORE_DEPRECATIONS and G_GNUC_END_IGNORE_DEPRECATIONS
for Visual Studio 2008 and later, so many deprecation (C4996) warnings
can be suppressed when using these compilers when we use these macros
in the code.
https://bugzilla.gnome.org/show_bug.cgi?id=704543
Matthias Clasen [Mon, 29 Jul 2013 02:06:57 +0000 (22:06 -0400)]
Trivial typo fix
Matthias Clasen [Sun, 28 Jul 2013 22:44:41 +0000 (18:44 -0400)]
Use GLIB_PRIVATE_CALL macro
I accidentally pushed the fix for bug 704873 before
applying this cleanup.
Matthias Clasen [Sun, 28 Jul 2013 22:39:51 +0000 (18:39 -0400)]
Use better assertion macros
Use g_assert_cmpint and friends in the convert test, to get
more telling messages when they fail.
Matthias Clasen [Sun, 28 Jul 2013 22:39:42 +0000 (18:39 -0400)]
Avoid an unused variable warning
Colin Walters [Sat, 27 Jul 2013 23:21:00 +0000 (00:21 +0100)]
Drop iconv caching code
This was introduced for Solaris performance theoretically;
we have never been able to use it on Linux/glibc because
the UTF-16 BOM state isn't reset.
We have no data about Solaris performance; were some to
still exist, we could reintroduce the code with an explicit
check for Solaris, not a check for glibc.
https://bugzilla.gnome.org/show_bug.cgi?id=704999
Ryan Lortie [Thu, 25 Jul 2013 14:28:42 +0000 (10:28 -0400)]
inotify: don't assume mainloop is running
GFileMonitor takes great care to sample the thread-default main context
at the time that it is created in order that events can be dispatched to
the correct thread when they come in.
The inotify GFileMonitor implementation uses a global file descriptor
shared between all watches. It has to poll this file descriptor from
somewhere so it arbitrarily picks the default main context.
The problem with that is that the user might not be running it.
Let's use the GLib worker thread for this instead. It's guaranteed to
be running if you need it, and this is exactly the sort of problem it
was meant to solve.
https://bugzilla.gnome.org/show_bug.cgi?id=704873
Matthias Clasen [Sun, 28 Jul 2013 21:04:56 +0000 (17:04 -0400)]
Fix build with statvfs
As pointed out in bug 704587, the maze of ifdefs was missing the
variable declaration for statfs_result in one case.
https://bugzilla.gnome.org/show_bug.cgi?id=704587
Rico Tzschichholz [Sat, 27 Jul 2013 07:02:58 +0000 (09:02 +0200)]
Emmanuele Bassi [Fri, 26 Jul 2013 15:45:48 +0000 (16:45 +0100)]
Add macros and symbols for private data on dynamic types
We need a TypeName_private_offset variable defined by the macros used to
register dynamic types. We also need to call the adjust_private_offset()
function inside class_init(). G_ADD_PRIVATE_DYNAMIC only sets the size
of the private data structure, and relies on the behaviour of the
g_type_class_adjuset_private_offset() function to register the private
data structure at class init time if passed a value greater than zero.
This allows using G_PRIVATE_OFFSET with dynamic types.
Colin Walters [Fri, 26 Jul 2013 11:39:51 +0000 (12:39 +0100)]
configure: Use AC_USE_SYSTEM_EXTENSIONS
...instead of detecting glibc and using _GNU_SOURCE manually. This
should fix the build when using glibc-emulating libraries; we can
defer portability work to autoconf.
https://bugzilla.gnome.org/show_bug.cgi?id=684123
Matthias Clasen [Fri, 26 Jul 2013 18:40:10 +0000 (14:40 -0400)]
Document restrictions on private names
With the new machinery, private structs must be named
TypeNamePrivate if TypeName is the name of the instance
struct.
Sweta Kothari [Fri, 26 Jul 2013 09:20:22 +0000 (14:50 +0530)]
updated Gujarati translations
Nilamdyuti Goswami [Thu, 25 Jul 2013 07:48:58 +0000 (13:18 +0530)]
Assamese translation updated
Dan Winship [Wed, 24 Jul 2013 14:02:38 +0000 (10:02 -0400)]
mainloop: redo child source tests to not use timeouts
The timeout-based tests could fail on slow or heavily-loaded machines.
Change them to use a counter-based "timeout" source rather than a
time-based one, so they no longer depend on wall time.
https://bugzilla.gnome.org/show_bug.cgi?id=700460
Dan Winship [Wed, 24 Jul 2013 14:45:36 +0000 (10:45 -0400)]
gnetworkaddress: tweak to make Solaris happy
https://bugzilla.gnome.org/show_bug.cgi?id=704704