platform/upstream/glib.git
13 years agoUpdated Spanish translation
Jorge González [Sun, 28 Aug 2011 08:08:05 +0000 (10:08 +0200)]
Updated Spanish translation

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

13 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.

13 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.

13 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.

13 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

13 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.

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

13 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.

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

13 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

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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

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

13 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

13 years agoGCancellable: Small annotation additions
Matthias Clasen [Thu, 25 Aug 2011 01:23:36 +0000 (21:23 -0400)]
GCancellable: Small annotation additions

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

13 years agoUpdated Galician translations
Fran Dieguez [Wed, 24 Aug 2011 18:59:50 +0000 (20:59 +0200)]
Updated Galician translations

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 24 Aug 2011 17:57:14 +0000 (19:57 +0200)]
Updated Spanish translation

13 years agogfileutils: fix docs/annotations for temp file methods
Dan Winship [Mon, 22 Aug 2011 15:37:48 +0000 (11:37 -0400)]
gfileutils: fix docs/annotations for temp file methods

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

13 years agoAdd DOAP file and remove MAINTAINERS
Emmanuele Bassi [Wed, 24 Aug 2011 17:20:32 +0000 (18:20 +0100)]
Add DOAP file and remove MAINTAINERS

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 24 Aug 2011 13:38:46 +0000 (15:38 +0200)]
Updated Norwegian bokmål translation

13 years agoUpdated Swedish translation
Daniel Nylander [Wed, 24 Aug 2011 07:19:20 +0000 (09:19 +0200)]
Updated Swedish translation

13 years agoBug 657206 — GInputStream leaked in g_file_icon_load_async()
Philip Withnall [Tue, 23 Aug 2011 22:47:54 +0000 (23:47 +0100)]
Bug 657206 — GInputStream leaked in g_file_icon_load_async()

Add a missing unref to g_file_icon_load_async().

Closes: bgo#657206

13 years agoGIO: Add more missing GI annotations
Eduardo Lima Mitev [Thu, 29 Jul 2010 11:59:42 +0000 (13:59 +0200)]
GIO: Add more missing GI annotations

 - g_io_extension_point_register()
 - g_io_extension_point_lookup()
 - g_io_extension_point_implement()

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

13 years agoUpdated Serbian translation
Мирослав Николић [Tue, 23 Aug 2011 17:02:55 +0000 (19:02 +0200)]
Updated Serbian translation

13 years agogdbus-codegen: update comment in code to reflect reality
David Zeuthen [Tue, 23 Aug 2011 16:57:14 +0000 (12:57 -0400)]
gdbus-codegen: update comment in code to reflect reality

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Rework C property getters
David Zeuthen [Tue, 23 Aug 2011 16:46:32 +0000 (12:46 -0400)]
gdbus-codegen: Rework C property getters

Rework property getters to use a vfunc so we can take the fast path
and avoid allocating memory for both the skeleton and the proxy
cases. This requires some special case because of how GVariant expects
you to free memory in some cases, see #657100. Add test cases for
this.

Document the _get_ functions as not being thread-safe and also
generate _dup_ C getters (which are thread-safe).

Mark all the generated _get_, _dup_ and _set_ as (skip) as non-C
languages should just use GObject properties and not the (socalled)
"C binding".

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agopo: add missing gtls files to POTFILES.in
Dan Winship [Tue, 23 Aug 2011 12:28:15 +0000 (08:28 -0400)]
po: add missing gtls files to POTFILES.in

Pointed out by Daniel Mustieles
https://bugzilla.gnome.org/show_bug.cgi?id=657138

13 years agogdatetime: Don't include langinfo.h unconditionally
Matthias Clasen [Tue, 23 Aug 2011 02:01:39 +0000 (22:01 -0400)]
gdatetime: Don't include langinfo.h unconditionally

It doesn't exist on Windows.

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

13 years agoUpdate VS property sheets
Chun-wei Fan [Mon, 22 Aug 2011 16:22:06 +0000 (00:22 +0800)]
Update VS property sheets

Stop the "installation" of gio/gtimezonemonitor.h as it has been removed
from GIO (commit 5b68b49b2072)

