platform/upstream/glib.git
11 years agoSmall NEWS change
Ryan Lortie [Tue, 19 Mar 2013 03:01:08 +0000 (23:01 -0400)]
Small NEWS change

11 years agotests: remove a pair of testcases that fail in en_CA
Ryan Lortie [Tue, 19 Mar 2013 02:57:55 +0000 (22:57 -0400)]
tests: remove a pair of testcases that fail in en_CA

These testcases don't work with the Canadian date format, so remove
them.

11 years agoUpdated slovak translation
Ján Kyselica [Mon, 18 Mar 2013 20:22:18 +0000 (21:22 +0100)]
Updated slovak translation

11 years agoAnother update
Matthias Clasen [Mon, 18 Mar 2013 19:23:07 +0000 (15:23 -0400)]
Another update

11 years agogoption: g_option_context_new allows NULL for parameter_string
Christian Persch [Mon, 18 Mar 2013 13:01:28 +0000 (14:01 +0100)]
goption: g_option_context_new allows NULL for parameter_string

11 years agoUpdate Visual Studio property sheets
Chun-wei Fan [Mon, 18 Mar 2013 08:52:36 +0000 (16:52 +0800)]
Update Visual Studio property sheets

"Install" gtask.h... it's needed.

11 years agog_hash_table_get_keys: Improve docs slightly
Matthias Clasen [Mon, 18 Mar 2013 03:30:34 +0000 (23:30 -0400)]
g_hash_table_get_keys: Improve docs slightly

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

11 years agoSmall cleanup to tutorial headings
Matthias Clasen [Mon, 18 Mar 2013 03:01:21 +0000 (23:01 -0400)]
Small cleanup to tutorial headings

This makes all the subsection headers consistent.
https://bugzilla.gnome.org/show_bug.cgi?id=659428

11 years agodocs: Elaborate replacement for g_strncasecmp
David King [Fri, 17 Feb 2012 14:54:31 +0000 (14:54 +0000)]
docs: Elaborate replacement for g_strncasecmp

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

11 years agoAdd warning to g_base64_decode()
David Schleef [Sun, 17 Mar 2013 22:56:17 +0000 (15:56 -0700)]
Add warning to g_base64_decode()

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

11 years agoGDBusMethodInvocation: leak and potential crash
Patrick Ohly [Thu, 7 Mar 2013 17:44:44 +0000 (18:44 +0100)]
GDBusMethodInvocation: leak and potential crash

_g_dbus_method_invocation_new is said to allow method_info == NULL,
but will crash inside g_dbus_method_info_ref when the method_info
really is NULL, because g_dbus_method_info_ref does not allow NULL as
parameter. Fixed by checking for NULL in _g_dbus_method_invocation_new
itself.

The leak itself happens because _g_dbus_method_invocation_new stores a
new reference to the method_info without also unreferencing it. Fixed
by adding the missing unref, protected by an if because the pointer
may be NULL.

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

11 years agoUpdated Latvian translation
Rūdolfs Mazurs [Sun, 17 Mar 2013 18:08:27 +0000 (20:08 +0200)]
Updated Latvian translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sun, 17 Mar 2013 13:40:46 +0000 (16:40 +0300)]
Updated Belarusian translation.

11 years agoUpdated Uyghur translation
Gheyret Kenji [Sun, 17 Mar 2013 04:54:19 +0000 (13:54 +0900)]
Updated Uyghur translation

Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
11 years agogmacros: Ensure GUINT32/64_SWAP_LE_BE macros parenthesize arguments
Stephan Bergmann [Fri, 15 Mar 2013 16:30:24 +0000 (17:30 +0100)]
gmacros: Ensure GUINT32/64_SWAP_LE_BE macros parenthesize arguments

Like all macros, we need to parenthesize arguments to ensure the order
of operations is correct.

See the mail thread starting at
<http://lists.fedoraproject.org/pipermail/devel/2013-March/180302.html>
"GCC produced wrong code in gvfs-1.14.2-3.fc18.x86_64" for how this
caused trouble with GVFS (which in turn caused trouble with
LibreOffice, where running "soffice sftp://.../.../test.odt" to access
an .odt file via GVFS failed to properly type-detect that file as a
Writer document and produced bogus error messages about the file being
broken).

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

