platform/upstream/glib.git
12 years agogsocket: fix win32 build
Dan Winship [Sun, 4 Sep 2011 12:42:31 +0000 (08:42 -0400)]
gsocket: fix win32 build

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

12 years agoconfigure: fix win32 build
Dan Winship [Sun, 4 Sep 2011 12:42:03 +0000 (08:42 -0400)]
configure: fix win32 build

Only require -lresolv on unix, like before

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

12 years agog_date_time_format: improve support for alt digits
Ryan Lortie [Sun, 4 Sep 2011 00:12:53 +0000 (20:12 -0400)]
g_date_time_format: improve support for alt digits

Improve a few situations where g_date_time_format() was getting the
padding wrong when displaying alt digits (eg: Arabic numerals) for
formatting time.

We now depend on nl_langinfo (_NL_CTYPE_OUTDIGITn_WC) to do the
conversion, which is very likely glibc-specific, but our previous method
relied on a glibc-specific printf() feature, so no harm done there.

Add a configure check for nl_langinfo (_NL_CTYPE_OUTDIGITn_WC).

Uncomment a few testcases that were failing previously.

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

12 years agog_network_address_parse: deprecate symbolic port names
Dan Winship [Sat, 3 Sep 2011 23:49:19 +0000 (19:49 -0400)]
g_network_address_parse: deprecate symbolic port names

(which shouldn't ever have been part of the API. Grr.)

Solaris /etc/services doesn't even have "http", which was causing
tests/network-address to fail...

12 years agogsocket: fix g_socket_details_from_fd() on Solaris
Dan Winship [Sat, 3 Sep 2011 23:14:16 +0000 (19:14 -0400)]
gsocket: fix g_socket_details_from_fd() on Solaris

On Solaris, getsockname() on an unconnected socket gives an addrlen of
0 and doesn't set the sockaddr. So use the SO_DOMAIN sockopt to find
the socket family in that case. (SO_DOMAIN doesn't exist everywhere,
so we can't use it unconditionally. Also, we have to only use it if
getsockname() fails, since SO_DOMAIN returns a bogus value for
accept()ed sockets on both Linux and Solaris...)

12 years agoconfigure: check if -lsocket is needed (for Solaris)
Dan Winship [Sat, 3 Sep 2011 22:37:43 +0000 (18:37 -0400)]
configure: check if -lsocket is needed (for Solaris)

Also, link libgio to -lresolv explicitly, rather than depending on
getting it implicitly via the libasyncns build (which should
eventually be going away).

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

12 years agoRevert "g_date_time_format: support %D"
Ryan Lortie [Sat, 3 Sep 2011 23:44:13 +0000 (19:44 -0400)]
Revert "g_date_time_format: support %D"

This reverts commit 46ce7907720074089040275280bb20208bafeb6a.

git-bz mishap (I think?)

12 years agoMerged improvements from 2-28 branch Brazilian Translations from Adorilson Bezerra...
Og B. Maciel [Sat, 3 Sep 2011 22:39:01 +0000 (18:39 -0400)]
Merged improvements from 2-28 branch Brazilian Translations from Adorilson Bezerra <adorilson@gmail.com>.

12 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Sat, 3 Sep 2011 21:50:36 +0000 (17:50 -0400)]
Updated Brazilian Portuguese translation.

12 years agoUpdate Korean translation
Changwoo Ryu [Sat, 3 Sep 2011 12:15:43 +0000 (21:15 +0900)]
Update Korean translation

12 years agoAdded Norwegian bokmål translation
Kjartan Maraas [Sat, 3 Sep 2011 11:47:44 +0000 (13:47 +0200)]
Added Norwegian bokmål translation

12 years agoUpdated Spanish translation
Jorge González [Sat, 3 Sep 2011 11:38:38 +0000 (13:38 +0200)]
Updated Spanish translation

12 years agogdatetime: Fix locale-changing code
Matthias Clasen [Sat, 3 Sep 2011 03:36:03 +0000 (23:36 -0400)]
gdatetime: Fix locale-changing code

As pointed out by Ryan Lortie, the code didn't actually ever
switch back to the old locale.

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