13 years agoUpdate GLib Visual C++ Projects
Chun-wei Fan [Mon, 22 Aug 2011 16:08:24 +0000 (00:08 +0800)]
Update GLib Visual C++ Projects

Define USE_SYSTEM_PCRE for all configurations which uses the PCRE that
was already built and "installed" beforehand (i.e. the *_ExtPCRE
configurations) so that the compilation will not pick up the
GLib-bundled pcre.h when one wants to use the PCRE "installation" on
his/her system.

13 years agoUpdate config.h.win32.in
Chun-wei Fan [Mon, 22 Aug 2011 16:03:51 +0000 (00:03 +0800)]
Update config.h.win32.in

Make the pre-configured config.h(.win32.in) for Windows more like the
config.h that would be produced during ./configure on Windows systems.

13 years agoGTimeZoneMonitor: Revert addition of this class
Colin Walters [Fri, 19 Aug 2011 07:27:16 +0000 (03:27 -0400)]
GTimeZoneMonitor: Revert addition of this class

The main rationale for adding it was to avoid having gnome-shell
mmap'ing /etc/localtime once a second.  However, we can just as easily
run inotify there, and given no one else was clamoring for a way to
detect when the time zone changes, I don't see a need for public API
here - at least not yet.

In the bigger picture, I just don't believe that the vast majority of
applications are going to go out of their way to instantiate and keep
around a random GTimeZoneMonitor class.  And if they do, it's has the
side effect that for other bits of code in the process, local GDateTime
instances may start varying again!

So, if code can't rely on local GDateTime instances being in a
consistent state anyways, let's just do that always.  The
documentation now says that this is the case.  Applications have
always been able to work in a consistent local time zone by
instantiating a zone and then using it for GDateTime constructors.

We fix the "gnome-shell stats /etc/localtime once a second" issue by
using timerfd (in glib) and inotify (in gnome-shell).

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

13 years agoUpdate VS property sheets
Chun-wei Fan [Mon, 22 Aug 2011 14:35:31 +0000 (22:35 +0800)]
Update VS property sheets

-Added glib/ghmac.h to the list of files to copy during the "install" stage
-Cleaned up a bit (glib-2.0->glib-$(ApiVersion), where $(ApiVersion) is
 2.0)

13 years agogmain: Clarify that timeouts are in terms of monotonic time
Colin Walters [Sat, 13 Aug 2011 10:03:18 +0000 (06:03 -0400)]
gmain: Clarify that timeouts are in terms of monotonic time

Also note that monotonic time does not include time spent while
suspended (at least on Linux).

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

13 years agoGDateTime: use nl_langinfo() when available
Matthias Clasen [Mon, 22 Aug 2011 03:48:07 +0000 (23:48 -0400)]
GDateTime: use nl_langinfo() when available

This makes g_date_time_format() react to LC_TIME, which is
what people expect.

Translators: this change means that the GDateTime strings
are only used when the C library does not already provide
suitable translated strings for these (month names, etc).

13 years agoGDateTime: cosmetics
Matthias Clasen [Mon, 22 Aug 2011 03:36:31 +0000 (23:36 -0400)]
GDateTime: cosmetics

Shuffle things around a bit, to move locale-dependent
things together.

13 years agoGDateTime: cosmetics
Matthias Clasen [Mon, 22 Aug 2011 03:32:28 +0000 (23:32 -0400)]
GDateTime: cosmetics

Don't hide the recursion in g_date_time_format() behind
a macro, make it explicit.

13 years agoAdd a quick utility to test datetime formatting
Matthias Clasen [Mon, 22 Aug 2011 01:33:30 +0000 (21:33 -0400)]
Add a quick utility to test datetime formatting

13 years agoGDateTime: don't use separate strings for upper/lowercase am/pm
Matthias Clasen [Mon, 22 Aug 2011 00:45:57 +0000 (20:45 -0400)]
GDateTime: don't use separate strings for upper/lowercase am/pm

We can just as well change the case ourselves.

13 years agog_date_time_format: support %T
Matthias Clasen [Sun, 21 Aug 2011 23:51:45 +0000 (19:51 -0400)]
g_date_time_format: support %T

strftime supports it, and there is no reason not to do the same.