11 years agoUpdated Portuguese translation and converted to New Spelling (Novo AO)
Duarte Loreto [Fri, 15 Mar 2013 12:55:57 +0000 (12:55 +0000)]
Updated Portuguese translation and converted to New Spelling (Novo AO)

11 years agoDoc: clarify set_property() vfunc
Sébastien Wilmet [Thu, 14 Mar 2013 22:24:18 +0000 (23:24 +0100)]
Doc: clarify set_property() vfunc

Implementations "don't need to ...". It was not clear what happen
if they do it all the same.

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

11 years agoDoc: clarify a bit g_signal_connect_object()
Sébastien Wilmet [Thu, 14 Mar 2013 21:56:54 +0000 (22:56 +0100)]
Doc: clarify a bit g_signal_connect_object()

"the object" can be a bit confusing for a beginner, he can think it is
the @instance.

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

11 years agoUpdated Slovenian translation
Martin Srebotnjak [Thu, 14 Mar 2013 22:17:33 +0000 (23:17 +0100)]
Updated Slovenian translation

11 years agoUpdated gujarati file
Sweta Kothari [Thu, 14 Mar 2013 10:58:11 +0000 (16:28 +0530)]
Updated gujarati file

11 years agoUpdated gujarati file
Sweta Kothari [Thu, 14 Mar 2013 09:54:20 +0000 (15:24 +0530)]
Updated gujarati file

11 years agolive-g-file: test hidden files
Emilio Pozuelo Monfort [Mon, 4 Mar 2013 19:03:26 +0000 (20:03 +0100)]
live-g-file: test hidden files

We test for traditional Unix dot-leading files as well as
for files listed in the .hidden file.

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

11 years agoglocalfileinfo: Stop using PATH_MAX for .hidden
Ryan Lortie [Tue, 12 Mar 2013 16:53:42 +0000 (12:53 -0400)]
glocalfileinfo: Stop using PATH_MAX for .hidden

We were using PATH_MAX to size a static array for reading lines from
the .hidden file.  Some platforms (Hurd) don't declare a PATH_MAX.

Switch to using g_file_get_contents() and g_str_split('\n') instead.

Also take the time to clean up a bit with a switch to using a 'set mode'
GHashTable (since this code was originally written before we had those).

This patch is largely based on a patch from Emilio Pozuelo Monfort (who
also reported the bug).

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

11 years agoUpdated Uyghur translation
Gheyret Kenji [Wed, 13 Mar 2013 11:48:15 +0000 (20:48 +0900)]
Updated Uyghur translation

Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
11 years agoUpdated Uyghur translation
Gheyret Kenji [Wed, 13 Mar 2013 11:39:02 +0000 (20:39 +0900)]
Updated Uyghur translation

Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
11 years agoUpdated Danish translation
Joe Hansen [Tue, 12 Mar 2013 22:14:39 +0000 (23:14 +0100)]
Updated Danish translation

11 years ago[l10n] Updated Catalan (Valencian) translation
Carles Ferrando [Tue, 12 Mar 2013 22:02:33 +0000 (23:02 +0100)]
[l10n] Updated Catalan (Valencian) translation

11 years ago[l10n] Updated Catalan translation
Gil Forcada [Tue, 12 Mar 2013 22:02:24 +0000 (23:02 +0100)]
[l10n] Updated Catalan translation

11 years agoUpdated French translation
Claude Paroz [Tue, 12 Mar 2013 17:17:12 +0000 (18:17 +0100)]
Updated French translation

11 years agotests: clean up for Unicode corrigendum #9
Ryan Lortie [Tue, 12 Mar 2013 16:32:16 +0000 (12:32 -0400)]
tests: clean up for Unicode corrigendum #9

Unicode corrigendum #9 spells out in no uncertain terms that on
conversion interfaces we should not reject characters like U+FFFE and
U+FFFF which we were doing before.

