platform/upstream/glib.git
13 years agogbase64: fix introspection annotations
Giovanni Campagna [Sun, 3 Apr 2011 15:19:48 +0000 (17:19 +0200)]
gbase64: fix introspection annotations

Makes the g_base64_* functions usable from introspection GLib bindings
(gjs, currently, as both vala and pygobject use manual bindings for
GLib)

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

13 years agogdatetime: Quiet GCC warning about possibly-uninitialized
Colin Walters [Wed, 11 May 2011 17:19:05 +0000 (13:19 -0400)]
gdatetime: Quiet GCC warning about possibly-uninitialized

13 years agoGSettings: fix example in the docs
Ryan Lortie [Tue, 10 May 2011 13:25:54 +0000 (15:25 +0200)]
GSettings: fix example in the docs

13 years agoGDBusMethodInvocation: fix introspection annotations
Giovanni Campagna [Tue, 3 May 2011 16:54:45 +0000 (18:54 +0200)]
GDBusMethodInvocation: fix introspection annotations

In particular (transfer full), to avoid a refcounting bug and a
segmentation fault.

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

13 years ago[gi] Add missing allow-none annotations to GDBusConnection
Martin Pitt [Sun, 8 May 2011 12:12:23 +0000 (14:12 +0200)]
[gi] Add missing allow-none annotations to GDBusConnection

13 years agoUpdated Russian translation
Yuri Kozlov [Sun, 20 Mar 2011 07:50:35 +0000 (10:50 +0300)]
Updated Russian translation

13 years agoUpdated Spanish translation
Daniel Mustieles [Sat, 7 May 2011 10:38:56 +0000 (12:38 +0200)]
Updated Spanish translation

13 years agoGSettings: keep resets on loss of writability
Ryan Lortie [Sat, 7 May 2011 09:42:46 +0000 (11:42 +0200)]
GSettings: keep resets on loss of writability

Don't drop resets from a GDelayedSettingsBackend when the writability
changes.  Resets will always succeed, even against non-writable keys and
some people (gnome-screensaver) are using them in a way that they would
want them not to be forgotten.

13 years agoAllow NULL to be stored into GSettings trees
Ryan Lortie [Sat, 7 May 2011 09:41:19 +0000 (11:41 +0200)]
Allow NULL to be stored into GSettings trees

This is used for resets (in theory) and currently it crashes when
freeing the tree.

13 years agogdbus: Add a --timeout option
David Zeuthen [Fri, 6 May 2011 19:25:49 +0000 (15:25 -0400)]
gdbus: Add a --timeout option

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: fix typo in man page
Ray Strode [Fri, 6 May 2011 17:00:38 +0000 (13:00 -0400)]
gdbus-codegen: fix typo in man page

s/on_handle_hello-world/on_handle_hello_world/

13 years agogdbus-codegen: gracefully handle property get on proxy with no cached property
David Zeuthen [Fri, 6 May 2011 14:32:42 +0000 (10:32 -0400)]
gdbus-codegen: gracefully handle property get on proxy with no cached property