13 years ago[gi] Add signal annotations
Pavel Holejsovsky [Sun, 21 Aug 2011 15:15:52 +0000 (17:15 +0200)]
[gi] Add signal annotations

13 years ago[gi] Add annotations to g_quark functions
Pavel Holejsovsky [Sun, 21 Aug 2011 15:12:18 +0000 (17:12 +0200)]
[gi] Add annotations to g_quark functions

13 years agoAdd missing GClosure annotations
Pavel Holejsovsky [Fri, 19 Aug 2011 08:34:02 +0000 (10:34 +0200)]
Add missing GClosure annotations

13 years agoAdd missing (allow-none) annotations to g_value_set_string functions
Pavel Holejsovsky [Fri, 19 Aug 2011 08:34:37 +0000 (10:34 +0200)]
Add missing (allow-none) annotations to g_value_set_string functions

13 years agoMerge branch 'concurrent-cancellable'
Stef Walter [Fri, 19 Aug 2011 09:21:11 +0000 (11:21 +0200)]
Merge branch 'concurrent-cancellable'

13 years agogio: GCancellable can be used concurrently
Stef Walter [Fri, 12 Aug 2011 09:49:31 +0000 (11:49 +0200)]
gio: GCancellable can be used concurrently

 * Update documentation to note that GCancellable can be used
   concurrently by multiple operations.
 * Add documentation to g_cancellable_reset that behavior is
   undefined if called from within cancelled handler.
 * Add test for multiple concurrent operations using the same
   cancellable.

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

13 years agoupdate translation for Punjabi
A S Alam [Fri, 19 Aug 2011 02:56:25 +0000 (08:26 +0530)]
update translation for Punjabi

13 years agoAdded UG translation
Abduxukur Abdurixit [Fri, 19 Aug 2011 17:42:26 +0000 (19:42 +0200)]
Added UG translation

13 years agoUse actual uint64 values to compare uint64 variants
Christian Dywan [Wed, 17 Aug 2011 23:38:34 +0000 (01:38 +0200)]
Use actual uint64 values to compare uint64 variants

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

13 years agoAdd (allow-none) annotation for GValue setters.
Pavel Holejsovsky [Wed, 17 Aug 2011 05:37:36 +0000 (07:37 +0200)]
Add (allow-none) annotation for GValue setters.

Assorted g_value_set_xxx() and g_value_take_xxx() functions actually
allow NULL in source parameter.

13 years agoFixup max decomposition len guarantee
Behdad Esfahbod [Wed, 17 Aug 2011 10:13:17 +0000 (12:13 +0200)]
Fixup max decomposition len guarantee

Unicode Technical Committee agreed to limit decomposition length to
18 in both cases.  Reflect that.

13 years agovoid functions should not return. Fixes bug #656675.
Brian Cameron [Wed, 17 Aug 2011 08:01:14 +0000 (03:01 -0500)]
void functions should not return.  Fixes bug #656675.

13 years agopost-release bump
Ryan Lortie [Tue, 16 Aug 2011 01:01:52 +0000 (21:01 -0400)]
post-release bump

13 years agoglib 2.29.16 2.29.16
Ryan Lortie [Tue, 16 Aug 2011 01:01:28 +0000 (21:01 -0400)]
glib 2.29.16

13 years agodistcheck fixes
Ryan Lortie [Tue, 16 Aug 2011 01:01:23 +0000 (21:01 -0400)]
distcheck fixes

13 years agoMore NEWS updates
Matthias Clasen [Mon, 15 Aug 2011 22:51:42 +0000 (18:51 -0400)]
More NEWS updates

13 years agoUpdated Esperanto translation
Ryan Lortie [Mon, 15 Aug 2011 17:33:27 +0000 (13:33 -0400)]
Updated Esperanto translation

Esperanto weekdays and month days are written in lowercase (as in
French).

13 years agoAdd a stress-test for GDBusProxy in threads with no default main context
Simon McVittie [Mon, 15 Aug 2011 15:00:51 +0000 (16:00 +0100)]
Add a stress-test for GDBusProxy in threads with no default main context

Destroying a GDBusProxy in a thread used to race with NameOwnerChanged
being delivered to the main context's thread (GNOME #651133).