12 years agog_date_time_format: add standards notes to the doc
Ryan Lortie [Sat, 3 Sep 2011 01:12:16 +0000 (21:12 -0400)]
g_date_time_format: add standards notes to the doc

Explicitly mention C99's strftime() in the documentation for
g_date_time_format() as the one that we aim for compatibility with.
Specifically list the formats we do not support as well as the extra
ones that we borrow from glibc.

12 years agoGDateTime: test _format against strftime()
Ryan Lortie [Sat, 3 Sep 2011 01:04:02 +0000 (21:04 -0400)]
GDateTime: test _format against strftime()

Test g_date_time_format() against strftime().  This test found quite a
few cases of incorrect behaviour on our part (fixes already committed
for those).

12 years agoGDateTime test: plug a couple of leaks
Ryan Lortie [Sat, 3 Sep 2011 01:03:33 +0000 (21:03 -0400)]
GDateTime test: plug a couple of leaks

12 years agog_date_time_format: rip out non-working %W format
Ryan Lortie [Sat, 3 Sep 2011 00:54:51 +0000 (20:54 -0400)]
g_date_time_format: rip out non-working %W format

Our implementation of %W is incorrect.  Nobody should want to use this
format anyway and the implementation is non-trivial, so rip it out
rather than fixing it.

Remove the testcase for %W as well.

12 years agog_date_time_format: clarify documentation
Ryan Lortie [Sat, 3 Sep 2011 00:53:02 +0000 (20:53 -0400)]
g_date_time_format: clarify documentation

Add some clarification to the documentation for %g, %G, %V and %u
formats (which all concern themselves with ISO 8601 week dates).

12 years agog_date_time_format: support %D
Ryan Lortie [Fri, 2 Sep 2011 23:38:45 +0000 (19:38 -0400)]
g_date_time_format: support %D

%D represents the date in mm/dd/yy format.

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

12 years agog_date_time_format: small fixups
Ryan Lortie [Fri, 2 Sep 2011 23:34:33 +0000 (19:34 -0400)]
g_date_time_format: small fixups

Add missing 'break;' from the case: block for %c.  Reorder the cases so
that %F comes before %g/%G and %n comes in its correct alphabetical
order.

12 years agog_date_time_format: fix padding for some formats
Ryan Lortie [Fri, 2 Sep 2011 23:33:32 +0000 (19:33 -0400)]
g_date_time_format: fix padding for some formats

%e is supposed to be space-padded and %W is supposed to be 0-padded

Adjust the testcase accordingly since it expects the wrong behaviour.

12 years agoGDateTime test: don't test removed %N
Ryan Lortie [Sat, 3 Sep 2011 01:02:27 +0000 (21:02 -0400)]
GDateTime test: don't test removed %N

12 years agog_date_time_format: support %g and %G
Ryan Lortie [Fri, 2 Sep 2011 18:53:21 +0000 (14:53 -0400)]
g_date_time_format: support %g and %G

These are the 2-digit and 4-digit ISO week-numbering years.

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

12 years agog_date_time_format: drop %N format
Ryan Lortie [Fri, 2 Sep 2011 17:38:03 +0000 (13:38 -0400)]
g_date_time_format: drop %N format

%N is not specified in any standards document, but we use it to display
the number of microseconds.

The fact that our our current implementation of it is nearly useless
(since it does not zero-pad) coupled with the high chance that a future
version of the C standard may specify it with another meaning means that
we should drop it.

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

12 years agog_date_time_format: support %w
Javier Jardón [Fri, 2 Sep 2011 16:22:14 +0000 (17:22 +0100)]
g_date_time_format: support %w

%w represents the day of the week as a decimal, range 0 to 6,
Sunday being 0.

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

12 years agog_date_time_format: support %C
Javier Jardón [Fri, 2 Sep 2011 16:09:07 +0000 (17:09 +0100)]
g_date_time_format: support %C

%C represents the century number (year/100) as a 2-digit integer

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

12 years agog_date_time_format: support %c
Javier Jardón [Fri, 2 Sep 2011 15:32:21 +0000 (16:32 +0100)]
g_date_time_format: support %c

