platform/upstream/glib.git
14 years agoBug 620582 - a simple GPermission implementation
Ryan Lortie [Fri, 4 Jun 2010 20:32:01 +0000 (22:32 +0200)]
Bug 620582 - a simple GPermission implementation

add GSimplePermission, a trivial const implementation of GPermission

can-request and can-release are always false for this implementation and
the value of 'allowed' is decided at construction.

14 years agoUpdated Slovenian translation
Matej Urbančič [Fri, 4 Jun 2010 18:03:41 +0000 (20:03 +0200)]
Updated Slovenian translation

14 years agoBug 620519 - GPermission
Ryan Lortie [Thu, 3 Jun 2010 20:58:52 +0000 (22:58 +0200)]
Bug 620519 - GPermission

Add an abstract interface representing the permission to perform an
action.

14 years agoGio: gioenums.h: Remove trailing commas to avoid C++ warnings.
Murray Cumming [Fri, 4 Jun 2010 15:07:05 +0000 (17:07 +0200)]
Gio: gioenums.h: Remove trailing commas to avoid C++ warnings.

14 years agogdbusaddress: Fix typo
Javier Jardón [Sun, 30 May 2010 12:56:55 +0000 (14:56 +0200)]
gdbusaddress: Fix typo

14 years agoUpdated Esperanto translation
Kristjan Schmidt [Thu, 3 Jun 2010 16:19:31 +0000 (18:19 +0200)]
Updated Esperanto translation

14 years agoDon't spew a g_warning if inotify setup fails
Matthias Clasen [Thu, 3 Jun 2010 15:40:02 +0000 (11:40 -0400)]
Don't spew a g_warning if inotify setup fails

We use is_supported when we are trying to find a local file monitor
implementation that works, and having the g_warning in there trips
the test suite.

14 years agoBug 620350 - add g_variant_builder_add_parsed()
Ryan Lortie [Thu, 3 Jun 2010 09:24:31 +0000 (11:24 +0200)]
Bug 620350 - add g_variant_builder_add_parsed()

A delicious blend of g_variant_new_parsed() and
g_variant_builder_add_value().  Now available in a GLib near you.

14 years agoBug 620349 – utf8ify GVariant printer
Ryan Lortie [Thu, 3 Jun 2010 07:41:33 +0000 (09:41 +0200)]
Bug 620349 – utf8ify GVariant printer

Take advantage of our knowledge that GVariant strings are always valid
utf8 when printing and parsing:

  - allow valid printing unicode characters to pass through unescaped

  - escape non-printing characters using \uxxxx or \Uxxxxxxxx format

  - do the same in the parser

  - update existing test cases to use utf8, add a new test case

14 years agoAnnotate GVariant and GSettings _strv() functions
Milan Bouchet-Valat [Wed, 2 Jun 2010 14:05:13 +0000 (16:05 +0200)]
Annotate GVariant and GSettings _strv() functions

Add GObject introspection annotations so that the length parameter is
correctly detected for g_variant_new_strv(), g_variant_get_strv() and
g_variant_dup_strv(). Also specify that it can be a NULL pointer in
g_variant_get_strv() and g_variant_dup_strv().

For g_settings_set_strv(), detect that a NULL value is allowed, meaning
empty array.

Closes bug #620384.

Signed-off-by: Ryan Lortie <desrt@desrt.ca>
14 years agoimprove gitignore (systemtap)
Ryan Lortie [Wed, 2 Jun 2010 17:34:45 +0000 (19:34 +0200)]
improve gitignore (systemtap)

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 2 Jun 2010 13:41:01 +0000 (15:41 +0200)]
Updated Norwegian bokmål translation

14 years agoSupport NULL value for g_settings_set_strv()
Ryan Lortie [Wed, 2 Jun 2010 02:00:58 +0000 (04:00 +0200)]
Support NULL value for g_settings_set_strv()

Allow easy setting of the empty array that we lost with the last patch.

14 years agoRemove length parameter for g_settings_[gs]et_strv
Milan Bouchet-Valat [Tue, 1 Jun 2010 21:16:19 +0000 (23:16 +0200)]
Remove length parameter for g_settings_[gs]et_strv