Also, g_dbus_proxy_call_sync in a thread would race with NameOwnerChanged
being delivered to the main context's thread and rewriting the name_owner
(GNOME #656039).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=656039
Bug-NB: NB#259760
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBusProxy: hold properties_lock while using any mutable property
Simon McVittie [Mon, 15 Aug 2011 14:59:45 +0000 (15:59 +0100)]
GDBusProxy: hold properties_lock while using any mutable property

This changes the meaning of "properties_lock" from "lock for D-Bus
properties" to "lock for GObject properties".

The most common problem, and the only one I've reproduced in a regression
test, is name_owner, which can be updated by the thread that owns
the GDBusProxy's main context (i.e. the thread-default main context of
the thread that constructed it) at the same time that a blocking call
is made. When a GDBusProxy is constructed in a thread-pool thread for
short-term use, the main context will typically be the global default
main context (which is actively running in the main thread!), making
this extremely problematic.

The interface info is perhaps a theoretical concern - one thread could
conceivably set it at the same time that another thread uses it, but only
in relatively pathological situations. The current API for this does have
the problem that it returns a borrowed ref, but interface info is
hopefully permanent anyway.

The default timeout is probably only a theoretical concern - it's just an
int, so writes are indivisible, and there's no worry about whether
something has been freed - but to be safe, let's hold the lock for that
too.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=656039
Bug-NB: NB#259760

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBusProxy: factor out async_init_data_set_name_owner
Simon McVittie [Mon, 8 Aug 2011 17:29:20 +0000 (18:29 +0100)]
GDBusProxy: factor out async_init_data_set_name_owner

This removes the need for async_init_get_name_owner_cb to cope with being
called without a real GAsyncResult, and will simplify the addition of
correct thread-locking.

In async_init_data_set_name_owner, use the name_owner parameter instead
of the corresponding member of GDBusProxyPrivate, partly to reduce
pointer-chasing but mainly to avoid needing to hold the lock.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agog_dbus_proxy_get_property: use accessors for all mutable state
Simon McVittie [Mon, 8 Aug 2011 17:22:42 +0000 (18:22 +0100)]
g_dbus_proxy_get_property: use accessors for all mutable state

These ought to have thread-locking, and having it in the accessor seems
better than duplicating it here.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBusProxy: if a well-known name is not owned, don't GetAll from the dbus-daemon
Simon McVittie [Mon, 15 Aug 2011 14:57:59 +0000 (15:57 +0100)]
GDBusProxy: if a well-known name is not owned, don't GetAll from the dbus-daemon

If you run:

    ( cd gio/tests && G_DBUS_DEBUG=all ./gdbus-proxy-well-known-name )

you can see that in the case where the name com.example.TestService isn't
owned yet, the GDBusProxy calls GetAll() with no destination, resulting
in an error reply from the peer (the dbus-daemon itself). That's clearly
not right!

However, if priv->name is NULL, that indicates the special case where we
really do want to talk directly to a peer, instead of via the bus daemon
(most likely to be used on peer-to-peer connections); in that special
case, do call GetAll().

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agog_settings_bind: add some g_return checks
Ryan Lortie [Mon, 15 Aug 2011 14:42:35 +0000 (10:42 -0400)]
g_settings_bind: add some g_return checks

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

13 years agoghash: fix error in "as a set" documentation
Ryan Lortie [Wed, 10 Aug 2011 10:25:57 +0000 (12:25 +0200)]
ghash: fix error in "as a set" documentation

13 years agoGDBusObjectManagerClient: Emit signals on proxy before emitting on manager
David Zeuthen [Mon, 15 Aug 2011 09:43:24 +0000 (05:43 -0400)]
GDBusObjectManagerClient: Emit signals on proxy before emitting on manager

This is needed because the proxy may need to update its internal state
which a signal handler connected to the manager may rely on.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoopen(2): POSIX compatibility.
Antoine Jacoutot [Sat, 13 Aug 2011 23:23:36 +0000 (01:23 +0200)]
open(2): POSIX compatibility.

Posix allows for open(2) to fail with errno = EINTR.
Normal this isn't seen when opening files. However in some case we are
opening a fifo for write which will block until another process opens it
for read. If a signal is received while blocked, open(2) fails with
errno = EINTR.

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