%c represents the preferred  date  and  time  representation  for the
current locale.

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

12 years agog_date_time_format: support %V
Javier Jardón [Fri, 2 Sep 2011 13:52:37 +0000 (14:52 +0100)]
g_date_time_format: support %V

%V represents the  ISO 8601  week  number of the current year as a
decimal number, range 01 to 53, where week 1 is the  first  week
that  has  at least 4 days in the new year

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

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Fri, 2 Sep 2011 17:56:39 +0000 (20:56 +0300)]
Updated Belarusian translation.

12 years agoUpdate Visual C++ README.txt's a bit
Chun-wei Fan [Fri, 2 Sep 2011 00:39:54 +0000 (08:39 +0800)]
Update Visual C++ README.txt's a bit

LibFFI 3.0.10 is now out officially...

12 years agoUpdated Swedish translation
Daniel Nylander [Thu, 1 Sep 2011 20:24:07 +0000 (22:24 +0200)]
Updated Swedish translation

12 years agoUpdated Swedish translation
Daniel Nylander [Thu, 1 Sep 2011 20:22:32 +0000 (22:22 +0200)]
Updated Swedish translation

12 years agogdbus-codegen: post-process all interfaces when parsing >1 file
Will Thompson [Thu, 1 Sep 2011 18:28:57 +0000 (14:28 -0400)]
gdbus-codegen: post-process all interfaces when parsing >1 file

This also fixes a crash when you run gdbus-codegen with no arguments.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 31 Aug 2011 19:17:10 +0000 (21:17 +0200)]
Updated Norwegian bokmål translation

12 years agoRevert "gdatetime: Add g_date_time_source_new()"
Ryan Lortie [Wed, 31 Aug 2011 01:31:40 +0000 (21:31 -0400)]
Revert "gdatetime: Add g_date_time_source_new()"

This reverts three commits:

 - 1feb752996b404965a2f58b29a569a273d4374fa
 - 5763c631473539746646697e6a775f6eacaa08e2
 - 21a538934091e1449e0479daf066fa20df2dc2ef

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

12 years agoMake GMainLoop, GMainContext and GSource boxed types
Pavel Holejsovsky [Tue, 30 Aug 2011 14:20:55 +0000 (16:20 +0200)]
Make GMainLoop, GMainContext and GSource boxed types

Also add some annotations for better usage of these types in bindings.

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

12 years agoUpdate Win32 and VS Readme files
Chun-wei Fan [Wed, 31 Aug 2011 05:01:04 +0000 (13:01 +0800)]
Update Win32 and VS Readme files

Tell people about the GNOME Live! page that outlines building
GLib and its dependencies with Visual C++.

12 years agoes.po: stop translating "kB" to "KiB", etc.
Ryan Lortie [Wed, 31 Aug 2011 01:13:08 +0000 (21:13 -0400)]
es.po: stop translating "kB" to "KiB", etc.

"kB" is used by GLib to mean 1000 bytes exactly -- not 1024.  It is
therefore incorrect to translate this to KiB.  Same for the other units.

The original commit ef3e5917ca1239b39db2cb433c4306d0152f18f5 fixing this
problem was reverted, so I'm applying it again.

See http://mail.gnome.org/archives/gnome-i18n/2011-July/msg00078.html
for more information.

12 years agog_get_monotonic_time: fix race condition
Dan Winship [Tue, 16 Aug 2011 23:12:59 +0000 (19:12 -0400)]
g_get_monotonic_time: fix race condition

Since there was nothing guaranteeing synchronization of the
assignments to checked and clockid, it would be possible for one
thread to set clockid = CLOCK_MONOTONIC, and for another thread to see
checked = TRUE but still clockid = CLOCK_REALTIME.

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

12 years agounix signal watch: make API match other sources
Ryan Lortie [Tue, 30 Aug 2011 13:45:52 +0000 (09:45 -0400)]
unix signal watch: make API match other sources

Change the unix signal watch API to match other sources in both
available functions, names of those functions and order of the
parameters to the _full function.

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