Commit f91ef4ef15d220f6899c97aaf5b1c0a8f68cfe9a started accepting these
characters, but we had some testcases that were checking that strings
containing these characters should be rejected.

Update the tests.

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

11 years agoAssamese translation updated for gnome 3.8
Nilamdyuti Goswami [Tue, 12 Mar 2013 12:53:29 +0000 (18:23 +0530)]
Assamese translation updated for gnome 3.8

11 years agoFix /appinfo/mime tests
Martin Pitt [Mon, 11 Mar 2013 08:29:34 +0000 (09:29 +0100)]
Fix /appinfo/mime tests

Commit f641699 (for bug 675333) introduced a check whether the Exec= program in
a .desktop actually exists. This broke the /appinfo/mime/* test cases which use
executable names like "my_app".

Use real ones instead (like "echo" and "sleep"), and add a new
/appinfo/mime/ignore-nonexisting test case which verifies that
g_desktop_app_info_new() indeed ignores nonexisting executables.

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

11 years ago[l10n] Updated Italian translation.
Milo Casagrande [Mon, 11 Mar 2013 21:08:36 +0000 (22:08 +0100)]
[l10n] Updated Italian translation.

11 years agoUpdated Galician translations
Fran Diéguez [Mon, 11 Mar 2013 20:54:50 +0000 (21:54 +0100)]
Updated Galician translations

11 years agoUpdated Korean translation
Seong-ho Cho [Mon, 11 Mar 2013 17:22:06 +0000 (02:22 +0900)]
Updated Korean translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 11 Mar 2013 17:09:07 +0000 (18:09 +0100)]
Updated Spanish translation

11 years agoUpdated Greek translation
Dimitris Spingos [Mon, 11 Mar 2013 15:26:39 +0000 (17:26 +0200)]
Updated Greek translation

11 years agoUpdated Serbian translation
Мирослав Николић [Mon, 11 Mar 2013 10:29:28 +0000 (11:29 +0100)]
Updated Serbian translation

11 years ago[l10n] Updated German translation
Mario Blättermann [Sun, 10 Mar 2013 16:06:47 +0000 (17:06 +0100)]
[l10n] Updated German translation

11 years ago[l10n] Update Japanese translation
Jiro Matsuzawa [Sun, 10 Mar 2013 12:55:53 +0000 (21:55 +0900)]
[l10n] Update Japanese translation

11 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Sat, 9 Mar 2013 18:43:20 +0000 (15:43 -0300)]
Updated Brazilian Portuguese translation

11 years agoUpdated Polish translation
Piotr Drąg [Sat, 9 Mar 2013 18:41:07 +0000 (19:41 +0100)]
Updated Polish translation

11 years agoUpdated Lithuanian translation
Aurimas Černius [Sat, 9 Mar 2013 15:20:42 +0000 (17:20 +0200)]
Updated Lithuanian translation

11 years agogsettings-tool: Make a string translatable
Jiro Matsuzawa [Sat, 9 Mar 2013 14:56:02 +0000 (23:56 +0900)]
gsettings-tool: Make a string translatable

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

11 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 9 Mar 2013 12:50:59 +0000 (13:50 +0100)]
Updated Slovenian translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sat, 9 Mar 2013 11:01:43 +0000 (14:01 +0300)]
Updated Belarusian translation.

11 years agoUpdated Greek translation
Dimitris Spingos [Sat, 9 Mar 2013 09:37:03 +0000 (11:37 +0200)]
Updated Greek translation

11 years agoUpdated Polish translation
Piotr Drąg [Fri, 8 Mar 2013 19:46:44 +0000 (20:46 +0100)]
Updated Polish translation

11 years ago[l10n] Updated German translation
Mario Blättermann [Fri, 8 Mar 2013 16:06:53 +0000 (17:06 +0100)]
[l10n] Updated German translation

11 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Fri, 8 Mar 2013 13:37:54 +0000 (10:37 -0300)]
Updated Brazilian Portuguese translation

11 years agoUpdated Thai translation
Theppitak Karoonboonyanan [Fri, 8 Mar 2013 08:46:25 +0000 (15:46 +0700)]
Updated Thai translation

11 years ago[win32] Remove MemoryBarrier() fallback implementation
Behdad Esfahbod [Fri, 8 Mar 2013 01:14:08 +0000 (20:14 -0500)]
[win32] Remove MemoryBarrier() fallback implementation

I added these because the older mingw32 toolchain didn't have
MemoryBarrier().  The newer mingw-w64 toolchain however has.
As reported by John Emmas this was causing build failure with
MSVC because of inline issues.  But that reminded me that we
may be taking this path even if the system implements
MemoryBarrier as a function, which is a waste.  So, just remove
it.

11 years agoUpdated Galician translations
Fran Diéguez [Thu, 7 Mar 2013 23:49:41 +0000 (00:49 +0100)]
Updated Galician translations

11 years agoFix a mixup of singular and plural
Matthias Clasen [Thu, 7 Mar 2013 21:44:36 +0000 (16:44 -0500)]
Fix a mixup of singular and plural

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=695339

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Thu, 7 Mar 2013 13:20:49 +0000 (16:20 +0300)]
Updated Belarusian translation.

11 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Thu, 7 Mar 2013 03:31:42 +0000 (00:31 -0300)]
Updated Brazilian Portuguese translation

11 years agotests/appinfo: Fix a typo
Jasper St. Pierre [Thu, 7 Mar 2013 01:32:14 +0000 (20:32 -0500)]
tests/appinfo: Fix a typo

The environment variable name is BLA, not BAR, so if BAR is
set for some strange reason, the test fails.

11 years ago[l10n] Updated German translation
Mario Blättermann [Tue, 5 Mar 2013 21:33:18 +0000 (22:33 +0100)]
[l10n] Updated German translation

11 years agounicode: Allow noncharacters
Christian Persch [Mon, 25 Feb 2013 13:48:14 +0000 (14:48 +0100)]
unicode: Allow noncharacters

Implement unicode corrigendum #9.

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

11 years agobase64: Fix g_base64_decode_step ()
Ognyan Tonchev [Thu, 28 Feb 2013 17:27:14 +0000 (18:27 +0100)]
base64: Fix g_base64_decode_step ()

Do not produce invalid data if there was padding character in the
previous sequence.

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

11 years agobase64: Add tests for incremental decoding with very small block size
Colin Walters [Fri, 1 Mar 2013 18:29:29 +0000 (13:29 -0500)]
base64: Add tests for incremental decoding with very small block size

At the moment, sizes 1-3 are commented out since they fail, but
a future patch will fix that.

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

11 years agodesktopappinfo: check whether the specified executable is valid
Cosimo Cecchi [Fri, 4 May 2012 21:51:35 +0000 (17:51 -0400)]
desktopappinfo: check whether the specified executable is valid

Before declaring the desktop file as valid, make sure the referenced
application actually exists in path and the commandline is not
malformed.

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

11 years ago[l10n] Updated German translation
Mario Blättermann [Sun, 3 Mar 2013 21:11:21 +0000 (22:11 +0100)]
[l10n] Updated German translation

11 years agoUpdate for 2.37.9
Matthias Clasen [Sat, 2 Mar 2013 14:25:48 +0000 (09:25 -0500)]
Update for 2.37.9

11 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 2 Mar 2013 13:42:13 +0000 (20:42 +0700)]
Updated Vietnamese translation

11 years agopo/vi: import from Damned Lies
Nguyễn Thái Ngọc Duy [Sat, 2 Mar 2013 13:37:35 +0000 (20:37 +0700)]
po/vi: import from Damned Lies

11 years agoMake GList more robust
Matthias Clasen [Sat, 2 Mar 2013 00:11:11 +0000 (19:11 -0500)]
Make GList more robust

g_list_delete_link was silently ignoring a NULL link before
the last change. Make it do so again, since we've found callers
that rely on this.

11 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Fri, 1 Mar 2013 14:23:13 +0000 (22:23 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

11 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Fri, 1 Mar 2013 09:35:30 +0000 (06:35 -0300)]
Updated Brazilian Portuguese translation

11 years agoFix gspawn-win32-helper.c with newer Microsoft CRTs
Chun-wei Fan [Tue, 26 Feb 2013 04:38:57 +0000 (12:38 +0800)]
Fix gspawn-win32-helper.c with newer Microsoft CRTs

The newer Microsoft CRTs (8.0/2005 and later) impose much stricter
(paranoid) checks on close() being doubly called and the use of
invalid file descriptors.  This makes the calls on the file descriptors
use more caution when using them and only call close() when necessary.

This also adds an (empty) invalid parameter handler* as required by the
newer Microsoft CRTs to prevent the system from aborting the process
when we are checking whether a file descriptor is valid.

[*]: http://msdn.microsoft.com/en-us/library/a9yf33zb.aspx

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

11 years agoUpdate config.h.win32.in
Chun-wei Fan [Fri, 1 Mar 2013 08:11:24 +0000 (16:11 +0800)]
Update config.h.win32.in

Add entry for __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, to better reflect the
entries of items in config.h.in.  We are not currently defining this here
as the pre-configured config.h.win32.in is primarily meant for Visual
Studio builds of GLib-the MinGW/GCC/Clang builds of GLib will normally
use the autotools builds, which should give the correct config.h entries
upon running ./configure.

11 years agoUpdate Simplified Chinese translation
Wylmer Wang [Thu, 28 Feb 2013 13:07:02 +0000 (21:07 +0800)]
Update Simplified Chinese translation

11 years agobuild: Add --disable-compile-warnings
Colin Walters [Tue, 26 Feb 2013 16:19:51 +0000 (11:19 -0500)]
build: Add --disable-compile-warnings

Some (broken) toolchains for example trip up
-Werror=missing-prototypes in system headers.  This patch allows
people to skip the formerly hardcoded "baseline" warnings.

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

11 years agoMinor
Behdad Esfahbod [Tue, 26 Feb 2013 04:08:43 +0000 (23:08 -0500)]
Minor

11 years ago[win32] Fix atomic ops on mingw*
Behdad Esfahbod [Tue, 26 Feb 2013 03:48:03 +0000 (22:48 -0500)]
[win32] Fix atomic ops on mingw*

Bug 682896 - glib doesn't build on mingw32

11 years ago[win32] Add fallback implementations for gatomic.c on mingw32
Behdad Esfahbod [Tue, 26 Feb 2013 03:01:11 +0000 (22:01 -0500)]
[win32] Add fallback implementations for gatomic.c on mingw32

Bug 682896 - glib doesn't build on mingw32

11 years agoPunjabi: Translation updated (aalam)
A S Alam [Tue, 26 Feb 2013 01:48:28 +0000 (07:18 +0530)]
Punjabi: Translation updated (aalam)

11 years agoGList: be more robust
Matthias Clasen [Sun, 24 Feb 2013 21:54:09 +0000 (22:54 +0100)]
GList: be more robust

We can detect list corruption in some cases. The new test case
demonstrates a case where we can warn instead of silently corrupt
the list. This was pointed out by Steve Grubb.

Also, use the same auxiliary routine in all places where we unlink
a list element.

11 years agogtestutils: fix two GLIB_AVAILABLE flags
Dan Winship [Sun, 24 Feb 2013 14:02:10 +0000 (15:02 +0100)]
gtestutils: fix two GLIB_AVAILABLE flags

g_test_expect_message() and g_test_assert_expected_messages() appeared
in 2.34

11 years agoUpdated Slovak translation
Ján Kyselica [Fri, 22 Feb 2013 22:27:10 +0000 (22:27 +0000)]
Updated Slovak translation

11 years agoUpdated Uyghur translation
Gheyret Kenji [Fri, 22 Feb 2013 13:52:26 +0000 (22:52 +0900)]
Updated Uyghur translation

Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
11 years agogsignal: improve warning output
Ryan Lortie [Thu, 21 Feb 2013 11:25:26 +0000 (11:25 +0000)]
gsignal: improve warning output

When looking up signals by name (to connect, for example) and the named
signal cannot be found on the given instance, report the type of the
instance.

This is quite a lot more useful as a diagnostic message than only a
memory address.

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

11 years agosignals: Ensure we ref handler in emission fast path
Alexander Larsson [Thu, 21 Feb 2013 15:10:36 +0000 (16:10 +0100)]
signals: Ensure we ref handler in emission fast path

We need to keep a reference to the handler in the fast path, just like
in the slow path, otherwise if another thread disconnects the handler
we may destroy the closure while we're using it without the lock held.

We also move the freeing of the instance to after the emission is totally
done as the handler_unref_R (and the tracepoint) reference it.

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

11 years agosignals: No need to use atomics for Handler refcount
Alexander Larsson [Thu, 21 Feb 2013 15:06:24 +0000 (16:06 +0100)]
signals: No need to use atomics for Handler refcount

handler_ref and handler_unref_R are always called with the signal
lock held. This is obvious for handler_unref_R as it even sometimes
drops this lock, and can be verified quickly for handler_ref by looking
at all call sites.

This improves the performace about 6% on the emit-handled and the
emit-handled-generic tests.

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

11 years agoGApplication: document IS_SERVICE timeout properly
Ryan Lortie [Thu, 21 Feb 2013 14:58:32 +0000 (14:58 +0000)]
GApplication: document IS_SERVICE timeout properly

The documentation was suggesting that using G_APPLICATION_IS_SERVICE
would automatically set an inactivity timeout (ie: app stays around for
a while after the use count drops to zero).

In reality, it only adds an initial 10 second wait for the first
activation message to arrive after which it uses the normal inactivity
timeout mechanism.

11 years agothreads: don't do rlimit test when running as root
Ryan Lortie [Thu, 21 Feb 2013 10:19:27 +0000 (10:19 +0000)]
threads: don't do rlimit test when running as root

Linux CAP_SYS_RESOURCE overrides RLIMIT_NPROC so we probably shouldn't
test thread creation failure when running the test as root...

11 years agoGNetworkMonitorBase: implement can_reach_async
Dan Winship [Tue, 19 Feb 2013 21:12:30 +0000 (16:12 -0500)]
GNetworkMonitorBase: implement can_reach_async

Implement the g_network_monitor_can_reach_async() rather than falling
back to the default implementation, which calls the sync version (not
in a thread).

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

11 years agog_network_monitor_base_can_reach: Check for default route after enumerating.
Matthew Barnes [Tue, 19 Feb 2013 16:18:11 +0000 (11:18 -0500)]
g_network_monitor_base_can_reach: Check for default route after enumerating.

Enumerate the GSocketConnectable before checking for a default route.
For some connectable types this will involve a DNS lookup.  This will
elminate false positives for hosts behind a VPN since DNS lookup will
fail if the VPN is not connected.

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

11 years agoGNetworkAddress: drop cached addresses on resolver reload
Dan Winship [Tue, 19 Feb 2013 20:19:22 +0000 (15:19 -0500)]
GNetworkAddress: drop cached addresses on resolver reload

If the resolver reloads (ie, if /etc/resolv.conf changes),
GNetworkAddress needs to re-resolve its addresses the next time it's
enumerated. Otherwise hosts that have different IP addresses inside
and outside a VPN won't work correctly if you hold on to a
GNetworkAddress for them for a long time.

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

11 years agogutils: stop g_get_home_dir() from reading passwd
Ryan Lortie [Mon, 4 Feb 2013 13:41:25 +0000 (14:41 +0100)]
gutils: stop g_get_home_dir() from reading passwd

In the case that the "HOME" environment variable is set (as it is under
normal circumstances), we don't really need to be opening /etc/passwd.

For historical reasons (ie: how we used to ignore $HOME) and due to the
grouping of many unrelated things together (reading username, hostname,
home directory, tmpdir, etc.) into one function we were still opening
/etc/passwd in g_get_home_dir(), even if $HOME was set.

Since earlier commits removed code from it, all that remains in
g_get_any_init_do() is the logic for dealing with $HOME and reading the
password database.

We now split the logic to deal with $HOME into g_get_home_dir().  With
only the password database functionality remaining, g_get_any_init_do()
is renamed to g_get_user_database_entry() and modified not to set global
variables but rather return a struct.  If g_get_home_dir() cannot find
$HOME, it falls back to calling g_get_user_database_entry() and using
the home directory from there.

Use of the 'g_utils_global' lock is further reduced by using
g_once_init_enter() to protect the critical sections in each of
g_get_user_database_entry() and g_get_home_dir().

Finally, the g_get_user_name() and g_get_real_name() functions are
modified to use the new regime.

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

11 years agogutils: replace direct references to g_home_dir
Ryan Lortie [Mon, 4 Feb 2013 13:40:03 +0000 (14:40 +0100)]
gutils: replace direct references to g_home_dir

Some code was directly calling g_get_any_init() and then expecting to be
able to use the static 'g_home_dir' variable directly.  Change these
over to g_get_home_dir() instead.

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

11 years agogutils: split out g_get_tmp_dir()
Ryan Lortie [Mon, 4 Feb 2013 13:17:08 +0000 (14:17 +0100)]
gutils: split out g_get_tmp_dir()

Remove the code for getting the tmpdir from g_get_any_init_do() and
outside of the g_utils_global lock.

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

11 years agogutils: split out g_get_host_name()
Ryan Lortie [Mon, 4 Feb 2013 12:49:06 +0000 (13:49 +0100)]
gutils: split out g_get_host_name()

Remove the code for getting the hostname from g_get_any_init_do() and
outside of the g_utils_global lock.

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

11 years agowin32: Drop old codepage ABI from gutils.c
Ryan Lortie [Mon, 4 Feb 2013 13:04:05 +0000 (14:04 +0100)]
win32: Drop old codepage ABI from gutils.c

This is a source-compatible change and only breaks ABI with respect to
truly ancient binaries (and those binaries are already broken for other
reasons).

Back in the day, functions like g_get_user_name() used to return strings
in the system codepage instead of utf8 (as they do today).

It was decided at some point to change these functions to return utf8,
breaking source compatibility but keeping ABI compatibility.  This was
done by exporting new symbols with names like g_get_user_name_utf8() and
using a #define of the old name over to the new name (so that newly
compiled code would link against the _utf8 version, but old binaries
would continue to use the non-utf8 variant).

Meanwhile, glib has undergone several ABI breaks on Windows since, so
those old binaries don't work anymore.

Start to clean up this mess by removing the #define renaming.  New
binaries calling g_get_user_name() will now link against
g_get_user_name() and it will return utf8.

We must keep the functions like g_get_user_name_utf8() for binary
compatibility with recently built programs (ie: ones built with the
renaming).  Nobody should have ever been calling these directly and of
course they can return utf8, so just add them as internal wrappers in the
.c file and declare them _GLIB_EXTERN there.

One day, if we feel like breaking Windows ABI again, we can finish the
cleanup by dropping the wrappers.  There is some talk of introducing
something like 'ABI compatible for two years' and this change would be
compatible with such a regime.

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

11 years agoGOutputStream: Remove unused SpliceUserData struct
Mike Ruprecht [Mon, 18 Feb 2013 13:56:05 +0000 (07:56 -0600)]
GOutputStream: Remove unused SpliceUserData struct

11 years agoUpdate Visual Studio property sheets
Chun-wei Fan [Tue, 19 Feb 2013 10:26:30 +0000 (18:26 +0800)]
Update Visual Studio property sheets

"install" gio/gsimpleproxyresolver.h...

11 years ago*bump*
Ryan Lortie [Tue, 19 Feb 2013 10:06:55 +0000 (10:06 +0000)]
*bump*

11 years agoGLib 2.35.8 2.35.8 upstream/2.35.8
Ryan Lortie [Tue, 19 Feb 2013 09:29:28 +0000 (09:29 +0000)]
GLib 2.35.8

11 years agoUpdated Serbian translation
Мирослав Николић [Mon, 18 Feb 2013 09:43:49 +0000 (10:43 +0100)]
Updated Serbian translation

11 years agoUpdated Serbian translation
Мирослав Николић [Mon, 18 Feb 2013 09:38:38 +0000 (10:38 +0100)]
Updated Serbian translation