platform/upstream/glib.git
12 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.

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

12 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

12 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)

12 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

12 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).

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

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

12 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

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

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

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

12 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

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

12 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

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

12 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

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

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

12 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

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

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

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

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

12 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

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

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

12 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).

12 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>
12 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>
12 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>
12 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>
12 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>
12 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

12 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

12 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>
12 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

12 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

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

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

12 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

12 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

12 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

12 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

12 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

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

12 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

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

12 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>
12 years agoUpdated Indonesian translation
Andika Triwidada [Fri, 12 Aug 2011 08:48:34 +0000 (15:48 +0700)]
Updated Indonesian translation

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

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

12 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++

12 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()

12 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

12 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'

12 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)

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

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

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

12 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()

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

12 years ago[gi] Add missing (allow-none) annotations to g_dbus_connection_register_object()
Martin Pitt [Tue, 9 Aug 2011 12:51:34 +0000 (14:51 +0200)]
[gi] Add missing (allow-none) annotations to g_dbus_connection_register_object()

12 years agoIgnore lcov-produced files in top-level .gitignore
Simon McVittie [Mon, 8 Aug 2011 16:18:08 +0000 (17:18 +0100)]
Ignore lcov-produced files in top-level .gitignore

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=656162
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
12 years agoAllow current lcov (version 1.9) to be used for coverage
Simon McVittie [Mon, 8 Aug 2011 14:48:27 +0000 (15:48 +0100)]
Allow current lcov (version 1.9) to be used for coverage

It seems to work fine with the same invocation already used.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=656162
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
12 years agoDocument libffi as new dependency
Matthias Clasen [Mon, 8 Aug 2011 21:16:07 +0000 (23:16 +0200)]
Document libffi as new dependency

12 years agoUpdated Galician translations
Fran Dieguez [Sat, 6 Aug 2011 20:33:00 +0000 (22:33 +0200)]
Updated Galician translations

12 years agoRequire Python 2.5 explicitly
Colin Walters [Sat, 6 Aug 2011 13:36:49 +0000 (09:36 -0400)]
Require Python 2.5 explicitly

Without someone to regularly test 2.4, and since the code in reality
requires 2.5, switch to that for now.

12 years agoconfigure: Fix statvfs/statfs detection
Colin Walters [Sat, 6 Aug 2011 13:22:44 +0000 (09:22 -0400)]
configure: Fix statvfs/statfs detection

Add missing 'x' as pointed out by declanw@is.bbc.co.uk

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

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 6 Aug 2011 13:02:50 +0000 (16:02 +0300)]
Updated Hebrew translation.

12 years agoAdd missing GVariant annotations
Pavel Holejsovsky [Fri, 5 Aug 2011 14:31:06 +0000 (16:31 +0200)]
Add missing GVariant annotations

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

12 years agogio/tests/.gitignore: fix
Dan Winship [Fri, 5 Aug 2011 23:43:47 +0000 (19:43 -0400)]
gio/tests/.gitignore: fix

12 years agoUpdated French translation
Claude Paroz [Fri, 5 Aug 2011 15:04:50 +0000 (17:04 +0200)]
Updated French translation

12 years ago[l10n] Updated German translation
Mario Blättermann [Fri, 5 Aug 2011 10:11:02 +0000 (12:11 +0200)]
[l10n] Updated German translation

12 years agogio enums: Remove trailing commas
Murray Cumming [Thu, 4 Aug 2011 19:47:07 +0000 (21:47 +0200)]
gio enums: Remove trailing commas

12 years agoFix up ABI symbols after GTlsDatabase merge.
Stef Walter [Thu, 4 Aug 2011 07:43:45 +0000 (09:43 +0200)]
Fix up ABI symbols after GTlsDatabase merge.

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

12 years agoGTlsDatabase and related objects
Stef Walter [Thu, 4 Aug 2011 06:54:55 +0000 (08:54 +0200)]
GTlsDatabase and related objects

The database is an abstract object implemented by the various TLS
backends, which is used by GTlsConnection to lookup certificates
and keys, as well as verify certificate chains.

Also add GTlsInteraction, which can be used to prompt the user
for a password or PIN (used with the database).

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

12 years agobuild: Pass ZLIB_CFLAGS for gio build
kotarou [Wed, 3 Aug 2011 12:46:04 +0000 (08:46 -0400)]
build: Pass ZLIB_CFLAGS for gio build

Otherwise we will fail if zlib is in an alternative prefix.

Commit message written by Colin Walters <walters@verbum.org>

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

12 years agog_cancellable_get_fd: silently return -1 for NULL cancellable
Owen W. Taylor [Fri, 29 Jul 2011 19:38:54 +0000 (15:38 -0400)]
g_cancellable_get_fd: silently return -1 for NULL cancellable

This keeps compatibility with previous behavior.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoGDBusConnection: Only apply exit-on-closed semantics if properly initialized
David Zeuthen [Mon, 1 Aug 2011 15:54:47 +0000 (11:54 -0400)]
GDBusConnection: Only apply exit-on-closed semantics if properly initialized