This can easily happen if the owner of the remote object vanishes. Of
course, when that happens, user code is already notified (by e.g. the
notify::g-name-owner signal) so it can avoid using the proxy but
requiring that is a bit harsh. IOW, before this patch this critical
error was printed

 GLib-GIO-CRITICAL **: g_dbus_gvariant_to_gvalue: assertion `value != NULL' failed

when that happened. With this patch, we just avoid setting the GValue
so the user will get the default value for its type instead. So, for
example, if the user code is getting a GVariant property on such a
defunct proxy, then he gets a NULL back. So unless said user code
checks the return value, criticals will still be printed if the NULL
GVariant is used for anything interesting.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDocumentation additions
Matthias Clasen [Fri, 6 May 2011 11:14:48 +0000 (07:14 -0400)]
Documentation additions

Add Since tags to recently introduced test function typedefs.
https://bugzilla.gnome.org/show_bug.cgi?id=649506

13 years agoAdd two annotations for g-i
Dan Winship [Thu, 5 May 2011 19:18:22 +0000 (15:18 -0400)]
Add two annotations for g-i

13 years agoAdd tests for new GDateTime functionality
Matthias Clasen [Thu, 5 May 2011 18:52:19 +0000 (14:52 -0400)]
Add tests for new GDateTime functionality

13 years agoExpand the g_date_time_format documentation
Matthias Clasen [Thu, 5 May 2011 17:40:51 +0000 (13:40 -0400)]
Expand the g_date_time_format documentation

Mention strftime, and explain supported modifiers.

13 years agoGDateTime: enhance g_date_time_format()
Matthias Clasen [Thu, 5 May 2011 17:16:30 +0000 (13:16 -0400)]
GDateTime: enhance g_date_time_format()

Make g_date_time_format() support some useful format modifiers from
strftime(). This commit adds support for the POSIX 'O' modifier
(alternative digits), as well as the -/_/0 padding modifiers, which
are a GNU strftime() extension.
https://bugzilla.gnome.org/show_bug.cgi?id=648678

13 years agoGSocket: Use MSG_CMSG_CLOEXEC
Colin Walters [Thu, 5 May 2011 17:16:54 +0000 (13:16 -0400)]
GSocket: Use MSG_CMSG_CLOEXEC

This ensures received file descriptors don't leak to child processes.

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

13 years agoUpdate VS2010 "install" project
Chun-wei Fan [Thu, 5 May 2011 07:09:51 +0000 (15:09 +0800)]
Update VS2010 "install" project

The dependencies on gsettings and glib-compile-schemas were missed-made
up for them here.

13 years agoUpdate gcancellable.c for Win32
Chun-wei Fan [Thu, 5 May 2011 05:40:38 +0000 (13:40 +0800)]
Update gcancellable.c for Win32

errno.h is still required for Windows in this file...

13 years agoUpdate VS property sheets
Chun-wei Fan [Thu, 5 May 2011 05:36:34 +0000 (13:36 +0800)]
Update VS property sheets

There are some new public headers added for GIO.  Make up for them here
in the install phase

13 years agoMSVC support update for GObject
Chun-wei Fan [Thu, 5 May 2011 04:42:44 +0000 (12:42 +0800)]
MSVC support update for GObject

Apparently GObject now depends on libffi.  Add it to the dependencies list.

For MSVC, use the libffi-3.0.10(rcx) versions.

13 years agoGLib MSVC Support updates (autotools)
Chun-wei Fan [Thu, 5 May 2011 04:35:45 +0000 (12:35 +0800)]
GLib MSVC Support updates (autotools)

Filter out *-unix.c from the source file list, as it is obviously not
usable (nor used) under VS 2008/2010

13 years agoPost-release bump
Matthias Clasen [Thu, 5 May 2011 01:26:11 +0000 (21:26 -0400)]
Post-release bump

13 years agoMore distcheck fixes 2.29.4
Matthias Clasen [Thu, 5 May 2011 00:45:46 +0000 (20:45 -0400)]
More distcheck fixes

13 years agoTry to fix distcheck
Matthias Clasen [Wed, 4 May 2011 23:44:05 +0000 (19:44 -0400)]
Try to fix distcheck

13 years agoPre-release bump
Matthias Clasen [Wed, 4 May 2011 18:53:08 +0000 (14:53 -0400)]
Pre-release bump

13 years agoUpdates
Matthias Clasen [Wed, 4 May 2011 18:33:03 +0000 (14:33 -0400)]
Updates

13 years agogdbus-codegen: don't assert non-negativity for unsigned values
Ray Strode [Wed, 4 May 2011 16:45:22 +0000 (12:45 -0400)]
gdbus-codegen: don't assert non-negativity for unsigned values

The code generator sprinkles a few asserts in its output of the form:

g_assert (prop_id - 1 >= 0 && prop_id - 1 < %d);\n

prop_id is unsigned, though, so this generates a compiler warning for
me.

This commit changes the code to merely check for prop_id != 0 instead of
prop_id - 1 >= 0

13 years agoGVariant: Better handling of invalid UTF-8
Ryan Lortie [Wed, 4 May 2011 16:12:31 +0000 (18:12 +0200)]
GVariant: Better handling of invalid UTF-8

g_variant_new_string() hits a g_return_if_fail() when given invalid
UTF-8.  That's certainly the right thing to do, but
g_variant_builder_add() uses this function internally and crashes when
it returns NULL due to the user passing a non-utf8 string.

We can protect the internal code by returning "[Invalid UTF-8]" in this
case while also making the problem easier to debug (and less fatal).

Closes #632631.

13 years agogdbus-codegen: Make sure we pass -Werror
Alexander Larsson [Wed, 4 May 2011 11:54:34 +0000 (13:54 +0200)]
gdbus-codegen: Make sure we pass -Werror

_g_value_equal might not always be used, so mark it G_GNUC_UNUSED
to make sure we're -Werror clean.

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 4 May 2011 09:06:44 +0000 (11:06 +0200)]
Updated Norwegian bokmål translation

13 years agoGDBusObjectManagerServer: Allow setting :connection property
David Zeuthen [Wed, 4 May 2011 07:37:46 +0000 (03:37 -0400)]
GDBusObjectManagerServer: Allow setting :connection property

.. and add a C setter to do this. Also make the C getter return a
reference since the property may be set from another thread. Also
change the constructor to _not_ take a GDBusConnection since this is
something you almost always want to do _after_ creating it. The
API/ABI break is fine as there has never been a GLib release with this
type.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoRename g_unix_pipe_flags to g_unix_open_pipe
Colin Walters [Tue, 3 May 2011 20:31:34 +0000 (16:31 -0400)]
Rename g_unix_pipe_flags to g_unix_open_pipe

From IRC discussion, people liked this name more.

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

13 years agoRemove extraneous decorations
Matthias Clasen [Tue, 3 May 2011 23:15:46 +0000 (19:15 -0400)]
Remove extraneous decorations

Since in a doc comment takes no leading '@'.

13 years agoglib-unix.c: Don't leak FDs if pipe2() succeeds
Colin Walters [Tue, 3 May 2011 20:22:13 +0000 (16:22 -0400)]
glib-unix.c: Don't leak FDs if pipe2() succeeds

13 years agoOnly remove the lines that are no longer needed
Matthias Clasen [Tue, 3 May 2011 16:41:11 +0000 (12:41 -0400)]
Only remove the lines that are no longer needed

13 years agoRevert "[build] Remove stale LDADD lines from tests/Makefile.am to allow build"
Matthias Clasen [Tue, 3 May 2011 16:37:45 +0000 (12:37 -0400)]
Revert "[build] Remove stale LDADD lines from tests/Makefile.am to allow build"

This reverts commit b0874ce28e910121fb2d94f6f9183bfdc08e8eaf.

13 years agoUse g types in public API for consistency
Colin Walters [Tue, 3 May 2011 14:57:22 +0000 (10:57 -0400)]
Use g types in public API for consistency

13 years agoGCancellable: Use g_unix_pipe_flags with FD_CLOEXEC
Colin Walters [Mon, 2 May 2011 19:42:51 +0000 (15:42 -0400)]
GCancellable: Use g_unix_pipe_flags with FD_CLOEXEC

The old code was creating a pipe and setting FD_CLOEXEC
non-atomically.

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

13 years agog_unix_set_fd_nonblocking: New API to control file descriptor blocking state
Colin Walters [Tue, 3 May 2011 13:52:10 +0000 (09:52 -0400)]
g_unix_set_fd_nonblocking: New API to control file descriptor blocking state

And use it in relevant places in GLib.

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

13 years agoglib-unix.h: Unconditionally include unistd.h
Colin Walters [Mon, 2 May 2011 21:02:16 +0000 (17:02 -0400)]
glib-unix.h: Unconditionally include unistd.h

danw points out it's part of POSIX.

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

13 years agoFix usage of _GNU_SOURCE
Dan Winship [Sun, 1 May 2011 15:17:14 +0000 (11:17 -0400)]
Fix usage of _GNU_SOURCE

_GNU_SOURCE must be defined before including any other (system)
header, so defining it in glib-unix.h (and hoping no one has included
anything else before that) is wrong. And the "#define _USE_GNU"
workaround for this problem in gnetworkingprivate.h is even wronger
(and still prone to failure anyway due to single-include guards).

Fix this by defining _GNU_SOURCE in config.h when building against
glibc. In theory this is bad because new releases of glibc may include
symbols that conflict with glib symbols, which could then cause
compile failures. However, most people only see new releases of glibc
when they upgrade their distro, at which point they also generally get
new releases of gcc, which have new warnings/errors to clean up
anyway.

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

13 years agoAdd back an erroneously-removed line to tests/Makefile.am
Dan Winship [Mon, 2 May 2011 21:06:37 +0000 (17:06 -0400)]
Add back an erroneously-removed line to tests/Makefile.am

13 years agoDrop translated g_warning/g_error
Colin Walters [Fri, 29 Apr 2011 14:59:42 +0000 (10:59 -0400)]
Drop translated g_warning/g_error

http://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00069.html

13 years agoglib/Makefile.am: add gmain-internal.h to sources
Ray Strode [Mon, 2 May 2011 16:33:36 +0000 (12:33 -0400)]
glib/Makefile.am: add gmain-internal.h to sources

It's a new private header.

This commit adds it to the Makefile so it's properly distributed
with the sources.

13 years agogobject: Warn if someone uses the wrong property in g_object_get/set
Benjamin Otte [Mon, 2 May 2011 17:22:25 +0000 (19:22 +0200)]
gobject: Warn if someone uses the wrong property in g_object_get/set

"Interface::property" was not detected before and led to a crash.

13 years agoAdded UG translation
Abduxukur Abdurixit [Mon, 2 May 2011 16:29:59 +0000 (18:29 +0200)]
Added UG translation

13 years agoFix compiler warnings
Dan Winship [Mon, 2 May 2011 15:45:52 +0000 (11:45 -0400)]
Fix compiler warnings

13 years agoFix autoconf 2.68 warnings
Dan Winship [Mon, 2 May 2011 15:44:46 +0000 (11:44 -0400)]
Fix autoconf 2.68 warnings

autoconf 2.68 is very insistent that AC_LANG_SOURCE/AC_LANG_PROGRAM
must be used in certain places, to avoid quoting/lack-of-quoting
problems, or something. Fix.

13 years agoBug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk
Behdad Esfahbod [Mon, 2 May 2011 15:43:02 +0000 (11:43 -0400)]
Bug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk

Add tests.

13 years ago[build] Remove stale LDADD lines from tests/Makefile.am to allow build
Behdad Esfahbod [Mon, 2 May 2011 15:26:01 +0000 (11:26 -0400)]
[build] Remove stale LDADD lines from tests/Makefile.am to allow build

Automake 1.11 wasn't happy.

13 years agoUpdate .gitignores
Dan Winship [Mon, 2 May 2011 13:53:59 +0000 (09:53 -0400)]
Update .gitignores

13 years agoSome documentation additions
Matthias Clasen [Mon, 2 May 2011 03:02:53 +0000 (23:02 -0400)]
Some documentation additions

13 years agoAvoid an unused variable warning
Matthias Clasen [Mon, 2 May 2011 00:43:04 +0000 (20:43 -0400)]
Avoid an unused variable warning

Also, clean up some whitespace

13 years agoFix make check
Matthias Clasen [Sun, 1 May 2011 21:07:46 +0000 (17:07 -0400)]
Fix make check

g_thread_init() causes a hash table to be allocated (in read_aliases).
Since hash tables are now a bit larger, we need to bump one of the
probe sizes to avoid our probe slice being used for the aliases
hash table.

13 years agoAdded UG translation
Abduxukur Abdurixit [Sun, 1 May 2011 18:04:51 +0000 (20:04 +0200)]
Added UG translation

13 years agoGHash: make sets with refcounted keys work correctly
Matthias Clasen [Sun, 1 May 2011 14:55:24 +0000 (10:55 -0400)]
GHash: make sets with refcounted keys work correctly

When keys == values, we have to be careful about the order in
which we replace their elements.

13 years agoGHash: introduce a "set" mode
Matthias Clasen [Sun, 1 May 2011 02:28:34 +0000 (22:28 -0400)]
GHash: introduce a "set" mode

Make hash tables start out in a mode in which they don't store
values at all, until the first insertion of a non-identical
key-value pair.

This reduces memory requirements by 1/3 when using hash tables
to store sets.

Based on a patch by Morten Welinder,
https://bugzilla.gnome.org/show_bug.cgi?id=644437

13 years agoGHash: eliminate one of the lookup_nodes functions.
Morten Welinder [Wed, 27 Apr 2011 14:46:00 +0000 (10:46 -0400)]
GHash: eliminate one of the lookup_nodes functions.

Kill g_hash_table_lookup_node and rename g_hash_table_lookup_node_for_insertion
to g_hash_table_lookup_node.  Since at this point we already check for
toombstones in all callers of g_hash_table_lookup_node this doesn't make
a difference.

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

13 years agoGHash: split nodes array into seperate arrays.
Morten Welinder [Wed, 27 Apr 2011 14:39:56 +0000 (10:39 -0400)]
GHash: split nodes array into seperate arrays.

This reduces memory requirements by 1/6 on 64-bit machines since
no padding is needed.  It also puts less strain on the memory
allocator since we no longer need one giant slab of memory.

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

13 years agoGHash: use macros to check for magic hash values.
Morten Welinder [Wed, 27 Apr 2011 13:53:39 +0000 (09:53 -0400)]
GHash: use macros to check for magic hash values.

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

13 years agoUpdate VS2008/2010 README.txt
Chun-wei Fan [Sun, 1 May 2011 01:42:22 +0000 (09:42 +0800)]
Update VS2008/2010 README.txt

Tell people about the usage of ZLib to avoid the
problem such as the one mentioned in Bug 633977

13 years agoBug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk
Behdad Esfahbod [Fri, 29 Apr 2011 20:14:49 +0000 (16:14 -0400)]
Bug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk

Update to Unicode 6.0.  Also attach Python script that generates
the tables.

13 years agoRemove duplicate GDBusInterface declaration
Ryan Lortie [Fri, 29 Apr 2011 21:06:26 +0000 (17:06 -0400)]
Remove duplicate GDBusInterface declaration

It was in gdbusinterface.h but also in giotypes.h.  Remove it from the
former.

13 years agoUpdate docs to take comments/suggestions from Matthias into account
David Zeuthen [Fri, 29 Apr 2011 17:11:22 +0000 (13:11 -0400)]
Update docs to take comments/suggestions from Matthias into account

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoMerge branch 'master' into gdbus-codegen
David Zeuthen [Fri, 29 Apr 2011 16:01:35 +0000 (12:01 -0400)]
Merge branch 'master' into gdbus-codegen

13 years agoGFilterInputStream: close-base-stream should not be construct-only
Alexander Larsson [Fri, 29 Apr 2011 14:14:17 +0000 (16:14 +0200)]
GFilterInputStream: close-base-stream should not be construct-only

This is a runtime changable property (by the methods for it), must
be a cut and paste error.

13 years agoUse SIGTRAP (via G_BREAKPOINT()) if G_DEBUG=fatal-warnings
Colin Walters [Tue, 26 Apr 2011 17:04:25 +0000 (13:04 -0400)]
Use SIGTRAP (via G_BREAKPOINT()) if G_DEBUG=fatal-warnings

On Linux with gdb, it's much more convenient to debug programs using
G_DEBUG=fatal-warnings if we send SIGTRAP instead of abort() by
default.  The default handler for both is to terminate the process.

In particular this makes it more easily possible to debug a warning
that's not the first in a program; you can skip past it and
go to the warning you care about.

The "aborting..." message is removed since it's no longer accurate,
and anyways was never very useful; crashes should show up in ABRT/apport
type crash catching systems.

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

13 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 28 Apr 2011 18:45:34 +0000 (20:45 +0200)]
Updated Spanish translation

13 years agoglib/gvariant.c: Fix variable name in example code
Shaun McCance [Thu, 28 Apr 2011 16:41:41 +0000 (12:41 -0400)]
glib/gvariant.c: Fix variable name in example code

13 years agoDrop stray reference to gthread.la
Colin Walters [Wed, 27 Apr 2011 23:09:38 +0000 (19:09 -0400)]
Drop stray reference to gthread.la

We now build this test multithreaded in gthread/tests.

13 years agoglib/Makefile.am: Remove stray tab
Colin Walters [Wed, 27 Apr 2011 22:42:29 +0000 (18:42 -0400)]
glib/Makefile.am: Remove stray tab

13 years agoglib-unix: New API to watch some Unix signals
Colin Walters [Thu, 17 Mar 2011 14:11:41 +0000 (10:11 -0400)]
glib-unix: New API to watch some Unix signals

This new API allows watching a few select Unix signals;
looking through the list on my system, I didn't see anything
else that I think it'd reasonable to watch.

We build on the previous patch to make the child watch helper thread
that existed on Unix handle these signals in the threaded case.
In the non-threaded case, they're just global variables.

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

13 years agogmain: Prepare child watch handling for more generic signal handling
Colin Walters [Wed, 16 Mar 2011 23:02:15 +0000 (19:02 -0400)]
gmain: Prepare child watch handling for more generic signal handling

In preparation for supporting more Unix signals such as SIGHUP,
SIGTERM etc.,

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

13 years agoglib-unix: New Unix-specific API
Colin Walters [Wed, 16 Mar 2011 17:54:28 +0000 (13:54 -0400)]
glib-unix: New Unix-specific API

GLib historically has been designed to be "mostly" portable; there
are some functions only available on Unix like g_io_channel_unix_new(),
but these are typically paired with obvious counterparts for Win32.

However, as GLib is used not only by portable software, but components
targeting Unix (or even just Linux), there are a few cases where it
would be very convenient if GLib shipped built-in functionality.

This initial patch is a basic wrapper around pipe2(), including
fallbacks for older kernels.  This pairs well with the
existing g_spawn_*() API and its child_setup functionality.

However, in the future, I want to add a signal() wrapper here,
complete with proxying the signal to a mainloop.  I have initial code
for this, but doing it sanely (including factoring out gmain.c's
private worker thread), is a complex task, and I don't want to block
on that.

See also gwin32.h for Win32 specific functionality.

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

13 years agoUpdate gio.symbols for previous two commits
Colin Walters [Wed, 27 Apr 2011 17:29:07 +0000 (13:29 -0400)]
Update gio.symbols for previous two commits

13 years agoGDesktopAppInfo: Add g_desktop_app_info_get_generic_name
Colin Walters [Wed, 27 Apr 2011 15:34:23 +0000 (11:34 -0400)]
GDesktopAppInfo: Add g_desktop_app_info_get_generic_name

Necessary for rebasing gnome-menus on top of GDesktopAppInfo.

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

13 years agoGDesktopAppInfo: Add g_desktop_app_info_get_categories()
Colin Walters [Fri, 15 Apr 2011 19:52:33 +0000 (15:52 -0400)]
GDesktopAppInfo: Add g_desktop_app_info_get_categories()

This is needed to rebase gnome-menus on top of GDesktopAppInfo.

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

13 years agoFix %z in g_date_time_format()
David Schleef [Tue, 22 Feb 2011 02:58:09 +0000 (18:58 -0800)]
Fix %z in g_date_time_format()

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

13 years agoGHashTable: Small optimization of remove-all
Matthias Clasen [Wed, 27 Apr 2011 04:03:59 +0000 (00:03 -0400)]
GHashTable: Small optimization of remove-all

Don't enter the loop if we are not going to notify anyway.
Pointed out in bug 646013.

13 years agoGHashTable: Add a test for remove-all functionality
Matthias Clasen [Wed, 27 Apr 2011 04:03:28 +0000 (00:03 -0400)]
GHashTable: Add a test for remove-all functionality

13 years agoWhitespace cleanup
Matthias Clasen [Wed, 27 Apr 2011 03:57:17 +0000 (23:57 -0400)]
Whitespace cleanup

13 years agoAllow caching have_qsort_r which re-enables cross-compiling
Maciej Piechotka [Thu, 31 Mar 2011 07:00:27 +0000 (09:00 +0200)]
Allow caching have_qsort_r which re-enables cross-compiling

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

13 years agoFix mailing list link in README
Matthias Clasen [Wed, 27 Apr 2011 03:26:58 +0000 (23:26 -0400)]
Fix mailing list link in README

Patch by Thomas Andersen, bug 647594

13 years agoGDBusServer: Documentation: Improvements.
Murray Cumming [Mon, 4 Apr 2011 08:01:51 +0000 (10:01 +0200)]
GDBusServer: Documentation: Improvements.

Provide a fuller description and lead people away if they arrived
here just looking for a way to provide a regular D-Bus service.

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

13 years agoUse G_SIGNAL_MUST_COLLECT for VARIANT signals
Christian Persch [Fri, 4 Mar 2011 17:21:51 +0000 (18:21 +0100)]
Use G_SIGNAL_MUST_COLLECT for VARIANT signals

Bug #643624.

13 years agoFix up some harmless FALSE <> NULL confusions
Matthias Clasen [Wed, 27 Apr 2011 02:51:54 +0000 (22:51 -0400)]
Fix up some harmless FALSE <> NULL confusions

Reported in bug 643134.

13 years agoGSequence: Make g_sequence_iter_move behave as documented
Matthias Clasen [Wed, 27 Apr 2011 02:08:24 +0000 (22:08 -0400)]
GSequence: Make g_sequence_iter_move behave as documented

As pointed out in bug 658313, moving before the begin iter is
supposed to return the begin iter, not the end iter. Also add
a test for this behaviour.

13 years agoGDesktopAppInfo: Add "filename" property for bindings
Colin Walters [Tue, 26 Apr 2011 19:08:54 +0000 (15:08 -0400)]
GDesktopAppInfo: Add "filename" property for bindings

GDesktopAppInfo violates the GObject rule that your C constructors
should just be thin wrappers around g_object_new().  While GKeyFile
isn't introspctable, this patch allows from JavaScript:

var app = new Gio.DesktopAppInfo({ filename: '/path/to/foo.desktop' });

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

13 years agoSquash some uninitialized variable compiler warnings
Colin Walters [Tue, 26 Apr 2011 17:28:17 +0000 (13:28 -0400)]
Squash some uninitialized variable compiler warnings

From GCC 4.6.

13 years agoGSimpleAsyncResult: push thread context around callback
Dan Winship [Wed, 20 Apr 2011 15:41:47 +0000 (11:41 -0400)]
GSimpleAsyncResult: push thread context around callback

When an old pre-thread-default-context API that takes an explicit
GMainContext wants to call a gio API, it must call
g_main_context_push_thread_default() before, and
g_main_context_pop_thread_default() after the gio call, so that the
gio method will return its result to the desired GMainContext.

But this fails for methods like g_socket_client_connect_async() that
make a chain of multiple async calls, since the pushed/popped context
will only affect the initial call.

Fix this by having GSimpleAsyncResult itself push/pop the context
around the callback invocation, so that if the callback queues another
async request, it will stay in the same context as the original one.

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

13 years agoUpdated Turkish translation
Muhammet Kara [Tue, 26 Apr 2011 00:04:20 +0000 (03:04 +0300)]
Updated Turkish translation

13 years agogdbus-codegen: Fix typo in generated docs
David Zeuthen [Mon, 25 Apr 2011 14:42:50 +0000 (10:42 -0400)]
gdbus-codegen: Fix typo in generated docs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes
David Zeuthen [Mon, 25 Apr 2011 13:29:18 +0000 (09:29 -0400)]
gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoDon't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos
Michael Terry [Mon, 25 Apr 2011 12:29:35 +0000 (08:29 -0400)]
Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos

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

13 years agoAdd VS 2008 compilation support for some utilities
Chun-wei Fan [Mon, 25 Apr 2011 05:47:07 +0000 (13:47 +0800)]
Add VS 2008 compilation support for some utilities

-Added projects to compile the glib-compile-schemas and gsettings utilities
-Update .vsprops to install these in "install" phase
-Distribute these projects also

13 years agoAdd VS 2010 compilation support for some utilities
Chun-wei Fan [Mon, 25 Apr 2011 05:32:18 +0000 (13:32 +0800)]
Add VS 2010 compilation support for some utilities

-Added projects to compile the glib-compile-schemas and gsettings utilities
-Update .vsprops to install these in "install" phase
-Distribute these projects also

13 years agoFix build broken by previous commit
David Zeuthen [Sat, 23 Apr 2011 23:26:56 +0000 (19:26 -0400)]
Fix build broken by previous commit

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Include docs for generated code in the GIO docs
David Zeuthen [Sat, 23 Apr 2011 21:43:03 +0000 (17:43 -0400)]
gdbus-codegen: Include docs for generated code in the GIO docs

Signed-off-by: David Zeuthen <davidz@redhat.com>