12 years agoglib.doap: Add glib to "platform" category
Javier Jardón [Tue, 30 Aug 2011 21:52:59 +0000 (22:52 +0100)]
glib.doap: Add glib to "platform" category

12 years agoUpdated Spanish translation
Jorge González [Tue, 30 Aug 2011 17:14:04 +0000 (19:14 +0200)]
Updated Spanish translation

12 years agoUpdated Spanish translation
Jorge González [Tue, 30 Aug 2011 17:00:15 +0000 (19:00 +0200)]
Updated Spanish translation

12 years agogio: Add GTlsInteraction interaction method invocation guarantees
Stef Walter [Sun, 28 Aug 2011 18:24:56 +0000 (20:24 +0200)]
gio: Add GTlsInteraction interaction method invocation guarantees

 * Add 'invoke' style method, which can be used to call an interaction
   from any thread. The interaction will be run in the appropriate
   #GMainContext
 * Sync methods can be called whether main loop is running or not.
 * Derived classes can choose to implement only sync or async
   interaction method, and the invoke method will fill in the blanks.
 * Documentation for the above.
 * Tests for the above.

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

12 years agoglocalfile: Fix the grammar
Tomas Bzatek [Tue, 30 Aug 2011 16:00:49 +0000 (18:00 +0200)]
glocalfile: Fix the grammar

12 years agoPost-release version bump
Matthias Clasen [Tue, 30 Aug 2011 15:44:57 +0000 (11:44 -0400)]
Post-release version bump

12 years ago2.29.18 2.29.18
Matthias Clasen [Tue, 30 Aug 2011 15:10:40 +0000 (11:10 -0400)]
2.29.18

12 years agogio: Error out when we cannot modify a GAppInfo
Bastien Nocera [Fri, 26 Aug 2011 15:36:12 +0000 (16:36 +0100)]
gio: Error out when we cannot modify a GAppInfo

g_desktop_app_info_set_as_default_for_type() and
g_desktop_app_info_set_as_last_used_for_type () require the
application's ID, but depending on how the GAppInfo was created,
we might not be have one, and would thus silently fail to set
the default application, or last used application.

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

12 years agoMore updates
Matthias Clasen [Tue, 30 Aug 2011 14:25:42 +0000 (10:25 -0400)]
More updates

12 years agogio/tests/gdbus-peer: make this work on non-Linux unixes
Dan Winship [Sat, 27 Aug 2011 15:33:43 +0000 (11:33 -0400)]
gio/tests/gdbus-peer: make this work on non-Linux unixes

The test was using a socket in a temporary directory, but not actually
creating that temporary directory. This worked fine on Linux since it
actually ended up using an abstract socket instead, but failed on
unixes without abstract sockets.

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

12 years agoAdd a forgotten section
Matthias Clasen [Tue, 30 Aug 2011 04:00:37 +0000 (00:00 -0400)]
Add a forgotten section

12 years agoMore doc additions
Matthias Clasen [Tue, 30 Aug 2011 04:00:21 +0000 (00:00 -0400)]
More doc additions

12 years agoFix a doc comment
Matthias Clasen [Tue, 30 Aug 2011 03:55:48 +0000 (23:55 -0400)]
Fix a doc comment

12 years agoClean up gobject docs
Matthias Clasen [Tue, 30 Aug 2011 03:42:24 +0000 (23:42 -0400)]
Clean up gobject docs

12 years agoCorrect a doc typo
Matthias Clasen [Tue, 30 Aug 2011 03:36:27 +0000 (23:36 -0400)]
Correct a doc typo

12 years agoRemove no-longer existing api
Matthias Clasen [Tue, 30 Aug 2011 03:33:48 +0000 (23:33 -0400)]
Remove no-longer existing api

12 years agoGSocketAddress: create IPv4 addresses for IPv6 mapped-IPv4 addresses
Dan Winship [Sat, 27 Aug 2011 23:46:51 +0000 (19:46 -0400)]
GSocketAddress: create IPv4 addresses for IPv6 mapped-IPv4 addresses

IPv6-mapped-IPv4 addresses are annoying. Just translate them to real
IPv4 addresses.