Otherwise there is no point in gracefully handling the error...

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agoUpdated Russian translation
Yuri Kozlov [Sun, 31 Jul 2011 20:10:59 +0000 (00:10 +0400)]
Updated Russian translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 29 Jul 2011 17:59:58 +0000 (19:59 +0200)]
Updated Spanish translation

12 years agoUpdated Swedish translation
Daniel Nylander [Fri, 29 Jul 2011 07:50:43 +0000 (09:50 +0200)]
Updated Swedish translation

12 years agoRevert "Optimize g_[s]list_free_full a bit"
Matthias Clasen [Thu, 28 Jul 2011 03:27:24 +0000 (23:27 -0400)]
Revert "Optimize g_[s]list_free_full a bit"

This reverts commit 98b667d052b1274f80b8898a32d0753e9e2e5c1a.

The commit was not actually an optimization, since g_list_free is
pretty smart.

12 years agoAdded TLS PEM parser unit test
Nicolas Dufresne [Mon, 25 Jul 2011 19:59:58 +0000 (15:59 -0400)]
Added TLS PEM parser unit test

12 years agoRework PEM parsing to not be order dependent
Nicolas Dufresne [Mon, 20 Jun 2011 22:49:39 +0000 (18:49 -0400)]
Rework PEM parsing to not be order dependent

Some valid PEM file would not work because the private key was put
before the certificate.

12 years agoDocs: Correct the namespace for g_file_query_filesystem_info()
Tomas Bzatek [Tue, 26 Jul 2011 15:32:53 +0000 (17:32 +0200)]
Docs: Correct the namespace for g_file_query_filesystem_info()

12 years agoUpdated glib-zip.in a bit further
Chun-wei Fan [Tue, 26 Jul 2011 15:23:31 +0000 (23:23 +0800)]
Updated glib-zip.in a bit further

Missed the bin/gsettings.exe part (corrected from bin/gsettings.)

12 years agoutf8: annotate the end pointer in g_utf8_validate as out + allow-none
Cosimo Cecchi [Tue, 26 Jul 2011 14:44:18 +0000 (16:44 +0200)]
utf8: annotate the end pointer in g_utf8_validate as out + allow-none

12 years agoMore gdbus-codegen fixed to build on non-Unix
David Zeuthen [Tue, 26 Jul 2011 14:05:57 +0000 (10:05 -0400)]
More gdbus-codegen fixed to build on non-Unix

https://bugzilla.gnome.org/show_bug.cgi?id=655148#c6

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 years agogtester: small Windows fix
Ryan Lortie [Tue, 26 Jul 2011 11:49:20 +0000 (13:49 +0200)]
gtester: small Windows fix

This code was unconditionally present in the gtester Makefile:

test-nonrecursive: ${TEST_PROGS}

On Windows, our testcases are compiled with a .exe suffix.  That means
that if we had 'foo' in TEST_PROGS, running "make check" would depend on
'foo' (not foo.exe) being compiled.

We could bring the EXEEXT in here to fix that up, but gtester doesn't
work on Windows at all, so better to just disable it in that case.

12 years agoGDateTime test: 1970 doesn't exist on Windows
Ryan Lortie [Tue, 26 Jul 2011 11:38:04 +0000 (13:38 +0200)]
GDateTime test: 1970 doesn't exist on Windows

It is not safe to call the system library mktime() function on Windows
with a date in the 70s.  Use 1990 instead.

12 years agog_format_size: fix on Windows
Ryan Lortie [Tue, 26 Jul 2011 11:29:01 +0000 (13:29 +0200)]
g_format_size: fix on Windows

The long format that displays the exact number of bytes with separators
(ie: "123,456,789 bytes") uses the ' format modifier, which is
unsupported on Windows.  Disable that for now, until we come up with a
better solution.

12 years agog_format_size: avoid silly GString use
Ryan Lortie [Tue, 26 Jul 2011 11:26:10 +0000 (13:26 +0200)]
g_format_size: avoid silly GString use

We were using a GString for the purpose of doing a single printf().  Do
g_strdup_printf() instead.

12 years agoUpdate glib-zip.in
Dieter Verfaillie [Mon, 18 Jul 2011 12:20:18 +0000 (14:20 +0200)]
Update glib-zip.in

12 years agoglocalfile: don't bother with fstype on win32
Ryan Lortie [Tue, 26 Jul 2011 09:20:12 +0000 (11:20 +0200)]
glocalfile: don't bother with fstype on win32

Fixes the broken build on Windows.

12 years agoMerge branch 'gwakeup'
Ryan Lortie [Tue, 26 Jul 2011 08:50:25 +0000 (10:50 +0200)]
Merge branch 'gwakeup'

12 years agoGWakeup: fix Windows build breakage
Ryan Lortie [Mon, 25 Jul 2011 16:59:27 +0000 (18:59 +0200)]
GWakeup: fix Windows build breakage

...from the attempt to make it private.

12 years ago.gitignore the gwakeup-fallback testcase
Ryan Lortie [Mon, 25 Jul 2011 16:52:36 +0000 (18:52 +0200)]
.gitignore the gwakeup-fallback testcase

12 years agoRemove g_wakeup_* from glib.symbols
Ryan Lortie [Mon, 25 Jul 2011 16:52:18 +0000 (18:52 +0200)]
Remove g_wakeup_* from glib.symbols