Length of the array is redundant since it's NULL-terminated. This is not
consistent with many GLib and GTK+ functions, and adds complexity with
no real gain, while these convenience functions should be kept simple.

Closes bug #620312

14 years agoUpdated Spanish translation
Jorge González [Sun, 30 May 2010 16:23:21 +0000 (18:23 +0200)]
Updated Spanish translation

14 years agoUpdated Galician translations
Fran Diéguez [Sun, 30 May 2010 15:43:57 +0000 (17:43 +0200)]
Updated Galician translations

14 years agoUpdated Indonesian translation
Andika Triwidada [Sun, 30 May 2010 10:10:51 +0000 (17:10 +0700)]
Updated Indonesian translation

14 years agoUpdated Spanish translation
Jorge González [Sat, 29 May 2010 10:06:16 +0000 (12:06 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Jorge González [Fri, 28 May 2010 18:21:02 +0000 (20:21 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Jorge González [Fri, 28 May 2010 17:45:51 +0000 (19:45 +0200)]
Updated Spanish translation

14 years agoUpdated Hebrew translation.
Yaron Shahrabani [Fri, 28 May 2010 13:57:56 +0000 (16:57 +0300)]
Updated Hebrew translation.

14 years agoUpdated Hebrew translation.
Yaron Shahrabani [Fri, 28 May 2010 13:54:58 +0000 (16:54 +0300)]
Updated Hebrew translation.

14 years agoAfter talk with FEN dev, we dicide simply disable monitor function if
Lin Ma [Fri, 28 May 2010 08:57:10 +0000 (16:57 +0800)]
After talk with FEN dev, we dicide simply disable monitor function if
the current filesystem doesn't suport FEN.

14 years agoAdd dtrace and systemtap support for gobject
Alexander Larsson [Fri, 1 Jan 2010 20:39:52 +0000 (21:39 +0100)]
Add dtrace and systemtap support for gobject

This adds static markers and systemtap tapsets for:

* type creation
* object lifetimes (creation, ref, unref, dispose, finalize)
* signal creation and emission

Signal emissions and finalization marker have a corresponding
*_end (or *-end in dtrace) version that is when the corresponding
operation is finished.

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

14 years agoInitial support for dtrace and systemtap
Alexander Larsson [Fri, 18 Dec 2009 20:25:47 +0000 (21:25 +0100)]
Initial support for dtrace and systemtap

This adds static markers for dtrace, which are also usable
by systemtap. Additionally it adds a tapset for systemtap
that makes it easier to use the static markers.

These are enabled by default.

This initial set of probes is rather limited:

* allocation and free using g_malloc & co
* allocation and free using g_slice
* gquark name tracking (useful for converting quarks to strings in probes)

Notes on naming:

Its traditional with dtrace to use probe names with dashes as
delimiter (slice-alloc). Since dashes are not usable in identifiers
the C code uses double underscores (slice__alloc) which is converted
to dashes in the UI. We follow this for the shared lowlevel probe
names.

Additionally dtrace supports putting a "provider" part in the probe
names which is essentially a namespacing thing. On systemtap this
field is currently ignored (but may be implemented in the future), but
this is not really a problem since in systemtap the probes are
specified by combining the solib file and the marker name, so there
can't really be name conflicts.

For the systemtap tapset highlevel probes we instead use names that
are systemtapish with single dashes as separators.

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

14 years agoOptimized the overlong sequence check in g_utf8_get_char_extended()
Mikhail Zabaluev [Thu, 27 May 2010 18:00:12 +0000 (14:00 -0400)]
Optimized the overlong sequence check in g_utf8_get_char_extended()

Rather make it branch to get the due sequence length for the resulting
character code, we can as well get the minimum code value in the initial
branching.

14 years agoGSettings schema docs: mention need for EXTRA_DIST
Ryan Lortie [Thu, 27 May 2010 17:11:49 +0000 (13:11 -0400)]
GSettings schema docs: mention need for EXTRA_DIST

Mention that you will need to use EXTRA_DIST for your schema file if it
is distributed with your project.

14 years agoRemove duplicate copies of migration docs
Ryan Lortie [Thu, 27 May 2010 17:07:54 +0000 (13:07 -0400)]
Remove duplicate copies of migration docs

Fixup for commit 133f66538dbf266be3c99b34f1eeee0a5e6068ac which
duplicated the contents of most of the migration documentation by
splitting it out into separate files but keeping the original file
intact (with a rename).

This removes the duplicated content from the renamed file.

14 years agogsettings m4: check for .xml in src/builddir
Ryan Lortie [Thu, 27 May 2010 15:58:54 +0000 (11:58 -0400)]
gsettings m4: check for .xml in src/builddir

This checks for the .gschema.xml file in the srcdir and builddir and
runs the schema validation on which one it finds.  This handles
non-srcdir builds in both cases: .gschema.xml is in the tarball and
.gschema.xml is generated.

14 years agoGVariant: One more FreeBSD fix
Ryan Lortie [Thu, 27 May 2010 15:32:34 +0000 (11:32 -0400)]
GVariant: One more FreeBSD fix

FreeBSD's malloc() sometimes returns unaligned memory if you are
requesting small sizes.  This can get GVariant into trouble.  For
example, consider the type "mmi" containing the value "just nothing".
According to the type signature, the memory containing this should be
aligned to a boundary of 4 since it might contain an int.  The
serialised size of this value is 1 byte, however, and when you ask
FreeBSD to allocate memory of that size, it knows you can't put an int
into it so it doesn't bother aligning it.

This patch modifies the GVariant serialiser to not assert the alignment
constraint in the case that the size of the serialised data is smaller
than its own alignment requirement.

14 years agoMore alignment-related fixes.
Ryan Lortie [Thu, 27 May 2010 03:34:31 +0000 (23:34 -0400)]
More alignment-related fixes.

Partial-backout 8a21d8d23317ecebe46007f1fd5f7459bf182415.  The
assertions should have remained relaxed since these functions are used
with non-posix_memalign()ed data.

14 years agoRemove unused code.
Lin Ma [Thu, 27 May 2010 02:24:58 +0000 (10:24 +0800)]
Remove unused code.

14 years agoinclude "config.h" for HAVE_POSIX_MEMALIGN
Ryan Lortie [Wed, 26 May 2010 21:35:18 +0000 (17:35 -0400)]
include "config.h" for HAVE_POSIX_MEMALIGN

14 years agoUse aligned memory in GVariant test cases.
Ryan Lortie [Wed, 26 May 2010 21:31:52 +0000 (17:31 -0400)]
Use aligned memory in GVariant test cases.

The GVariant serialiser works well with non-8-aligned memory, but the
comparison serialiser in the test case depends on memory being
8-aligned.  Use posix_memalign() to get the memory used by this
serialiser.

14 years ago[mainloop-test] Fix compilation errors
Colin Walters [Wed, 26 May 2010 20:21:15 +0000 (16:21 -0400)]
[mainloop-test] Fix compilation errors

14 years ago[tests/gvariant] Handle flavored_free(NULL), since flavored_malloc can return NULL
Colin Walters [Wed, 26 May 2010 19:59:36 +0000 (15:59 -0400)]
[tests/gvariant] Handle flavored_free(NULL), since flavored_malloc can return NULL

14 years agoUpdated Spanish translation
Jorge González [Wed, 26 May 2010 16:12:22 +0000 (18:12 +0200)]
Updated Spanish translation

14 years agoUpdated Spanish translation
Jorge González [Wed, 26 May 2010 16:09:46 +0000 (18:09 +0200)]
Updated Spanish translation

14 years agobugster#6955199, on hsfs portfs will fail, and FEN backend will fail
Lin Ma [Wed, 26 May 2010 06:32:37 +0000 (14:32 +0800)]
bugster#6955199, on hsfs portfs will fail, and FEN backend will fail
to run lstat and port_associate on root node.

14 years agoGSource: add g_source_set_name, g_source_get_name, g_source_set_name_by_id
Havoc Pennington [Tue, 20 Apr 2010 21:47:44 +0000 (17:47 -0400)]
GSource: add g_source_set_name, g_source_get_name, g_source_set_name_by_id

These allow applications to give meaningful names to their sources.
Source names can then be used for debugging and profiling, for
example with systemtap or gdb.

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

14 years agoGSource: add g_source_set_name, g_source_get_name, g_source_set_name_by_id
Havoc Pennington [Tue, 20 Apr 2010 21:47:44 +0000 (17:47 -0400)]
GSource: add g_source_set_name, g_source_get_name, g_source_set_name_by_id

These allow applications to give meaningful names to their sources.
Source names can then be used for debugging and profiling, for
example with systemtap or gdb.

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

14 years agoGDBus: Big-endian fixes
David Zeuthen [Tue, 25 May 2010 15:59:57 +0000 (11:59 -0400)]
GDBus: Big-endian fixes

Tested this on my Powerbook G4 12", 867MHz PowerPC G4 running Fedora
11ish.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGVariant: deal with non-8-aligned malloc()
Ryan Lortie [Tue, 25 May 2010 15:25:34 +0000 (11:25 -0400)]
GVariant: deal with non-8-aligned malloc()

Closes bug #619585.

14 years agoDocument that vtable is not copied
Matthias Clasen [Tue, 25 May 2010 14:43:29 +0000 (10:43 -0400)]
Document that vtable is not copied

14 years agoUpdated Galician translations
Fran Diéguez [Tue, 25 May 2010 07:56:33 +0000 (09:56 +0200)]
Updated Galician translations

14 years ago.gitignore manpages (*.1)
Ryan Lortie [Tue, 25 May 2010 03:21:01 +0000 (23:21 -0400)]
.gitignore manpages (*.1)

14 years agopost-release version bump.
Ryan Lortie [Tue, 25 May 2010 03:03:36 +0000 (23:03 -0400)]
post-release version bump.

14 years agoRelease 2.25.7. glib-2.25.7
Ryan Lortie [Tue, 25 May 2010 03:02:18 +0000 (23:02 -0400)]
Release 2.25.7.

14 years agoanother occurrence of the last fix (@XSLTPROC@)
Ryan Lortie [Tue, 25 May 2010 02:37:43 +0000 (22:37 -0400)]
another occurrence of the last fix (@XSLTPROC@)

14 years agoman pages: fix broken @XSLTPROC@ substitution
Ryan Lortie [Tue, 25 May 2010 02:35:33 +0000 (22:35 -0400)]
man pages: fix broken @XSLTPROC@ substitution

14 years agochange GSettingsBackend.list() API
Ryan Lortie [Tue, 25 May 2010 02:20:47 +0000 (22:20 -0400)]
change GSettingsBackend.list() API

14 years agoImprove the g_file_make_symbolic_link docs
Matthias Clasen [Tue, 25 May 2010 01:09:55 +0000 (21:09 -0400)]
Improve the g_file_make_symbolic_link docs

Following a proposal by Neil Williams in bug 619527.

14 years agoGIO: Add g_d{,c}gettext to PLT check exceptions
Ryan Lortie [Mon, 24 May 2010 21:03:26 +0000 (17:03 -0400)]
GIO: Add g_d{,c}gettext to PLT check exceptions

14 years agoGDBusConnection.call(): add 'reply_type' argument
Ryan Lortie [Mon, 24 May 2010 20:46:24 +0000 (16:46 -0400)]
GDBusConnection.call(): add 'reply_type' argument

This allows the caller to specify the reply type that they are expecting
for this call.  If the reply comes back with the wrong type, GDBus will
generate an appropriate error internally.

  - add a GVariantType * argument to g_dbus_connection_call() and
    _call_sync().

  - move the internal API for computing message types from introspection
    data to be based on GVariantType instead of strings.  Update users
    of this code.

  - have GDBusProxy pass this calculated GVariantType into
    g_dbus_connection_call().  Remove the checks done in GDBusProxy.

  - Update other users of the code (test cases, gdbus-tool, GSettings
    tool, etc).  In some cases, remove redundant checks; in some other
    cases, we are fixing bugs because no checking was done where it
    should have been.

Closes bug #619391.

14 years agoFix up a typo in the g_variant_builder_add() docs
Richard Hughes [Mon, 24 May 2010 16:22:38 +0000 (17:22 +0100)]
Fix up a typo in the g_variant_builder_add() docs

14 years agoMost of the gdbus test programs build only on Unix
Tor Lillqvist [Mon, 24 May 2010 08:22:41 +0000 (11:22 +0300)]
Most of the gdbus test programs build only on Unix

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sun, 23 May 2010 14:27:17 +0000 (16:27 +0200)]
Updated Norwegian bokmål translation

14 years agoAdd two missing files
Kjartan Maraas [Sun, 23 May 2010 14:27:08 +0000 (16:27 +0200)]
Add two missing files

14 years agoUpdated Galician translations
Fran Diéguez [Sat, 22 May 2010 22:22:48 +0000 (00:22 +0200)]
Updated Galician translations

14 years agoUpdated Galician translations
Fran Diéguez [Sat, 22 May 2010 22:20:26 +0000 (00:20 +0200)]
Updated Galician translations

14 years agoUpdated Galician translations
Fran Diéguez [Thu, 20 May 2010 19:52:11 +0000 (21:52 +0200)]
Updated Galician translations

14 years agoClean up man page handling
Matthias Clasen [Sat, 22 May 2010 02:28:42 +0000 (22:28 -0400)]
Clean up man page handling

Remove all formatted man pages from git, and use the same
Makefile fragment in all doc dirs.

14 years agoadd .SECONDARY: rule to preserve generated schemas
Ryan Lortie [Sat, 22 May 2010 00:08:49 +0000 (20:08 -0400)]
add .SECONDARY: rule to preserve generated schemas

If the .gschema.xml file was generated as the result of an implicit make
rule then make would 'rm' it after creating the validity stamp.  This
would cause 'make install' to fail.

14 years agoReturn an error for calls into unknown interfaces or unknown objects
David Zeuthen [Fri, 21 May 2010 16:09:27 +0000 (12:09 -0400)]
Return an error for calls into unknown interfaces or unknown objects

Ryan pointed out on IRC that we didn't do anything here. Looking at
the code, it's painfully obvious that we should be returning an error
here since a comment already says that we've exhausted all possible
options.

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoUse stack-allocated GVariantBuilders
Christian Persch [Fri, 14 May 2010 12:00:24 +0000 (14:00 +0200)]
Use stack-allocated GVariantBuilders

This saves a few allocations.
Also simplify the code a bit in gdbusconnection.

Bug #618616.

14 years agoAdd g_dc[p]gettext, and use it in gsettings
Christian Persch [Wed, 19 May 2010 22:54:51 +0000 (00:54 +0200)]
Add g_dc[p]gettext, and use it in gsettings

Avoid using LC_MESSAGES, and just call g_d[c]gettext directly.

Bug #617004.

14 years agoUpdated Galician translations
Fran Diéguez [Thu, 20 May 2010 17:30:39 +0000 (19:30 +0200)]
Updated Galician translations

14 years agoBug 619142 – Build fixes
David Zeuthen [Thu, 20 May 2010 14:51:00 +0000 (10:51 -0400)]
Bug 619142 – Build fixes

 - Fix various #include issues

 - Change #error to #warning for the EXTERNAL authentication mechanism.
   It is not clear if this should work on Win32 at all.

 - Call close() before unlink() for the SHA1 keyring

 - Change #error to #warning so we don't forget to do
   permission checking of the .dbus-keyrings directory

 - Use Win32 SID for the SHA1 auth mech

 - Apparently we can't use word 'interface' as an identifier

 - Implement a _g_dbus_win32_get_user_sid() function. For now it's
   private. Don't know if it should be public somewhere. Maybe in
   a future GCredentials support for Win32? I don't know.

 - GFileDescriptorBased is not available on Win32. So avoid using
   it in GLocalFile stuff. Now, Win32 still uses GLocalFile + friends
   (which works with file descriptors) so expose a private function
   to get the fd for an OutputStream so things still work.

 - Fixup gio.symbols

 - Fixup tests/gdbus-peer.c so it builds

With this, at least things compile and the gdbus-peer.exe test case
passes. Which is a great start. I've tested this by cross-compiling on
a x86_64 Fedora 13 host using mingw32 and running the code on a 32-bit
Windows 7 box.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoEstonian translation updated
Ivar Smolin [Thu, 20 May 2010 11:56:46 +0000 (14:56 +0300)]
Estonian translation updated

14 years agoAdd G_TYPE_CLASS_GET_PRIVATE macro to docs
Javier Jardón [Wed, 19 May 2010 23:55:58 +0000 (01:55 +0200)]
Add G_TYPE_CLASS_GET_PRIVATE macro to docs

14 years agoVersion bump.
Ryan Lortie [Wed, 19 May 2010 21:38:17 +0000 (17:38 -0400)]
Version bump.

14 years agoRelease 2.25.6 2.25.6
Ryan Lortie [Wed, 19 May 2010 21:32:42 +0000 (17:32 -0400)]
Release 2.25.6

14 years agoAdd --uninstall option to glib-compile-schemas
Ryan Lortie [Wed, 19 May 2010 20:02:05 +0000 (16:02 -0400)]
Add --uninstall option to glib-compile-schemas

If --uninstall is given then don't give an error if the schema directory
is empty.  Instead, erase the gschemas.compiled file, if it exists.
This is the right thing to do in the 'make uninstall' rule, where the
schema directory could very well be left empty as a result.

Modify gsettings.m4 to use this option.

14 years agoBug 619038 - increase gsettings.m4 power
Ryan Lortie [Tue, 18 May 2010 22:28:39 +0000 (18:28 -0400)]
Bug 619038 - increase gsettings.m4 power

handle schema checking, installation, uninstallation, cleaning

14 years agoMake config.h.win32.in match what configure produces
Tor Lillqvist [Wed, 19 May 2010 07:47:02 +0000 (10:47 +0300)]
Make config.h.win32.in match what configure produces

No semantic changes.

14 years agoglib-compile-schemas rename missed in docs
Ryan Lortie [Tue, 18 May 2010 22:24:04 +0000 (18:24 -0400)]
glib-compile-schemas rename missed in docs

change a mention of gschema_compile in the docs

14 years agoFix trivial typo in GCredentials code
Javier Jardón [Tue, 18 May 2010 21:45:54 +0000 (23:45 +0200)]
Fix trivial typo in GCredentials code

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

14 years agoBug 619031 - method-calls-in-thread test failing
Ryan Lortie [Tue, 18 May 2010 21:25:43 +0000 (17:25 -0400)]
Bug 619031 - method-calls-in-thread test failing

The test was assuming that g_timeout_add() waited for at least the amount of
time given to it before running the function.  This is not the case -- the
function can be run as much as 1ms early.  Make the lower time bound asserted
in the test more permissive to account for this.

14 years agoBug 618839 - Typo at translation message
Ryan Lortie [Tue, 18 May 2010 20:43:36 +0000 (16:43 -0400)]
Bug 618839  - Typo at translation message

Fix trivial typo in GCredentials code

14 years agoAdd sync method to GSettingsBackend, and pad
Ryan Lortie [Tue, 18 May 2010 20:13:58 +0000 (16:13 -0400)]
Add sync method to GSettingsBackend, and pad

14 years agowhitespace fix
Ryan Lortie [Tue, 18 May 2010 17:43:42 +0000 (13:43 -0400)]
whitespace fix

14 years agoAdd missing gunixfdlist.h include in gdbus-example-server.c
Robert Ancell [Tue, 18 May 2010 02:01:25 +0000 (12:01 +1000)]
Add missing gunixfdlist.h include in gdbus-example-server.c

14 years agoGDBus: Fix obvious crasher when looking up annotations
David Zeuthen [Mon, 17 May 2010 23:51:49 +0000 (19:51 -0400)]
GDBus: Fix obvious crasher when looking up annotations

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoUpdated Galician translations
Fran Diéguez [Mon, 17 May 2010 21:59:42 +0000 (23:59 +0200)]
Updated Galician translations

14 years agogdbus(1): Don't fetch props if introspection data indicates none are available
David Zeuthen [Mon, 17 May 2010 15:08:53 +0000 (11:08 -0400)]
gdbus(1): Don't fetch props if introspection data indicates none are available

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoGDBus: Fix introspection of objects registered at /
David Zeuthen [Mon, 17 May 2010 15:07:53 +0000 (11:07 -0400)]
GDBus: Fix introspection of objects registered at /

Signed-off-by: David Zeuthen <davidz@redhat.com>
14 years agoimprove thread safety in GDelayedSettingsBackend
Ryan Lortie [Sun, 16 May 2010 20:56:36 +0000 (16:56 -0400)]
improve thread safety in GDelayedSettingsBackend

  - hold a lock while accessing the tree of delayed values
  - use weak reference counts with the owner object to avoid doing
    g_object_notify on a dead object
  - dispatch the "has-unapplied" notify to the proper main context

14 years agoGSettingsBackend: make signal dispatch threadsafe
Ryan Lortie [Sun, 16 May 2010 18:17:34 +0000 (14:17 -0400)]
GSettingsBackend: make signal dispatch threadsafe

This commit fixes up a few race conditions in the GSettingsBackend, mostly with
respect to change notifications occuring at the same time as the last reference
count on a GSettings is dropped.  With GDBus feeding us our incoming signals in
a separate thread, this is something that could easily happen.

14 years agogitignore additions for gdbus, new test cases
Ryan Lortie [Sun, 16 May 2010 16:14:46 +0000 (18:14 +0200)]
gitignore additions for gdbus, new test cases

14 years agoGSettings: support emitting signals in threads
Ryan Lortie [Sun, 16 May 2010 11:02:23 +0000 (13:02 +0200)]
GSettings: support emitting signals in threads

The thread-default context that was in effect at the time that the
GSettings was created will be used for emitting signals on that
GSettings.

14 years agoGSettings tool: work-around GDBus issue
Ryan Lortie [Sun, 16 May 2010 11:03:34 +0000 (13:03 +0200)]
GSettings tool: work-around GDBus issue

There is currently no way (near as I can tell) to ensure that a message
has been sent when using GDBus.  If we exit() before we are sure, then
it is very possible that the message isn't sent at all.  This behaviour
was observed when using the GSettings commandline tool with dconf.

A quick and dirty workaround for now.

14 years agointern a key name instead of using strdup()
Ryan Lortie [Sun, 16 May 2010 08:19:46 +0000 (10:19 +0200)]
intern a key name instead of using strdup()

14 years agoReworked Solaris file event notification for GIO. See
Lin Ma [Mon, 17 May 2010 06:42:52 +0000 (14:42 +0800)]
Reworked Solaris file event notification for GIO. See
https://defect.opensolaris.org/bz/show_bug.cgi?id=10194

Updated copyright.

14 years agoUpdated Spanish translation
Jorge González [Mon, 17 May 2010 05:41:48 +0000 (07:41 +0200)]
Updated Spanish translation

14 years agoAdd GDBus files to POTFILES.in
Matthias Clasen [Sun, 16 May 2010 17:07:25 +0000 (13:07 -0400)]
Add GDBus files to POTFILES.in

14 years agoUpdated Galician translations
Fran Diéguez [Sun, 16 May 2010 14:31:25 +0000 (16:31 +0200)]
Updated Galician translations

14 years agoUpdated Indonesian translation
Andika Triwidada [Sun, 16 May 2010 09:30:38 +0000 (16:30 +0700)]
Updated Indonesian translation

14 years agoFix gio tests linking with binutils gold linker
Sebastian Dröge [Sat, 15 May 2010 08:17:35 +0000 (10:17 +0200)]
Fix gio tests linking with binutils gold linker

14 years agoFix build of gdbus tool with binutils gold linker
Sebastian Dröge [Sat, 15 May 2010 08:13:28 +0000 (10:13 +0200)]
Fix build of gdbus tool with binutils gold linker

14 years agoExpand information about schema translation
Matthias Clasen [Sat, 15 May 2010 22:23:23 +0000 (18:23 -0400)]
Expand information about schema translation

I have added some hints on how to use intltool for translation
of summary and description elements, taken from comments in bug #618523.