based on a patch from Jonny Lamb
https://bugzilla.gnome.org/show_bug.cgi?id=646082

12 years agoAdd a 'since 2.30' index to gobject docs
Matthias Clasen [Tue, 30 Aug 2011 01:43:50 +0000 (21:43 -0400)]
Add a 'since 2.30' index to gobject docs

12 years agoDon't distribute MAINTAINERS
Matthias Clasen [Mon, 29 Aug 2011 23:02:33 +0000 (19:02 -0400)]
Don't distribute MAINTAINERS

...it does not exist anymore.

12 years agoFirst round of NEWS updates for 2.29.18
Matthias Clasen [Mon, 29 Aug 2011 22:29:16 +0000 (18:29 -0400)]
First round of NEWS updates for 2.29.18

12 years agoGDBusObjectManagerServer: Add locking
David Zeuthen [Mon, 29 Aug 2011 20:46:45 +0000 (16:46 -0400)]
GDBusObjectManagerServer: Add locking

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusObjectManagerClient: Add locking
David Zeuthen [Mon, 29 Aug 2011 20:20:50 +0000 (16:20 -0400)]
GDBusObjectManagerClient: Add locking

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusObjectProxy: Add locking
David Zeuthen [Mon, 29 Aug 2011 19:29:27 +0000 (15:29 -0400)]
GDBusObjectProxy: Add locking

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoDon't call close on invalid fds
Matthias Clasen [Mon, 29 Aug 2011 19:18:29 +0000 (15:18 -0400)]
Don't call close on invalid fds

If an fd is -1, don't call close() on it, since that leads to
EBDAF and complaints from valgrind.

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

12 years agoGDBusObjectSkeleton: Add locking
David Zeuthen [Mon, 29 Aug 2011 19:19:42 +0000 (15:19 -0400)]
GDBusObjectSkeleton: Add locking

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusInterfaceSkeleton: Add locking
David Zeuthen [Mon, 29 Aug 2011 18:23:02 +0000 (14:23 -0400)]
GDBusInterfaceSkeleton: Add locking

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoPrint out URL to HTML coverage report after 'make lcov'
Stef Walter [Sun, 28 Aug 2011 04:58:29 +0000 (06:58 +0200)]
Print out URL to HTML coverage report after 'make lcov'

* For easy clicking

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

12 years agogdatetime: Tweak g_date_time_source_new() documentation
Colin Walters [Mon, 29 Aug 2011 19:05:34 +0000 (15:05 -0400)]
gdatetime: Tweak g_date_time_source_new() documentation

12 years agoSpelling fixes
Matthias Clasen [Mon, 29 Aug 2011 18:49:32 +0000 (14:49 -0400)]
Spelling fixes

Spelling fixes in comments and docs, provided by
Kjartan Maraas in bug 657336.

12 years agoAdd Linux timerfd_create() backend for g_date_time_source_new()
Colin Walters [Wed, 17 Aug 2011 17:09:27 +0000 (13:09 -0400)]
Add Linux timerfd_create() backend for g_date_time_source_new()

This makes the source efficient on Linux.

Tested on Fedora 15 x86_64 + updates, kernel-2.6.40-4.fc15.x86_64
Also tested fallback code for unsupported flag TFD_TIMER_CANCEL_ON_SET
on kernel 2.6.38.

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

12 years agogdatetime: Add g_date_time_source_new()
Colin Walters [Sat, 13 Aug 2011 12:55:20 +0000 (08:55 -0400)]
gdatetime: Add g_date_time_source_new()

Several different codebases in GNOME want to implement wall clocks.
While we could pretty easily share a private library, it's not a
substantial amount of code, and GLib already has a lot of the
necessary system-specific detection and handling infrastructure.

Note this initial implementation just wakes up once a second in the
cancel_on_set case; we'll add the Linux-specific handling in a
subsequent commit.

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

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Mon, 29 Aug 2011 11:18:28 +0000 (19:18 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoUpdated Russian translation
Yuri Myasoedov [Sun, 28 Aug 2011 18:24:49 +0000 (22:24 +0400)]
Updated Russian translation

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sun, 28 Aug 2011 17:07:09 +0000 (19:07 +0200)]
Updated Norwegian bokmål translation