13 years agoAdd g_mkdtemp in the spirit of g_mkstemp
Matthias Clasen [Sun, 14 Aug 2011 18:09:58 +0000 (14:09 -0400)]
Add g_mkdtemp in the spirit of g_mkstemp

At the same time, also add g_mkdtemp_full and g_dir_make_tmp
variants. The patch also unifies the unique-name-generating
code for all variants of mkstemp and mkdtemp and adds tests
for the new functions.

Based on patches by Paolo Bonzini,
http://bugzilla.gnome.org/show_bug.cgi?id=118563

13 years agoGHmac: pedantic doc fixes
Matthias Clasen [Sun, 14 Aug 2011 16:03:36 +0000 (12:03 -0400)]
GHmac: pedantic doc fixes

Add a link to an explanation of what HMAC is, and tweak
some formatting.

13 years agoNews for 2.29.16
Matthias Clasen [Sun, 14 Aug 2011 04:47:04 +0000 (00:47 -0400)]
News for 2.29.16

13 years agohmac: Implementation of HMAC in glib
Stef Walter [Sun, 14 Aug 2011 07:27:45 +0000 (09:27 +0200)]
hmac: Implementation of HMAC in glib

This implements g_hmac_xxx() functionality using the standard checksum
functions supported by glib.

HMAC is a secure way to hash a key and a password. Many other
approaches fraught with append and prepend issues.

Includes test cases defined in relevant RFCs

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

13 years agoAdd G_VALUE_INIT
Marc-André Lureau [Sun, 17 Jul 2011 19:18:04 +0000 (21:18 +0200)]
Add G_VALUE_INIT

The implementation of GValue is not public or documented.  When
allocated on the stack, initializing a GValue is usually done as
documented with:

GValue value = { 0, };

There is lot code around (including WebKit) that added all the missing
fields, resulting in this ugly and non-obvious:

GValue value = { 0, { { 0 } } };

However, this doesn't play nice with -Wmissing-field-initializers for
example. Thus, G_VALUE_INIT.

http://bugzilla.gnome.org/show_bug.cgi?id=654793
http://bugzilla.gnome.org/show_bug.cgi?id=577231

13 years agoDon't finish gtls connection if the handshake failed
Sjoerd Simons [Wed, 10 Aug 2011 13:56:13 +0000 (15:56 +0200)]
Don't finish gtls connection if the handshake failed

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

13 years agoGDBusProxy: on_properties_changed initialize some variables
Matthias Clasen [Sat, 13 Aug 2011 20:09:41 +0000 (16:09 -0400)]
GDBusProxy: on_properties_changed initialize some variables

This avoids calling g_variant_unref and g_free on uninitialized memory
if PropertiesChanged is received in the creating thread's thread-default
main context's thread, at the same time as releasing the last ref in
another thread. This would result in "goto out" before the variables
freed after that label had been initialized to NULL.

Based on a patch by Simon McVittie, bug 656282

13 years agogdatetime: Add a test for %OM
Matthias Clasen [Sat, 13 Aug 2011 19:48:47 +0000 (15:48 -0400)]
gdatetime: Add a test for %OM

13 years agoRemove a gccism
Matthias Clasen [Sat, 13 Aug 2011 19:29:29 +0000 (15:29 -0400)]
Remove a gccism

Pointed out in bug 656152.

13 years agoFix statfs/statvfs decision
Matthias Clasen [Sat, 13 Aug 2011 19:07:38 +0000 (15:07 -0400)]
Fix statfs/statvfs decision

We want to force use of statvfs when statfs is deficient.
This does not make any difference on Linux.

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

13 years agoTrivial typo fix
Matthias Clasen [Sat, 13 Aug 2011 17:53:34 +0000 (13:53 -0400)]
Trivial typo fix

13 years agoIn addition to /media and $HOME, also show mounts in $XDG_USER_DIR
David Zeuthen [Fri, 12 Aug 2011 15:10:22 +0000 (11:10 -0400)]
In addition to /media and $HOME, also show mounts in $XDG_USER_DIR

Prepare for the future where udisks will use $XDG_USER_DIR/Volumes
instead of /media when mounting filesystems on behalf of the user.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoUpdated Indonesian translation
Andika Triwidada [Fri, 12 Aug 2011 08:48:34 +0000 (15:48 +0700)]
Updated Indonesian translation