12 years agoUpdated galician translations
Fran Dieguez [Sun, 28 Aug 2011 14:01:03 +0000 (16:01 +0200)]
Updated galician translations

12 years agogio/tests/gtlsconsoleinteraction: Work around missing getpass() on win32
Kalev Lember [Mon, 15 Aug 2011 13:09:18 +0000 (16:09 +0300)]
gio/tests/gtlsconsoleinteraction: Work around missing getpass() on win32

Loosely based on a patch by Sam Thursfield <ssssam@gmail.com>.
https://bugzilla.gnome.org/show_bug.cgi?id=656341

12 years agoUpdated Spanish translation
Jorge González [Sun, 28 Aug 2011 08:14:54 +0000 (10:14 +0200)]
Updated Spanish translation

12 years agoUpdated Spanish translation
Jorge González [Sun, 28 Aug 2011 08:08:05 +0000 (10:08 +0200)]
Updated Spanish translation

12 years agoFix symbol lists
Matthias Clasen [Sun, 28 Aug 2011 03:30:43 +0000 (23:30 -0400)]
Fix symbol lists

12 years agoSpell out file descriptors in a message
Matthias Clasen [Sat, 27 Aug 2011 17:18:45 +0000 (13:18 -0400)]
Spell out file descriptors in a message

Translators don't necessarily know what 'fds' are.
Pointed out in bug 657454.

12 years agoGDBusMessage: Use ngettext() where appropriate
Matthias Clasen [Sat, 27 Aug 2011 17:15:42 +0000 (13:15 -0400)]
GDBusMessage: Use ngettext() where appropriate

Pointed out in bug 657452.

12 years agogsocketaddress: don't return ABSTRACT if the OS doesn't support it
Dan Winship [Sat, 27 Aug 2011 16:08:32 +0000 (12:08 -0400)]
gsocketaddress: don't return ABSTRACT if the OS doesn't support it

FreeBSD apparently has non-0-length (but nameless) ANONYMOUS sockets.
Fix the heuristics here.

12 years agogunixcredentialsmessage: fix this on FreeBSD
Dan Winship [Sat, 27 Aug 2011 15:36:05 +0000 (11:36 -0400)]
gunixcredentialsmessage: fix this on FreeBSD

pointed out by Henry Hu
https://bugzilla.gnome.org/show_bug.cgi?id=628904

12 years agoGSocket: fix GIOCondition on timed-out socket operation
Dan Winship [Sat, 27 Aug 2011 13:59:02 +0000 (09:59 -0400)]
GSocket: fix GIOCondition on timed-out socket operation

The docs for g_socket_set_timeout() claimed that if an async operation
timed out, the GIOCondition passed to the source callback would be
G_IO_IN or G_IO_OUT (thus prompting the caller to call
g_socket_receive/send and get a G_IO_ERROR_TIMED_OUT), but in fact it
ended up being 0, and gio/tests/socket.c was erroneously testing for
that instead of the correct value. Fix this.

12 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Fri, 26 Aug 2011 15:07:57 +0000 (11:07 -0400)]
Updated Brazilian Portuguese translation.

12 years agoFixed typo: s/ether/enter.
Og B. Maciel [Fri, 26 Aug 2011 15:07:32 +0000 (11:07 -0400)]
Fixed typo: s/ether/enter.

12 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Fri, 26 Aug 2011 15:06:13 +0000 (11:06 -0400)]
Updated Brazilian Portuguese translation.

12 years agogiomodule: When loading GIO_EXTRA_MODULES skip duplicates
Stef Walter [Fri, 26 Aug 2011 13:27:19 +0000 (15:27 +0200)]
giomodule: When loading GIO_EXTRA_MODULES skip duplicates

 * Load modules from paths listed in GIO_EXTRA_MODULES environment
   variable first.
 * Ignore duplicate modules based on module basename.
 * Add the concept of GIOModuleScope which allows other callers to
   skip duplicate loaded modules, or block specific modules based on
   basename.
 * Document behavior.

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

12 years agoUpdated Brazilian Portuguese translation.
Og B. Maciel [Fri, 26 Aug 2011 13:04:41 +0000 (09:04 -0400)]
Updated Brazilian Portuguese translation.

12 years agoMake GTlsInteraction virtual methods cancellable
Stef Walter [Sat, 13 Aug 2011 12:03:53 +0000 (14:03 +0200)]
Make GTlsInteraction virtual methods cancellable

 * Add cancellable argument to g_tls_interaction_ask_password
   and g_tls_interaction_ask_password_async.
 * This is API breakage, but this API has not yet been released
   in a stable release (and very unlikely used yet).
 * Since we're breaking unreleased API, expand amount of padding
   on GTlsInteractionClass because we're going to need it.

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

12 years agoAdd gdbus-codegen to glib-zip.in
Dieter Verfaillie [Tue, 23 Aug 2011 05:37:05 +0000 (07:37 +0200)]
Add gdbus-codegen to glib-zip.in

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

12 years agoMake gdbus-codegen 'relocatable' at runtime on Windows.
Dieter Verfaillie [Tue, 23 Aug 2011 05:36:47 +0000 (06:36 +0100)]
Make gdbus-codegen 'relocatable' at runtime on Windows.

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

12 years agogdbus-codegen: Revert to using /usr/bin/env for Python
Dieter Verfaillie [Thu, 25 Aug 2011 09:45:40 +0000 (10:45 +0100)]
gdbus-codegen: Revert to using /usr/bin/env for Python

After a lot of discussion, we decided /usr/bin/env is the most
flexible for now.

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

12 years agoIntroduce the UNINSTALLED_GLIB_SRCDIR environment variable
Dieter Verfaillie [Tue, 23 Aug 2011 15:38:36 +0000 (16:38 +0100)]
Introduce the UNINSTALLED_GLIB_SRCDIR environment variable

This makes it possible to avoid setting PYTHONPATH in
Makefile.am files.

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

12 years agoIntroduce the UNINSTALLED_GLIB_BUILDDIR environment variable
Dieter Verfaillie [Tue, 23 Aug 2011 15:37:35 +0000 (17:37 +0200)]
Introduce the UNINSTALLED_GLIB_BUILDDIR environment variable

This makes it possible to also use relative imports for
gdbus-codegen's config module.

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

12 years agoUse relative imports for the gdbus/codegen package
Dieter Verfaillie [Tue, 23 Aug 2011 05:35:01 +0000 (07:35 +0200)]
Use relative imports for the gdbus/codegen package

But not yet for the config module (but is taken care
of in a followup patch).

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

12 years agoAvoid using - (hyphen) in gdbus-codegen directory name
Dieter Verfaillie [Tue, 23 Aug 2011 05:32:18 +0000 (07:32 +0200)]
Avoid using - (hyphen) in gdbus-codegen directory name

It's an invalid character in Python module names and prevents us from
being able to import it.

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

12 years agoUse detected PYTHON shebang in gdbus-codegen
Ionut Biru [Wed, 24 Aug 2011 19:09:53 +0000 (19:09 +0000)]
Use detected PYTHON shebang in gdbus-codegen

Change the hardcoded /usr/bin/python shebag from gdbus-codegen.in into
@PYTHON@. Is used in Makefile.am to use detected python binary.

$(AM_V_GEN) sed -e 's,@libdir\@,$(libdir),' -e 's,@PYTHON\@,$(PYTHON),'
$< > $@.tmp && mv $@.tmp $@

Signed-off-by: Ionut Biru <ibiru@archlinux.org>
https://bugzilla.gnome.org/show_bug.cgi?id=657274

12 years agoUpdated Russian translation
Yuri Myasoedov [Thu, 25 Aug 2011 14:59:56 +0000 (18:59 +0400)]
Updated Russian translation

12 years agoglib.doap: Fix download location
Javier Jardón [Thu, 25 Aug 2011 11:26:27 +0000 (12:26 +0100)]
glib.doap: Fix download location