13 years agoUpdate VS property sheets ("install" phase)
Chun-wei Fan [Fri, 12 Aug 2011 03:43:40 +0000 (11:43 +0800)]
Update VS property sheets ("install" phase)

Copy the new GioTLS headers that were introduced into the GIO
library in commit  0f99cfa8822514dc6b7ccbc59efbe68f27aeb172 during the
"install" stage.

13 years agoUpdated Bulgarian translation
Alexander Shopov [Thu, 11 Aug 2011 17:55:20 +0000 (20:55 +0300)]
Updated Bulgarian translation

13 years ago[gobject] Fix G_DEFINE_BOXED_TYPE compilation with C++
Behdad Esfahbod [Thu, 11 Aug 2011 17:02:14 +0000 (19:02 +0200)]
[gobject] Fix G_DEFINE_BOXED_TYPE compilation with C++

13 years ago[gi] Add missing (out) annotation to g_dbus_{node,interface}_info_generate_xml()
Martin Pitt [Thu, 11 Aug 2011 12:08:33 +0000 (14:08 +0200)]
[gi] Add missing (out) annotation to g_dbus_{node,interface}_info_generate_xml()

13 years ago[gi] Add missing Gio transfer annotations
Martin Pitt [Thu, 11 Aug 2011 09:36:22 +0000 (11:36 +0200)]
[gi] Add missing Gio transfer annotations

13 years ago[gi] Fix parameter name typos in Gio docstrings
Martin Pitt [Thu, 11 Aug 2011 09:05:31 +0000 (11:05 +0200)]
[gi] Fix parameter name typos in Gio docstrings

Found by GIR compiler when building gobject-introspection:

gir/gio-2.0.c:33525: Warning: Gio: g_tls_password_set_description: unknown
parameter 'flags' in documentation comment, should be one of 'password',
'description'
gir/gio-2.0.c:14568: Warning: Gio: g_action_group_action_state_changed: unknown
parameter 'state' in documentation comment, should be one of 'action_group',
'action_name', 'value'

13 years agoBug 652827: Update config.h.win32.in
Chun-wei Fan [Thu, 11 Aug 2011 07:30:48 +0000 (15:30 +0800)]
Bug 652827: Update config.h.win32.in

Add check macro for HAVE_WIN32_BUILTINS_FOR_ATOMIC_OPERATIONS, as it is
now required for MSVC builds of glib/gatomic.c GLib 2.29.15+.

It is true that the MinGW cross-compiler on Linux systems will have
HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS and
HAVE_WIN32_BUILTINS_FOR_ATOMIC_OPERATIONS defined during the completion
of ./configure, but since this file is primarily meant for people
compiling -on- Windows (and that the "native" Windows MinGW would neither
./configure to define HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS and
HAVE_WIN32_BUILTINS_FOR_ATOMIC_OPERATIONS), this file will be updated as
it is for now at least until the situation for "native" Windows MinGW
change. (please see Bug 652827 regarding this paragraph)

13 years agoBug 652827 - glib-2.29.8 no longer builds with mingw.org's toolchain
Behdad Esfahbod [Tue, 9 Aug 2011 17:43:34 +0000 (19:43 +0200)]
Bug 652827 - glib-2.29.8 no longer builds with mingw.org's toolchain

Check for Win32 atomic intrinsics.

13 years agoCleanup gatomic checks
Behdad Esfahbod [Thu, 11 Aug 2011 06:33:23 +0000 (08:33 +0200)]
Cleanup gatomic checks

13 years agoFix typo
Behdad Esfahbod [Thu, 11 Aug 2011 06:11:06 +0000 (08:11 +0200)]
Fix typo

13 years ago[gi] Add missing transfer annotation to g_dbus_node_info_lookup_interface()
Martin Pitt [Wed, 10 Aug 2011 20:50:26 +0000 (22:50 +0200)]
[gi] Add missing transfer annotation to g_dbus_node_info_lookup_interface()

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 10 Aug 2011 13:12:54 +0000 (15:12 +0200)]
Updated Norwegian bokmål translation