platform/upstream/glib.git
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>
13 years agodocs: fix typos in networking classes
Thomas Hindoe Paaboel Andersen [Wed, 20 Apr 2011 17:08:06 +0000 (19:08 +0200)]
docs: fix typos in networking classes

13 years agoGDBusObjectManagerServer: make export() return whether the object was removed
David Zeuthen [Wed, 20 Apr 2011 15:54:24 +0000 (11:54 -0400)]
GDBusObjectManagerServer: make export() return whether the object was removed

This is useful in conjunction with g_warn_if_fail().

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGSocketService: clarify transfer semantics of incoming connections
Dan Winship [Wed, 20 Apr 2011 15:24:46 +0000 (11:24 -0400)]
GSocketService: clarify transfer semantics of incoming connections

The @connection parameter to the ::incoming signal is (transfer none),
so you need to ref it if you want to keep it.

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

13 years agogdbus-codegen: Document the generated FOO_PEEK_BAR() and FOO_GET_BAR() macros
David Zeuthen [Wed, 20 Apr 2011 13:00:16 +0000 (09:00 -0400)]
gdbus-codegen: Document the generated FOO_PEEK_BAR() and FOO_GET_BAR() macros

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Generate gtk-doc section docs
David Zeuthen [Tue, 19 Apr 2011 18:39:47 +0000 (14:39 -0400)]
gdbus-codegen: Generate gtk-doc section docs

This is nice to have if using gtk-doc on the generated code. We could
also generate -sections.txt and .types files but we don't do that
right now...

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Set nick+blurb for properties to shut up gtk-doc
David Zeuthen [Tue, 19 Apr 2011 17:42:28 +0000 (13:42 -0400)]
gdbus-codegen: Set nick+blurb for properties to shut up gtk-doc

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: It's GDBusProxyTypeFunc, not GDBusProxyFunc
David Zeuthen [Tue, 19 Apr 2011 17:39:12 +0000 (13:39 -0400)]
gdbus-codegen: It's GDBusProxyTypeFunc, not GDBusProxyFunc

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Document the generated ObjectManagerClient structs
David Zeuthen [Tue, 19 Apr 2011 17:16:10 +0000 (13:16 -0400)]
gdbus-codegen: Document the generated ObjectManagerClient structs

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Add "Returns:" blurb for generated get_proxy_type()
David Zeuthen [Tue, 19 Apr 2011 17:10:25 +0000 (13:10 -0400)]
gdbus-codegen: Add "Returns:" blurb for generated get_proxy_type()

This was forgotten.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Generate docs when generating C code
David Zeuthen [Mon, 18 Apr 2011 18:23:19 +0000 (14:23 -0400)]
gdbus-codegen: Generate docs when generating C code

This is handy for both gtk-doc and gobject-introspection.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAPI: testutils: Add g_test_fail()
Benjamin Otte [Fri, 15 Apr 2011 01:23:12 +0000 (03:23 +0200)]
API: testutils: Add g_test_fail()

This allows tests to fail in a nonfatal way and the test runner can
continue if invoked with -k.

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

13 years agotestutils: Sprinkle code with newlines
Benjamin Otte [Mon, 18 Apr 2011 12:45:53 +0000 (14:45 +0200)]
testutils: Sprinkle code with newlines

Readable code ftw!

13 years agotestutils: Return number of bad tests from g_test_run_suite_internal()
Benjamin Otte [Mon, 18 Apr 2011 12:41:51 +0000 (14:41 +0200)]
testutils: Return number of bad tests from g_test_run_suite_internal()

In particular do not return a boolean disguised as an int.

13 years agotestutils: Remove unused variable
Benjamin Otte [Mon, 18 Apr 2011 12:37:24 +0000 (14:37 +0200)]
testutils: Remove unused variable

13 years agotestutils: Return a boolean from g_test_case_run()
Benjamin Otte [Mon, 18 Apr 2011 12:35:58 +0000 (14:35 +0200)]
testutils: Return a boolean from g_test_case_run()

Return value is intened to be TRUE for success, FALSE for failure.
Currently we return TRUE all the time.
Previously the test returned 0 all the time.

13 years agoGDBusObjectManagerClient: Add a GDestroyNotify to the user_data
David Zeuthen [Sat, 16 Apr 2011 19:24:42 +0000 (15:24 -0400)]
GDBusObjectManagerClient: Add a GDestroyNotify to the user_data

For bindings, obviously.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Add some gobject-introspection annotations for new code
David Zeuthen [Sat, 16 Apr 2011 18:42:21 +0000 (14:42 -0400)]
GDBus: Add some gobject-introspection annotations for new code

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Make generated code introspectable
David Zeuthen [Sat, 16 Apr 2011 18:07:23 +0000 (14:07 -0400)]
gdbus-codegen: Make generated code introspectable

Specific changes

 - Use get_type(), not get_gtype() for the GType function
   - so we need to use the lower-case name type_ for properties called type
 - Don't return a function pointer, just make the function returned
   available instead
 - Add (type) annotations in constructors so g-ir-scanner detects them as such
 - Add (transfer none) annotations to property getters
 - Add (out) annotations to D-Bus method call functions

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Nuke debug spew
David Zeuthen [Fri, 15 Apr 2011 20:36:54 +0000 (16:36 -0400)]
gdbus-codegen: Nuke debug spew

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Never emit empty PropertiesChanged signals
David Zeuthen [Fri, 15 Apr 2011 20:11:43 +0000 (16:11 -0400)]
gdbus-codegen: Never emit empty PropertiesChanged signals

It's not that it's actually a bug to do so per se, strictly speaking,
it's just pointless and wasteful.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Don't send out PropertiesChanged if value ends up not changing
David Zeuthen [Fri, 15 Apr 2011 19:53:28 +0000 (15:53 -0400)]
gdbus-codegen: Don't send out PropertiesChanged if value ends up not changing

A fairly typical pattern is to have code that does

 foo_set_bar (object, "");
 if (some_condition)
   {
     foo_set_bar (object, "yes");
   }

where some_condition is often true every time @object is updated.

With this code, bar is essentially always "yes" but because of how
gdbus-codegen works, useless PropertiesChanged events got scheduled
and sent out. With this patch, we avoid that by always keeping the
original value around and comparing it only when we deem it's time to
send out the ::PropertiesChanged signal (typically in an idle but can
be forced by the user via flush()).

Also add a test case for this.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoFix some compiler warnings from gcc 4.6
Colin Walters [Fri, 15 Apr 2011 19:51:25 +0000 (15:51 -0400)]
Fix some compiler warnings from gcc 4.6

13 years agogapplication: Fix typo in property
Colin Walters [Thu, 14 Apr 2011 20:03:18 +0000 (16:03 -0400)]
gapplication: Fix typo in property

13 years agogdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
David Zeuthen [Fri, 15 Apr 2011 17:51:10 +0000 (13:51 -0400)]
gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Add support for the org.freedesktop.DBus.Deprecated annotation
David Zeuthen [Fri, 15 Apr 2011 16:56:07 +0000 (12:56 -0400)]
gdbus-codegen: Add support for the org.freedesktop.DBus.Deprecated annotation

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGApplication: #include "gsettings.h"
Ryan Lortie [Fri, 15 Apr 2011 13:30:24 +0000 (09:30 -0400)]
GApplication: #include "gsettings.h"

Since we call g_settings_sync() from there now...

13 years agoMerge remote-tracking branch 'gvdb/master'
Ryan Lortie [Fri, 15 Apr 2011 13:29:47 +0000 (09:29 -0400)]
Merge remote-tracking branch 'gvdb/master'

13 years agobuilder: do not include <unistd.h> on win32
Ryan Lortie [Fri, 15 Apr 2011 13:27:38 +0000 (09:27 -0400)]
builder: do not include <unistd.h> on win32

Spotted by Kean Johnston <kean.johnston@gmail.com>.

https://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00010.html

13 years agogdbus-codegen: Include a blurb about the license of the generated code
David Zeuthen [Fri, 15 Apr 2011 12:48:21 +0000 (08:48 -0400)]
gdbus-codegen: Include a blurb about the license of the generated code

More precisely, include this line

 The license of this code is the same as for the source it was derived from.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Use the right program name in introductory comment (again)
David Zeuthen [Fri, 15 Apr 2011 12:44:05 +0000 (08:44 -0400)]
gdbus-codegen: Use the right program name in introductory comment (again)

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Use the right program name in introductory comment
David Zeuthen [Fri, 15 Apr 2011 12:40:52 +0000 (08:40 -0400)]
gdbus-codegen: Use the right program name in introductory comment

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Add copyright / license headers
David Zeuthen [Fri, 15 Apr 2011 12:33:30 +0000 (08:33 -0400)]
gdbus-codegen: Add copyright / license headers

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Support Ugly_Case and use org.gtk.GDBus.C.Name since it's C-only
David Zeuthen [Fri, 15 Apr 2011 12:24:40 +0000 (08:24 -0400)]
GDBus: Support Ugly_Case and use org.gtk.GDBus.C.Name since it's C-only

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoBug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD
Michael Kuhn [Wed, 22 Dec 2010 09:11:11 +0000 (10:11 +0100)]
Bug 637561 - Crash when using G_DBUS_SERVER_FLAGS_RUN_IN_THREAD

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years ago/gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8
Simon McVittie [Thu, 31 Mar 2011 12:58:55 +0000 (13:58 +0100)]
/gdbus/message-serialize-invalid test: be compatible with D-Bus 1.4.8

Older versions of libdbus would let you construct an invalid
DBusMessage, but that's a bug, which will be fixed in 1.4.8/1.5.0.
Instead, construct a valid message of the same length, then replace
substrings in the serialized blob with their invalid counterparts.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGLocalFile: Use _fstati64 rather than stat on Win32
Kean Johnston [Fri, 15 Apr 2011 08:15:04 +0000 (10:15 +0200)]
GLocalFile: Use _fstati64 rather than stat on Win32

We want this to get 64bit timestamps and file lenghts.

13 years agoSlight docs rewording
Matthias Clasen [Fri, 15 Apr 2011 00:41:54 +0000 (20:41 -0400)]
Slight docs rewording

Proposed by Thomas Andersen,
https://bugzilla.gnome.org/show_bug.cgi?id=647700

13 years agoGResolver: Don't return duplicate addresses
David Zeuthen [Thu, 14 Apr 2011 15:27:57 +0000 (11:27 -0400)]
GResolver: Don't return duplicate addresses

... this was causing a GDBus test-case to fail so now that it is
fixed, also reenable the test case.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGInetAddress: add equal() method
David Zeuthen [Thu, 14 Apr 2011 15:27:57 +0000 (11:27 -0400)]
GInetAddress: add equal() method

This is needed in the fix for

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGTimeZone: fix non-threadsafe refcounting
Ryan Lortie [Thu, 14 Apr 2011 13:54:17 +0000 (09:54 -0400)]
GTimeZone: fix non-threadsafe refcounting

In the previous code, if the timezone was pulled out of the cache again
just as the last reference was being dropped, the cache code will
increase its refcount and return it while the unref code was freeing it.

Protect against that.

Closes #646435.

13 years agoGDBus: If an authentication method fail, don't give up, just try the next one
David Zeuthen [Wed, 13 Apr 2011 22:40:47 +0000 (18:40 -0400)]
GDBus: If an authentication method fail, don't give up, just try the next one

This problem was reported in bug 647602.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Add test case for the ANONYMOUS authentication method
David Zeuthen [Wed, 13 Apr 2011 22:21:16 +0000 (18:21 -0400)]
GDBus: Add test case for the ANONYMOUS authentication method

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Nuke debug spew from the ANONYMOUS authentication method
David Zeuthen [Wed, 13 Apr 2011 22:19:57 +0000 (18:19 -0400)]
GDBus: Nuke debug spew from the ANONYMOUS authentication method

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Allow tcp: and nonce-tcp: addresses without any arguments
David Zeuthen [Wed, 13 Apr 2011 21:49:19 +0000 (17:49 -0400)]
GDBus: Allow tcp: and nonce-tcp: addresses without any arguments

This was broken in this commit

 http://git.gnome.org/browse/glib/commit/?id=0729260141bb585943ad1c6efa8ab7ee9058b0aa

The test case for catching this is unfortunately commented out (so it
didn't catch it) due to this bug

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

still being unresolved.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBusInterfaceStub: Clarify ::g-authorize-method docs
David Zeuthen [Wed, 13 Apr 2011 20:39:50 +0000 (16:39 -0400)]
GDBusInterfaceStub: Clarify ::g-authorize-method docs

As suggested by Simon in https://bugzilla.gnome.org/show_bug.cgi?id=647577#c11

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Use Skeleton instead of Stub
David Zeuthen [Wed, 13 Apr 2011 20:33:51 +0000 (16:33 -0400)]
GDBus: Use Skeleton instead of Stub

After some brainstorming with Simon, see

 https://bugzilla.gnome.org/show_bug.cgi?id=647577#c8

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbusconnection: Avoid tripping assertion if we fail to authenticate twice
Colin Walters [Wed, 13 Apr 2011 18:03:58 +0000 (14:03 -0400)]
gdbusconnection: Avoid tripping assertion if we fail to authenticate twice

If g_bus_get_sync() fails in authentication (because e.g. the process
uid, doesn't match the expected in EXTERNAL), a secondary call to
g_bus_get_sync() would notice we aren't initialized, and try
to initialize.

The assertion here is just wrong; we now explicitly and clearly handle
both cases where we already have an error, or we already succeeded.

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

13 years agoG_VARIANT_TYPE_VARDICT: Add 'Since:' tag
Ryan Lortie [Wed, 13 Apr 2011 15:46:33 +0000 (11:46 -0400)]
G_VARIANT_TYPE_VARDICT: Add 'Since:' tag

13 years agoGDBusInterfaceStub: Use G_VARIANT_TYPE_VARDICT when referring to type a{sv}
David Zeuthen [Wed, 13 Apr 2011 15:35:06 +0000 (11:35 -0400)]
GDBusInterfaceStub: Use G_VARIANT_TYPE_VARDICT when referring to type a{sv}

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoBump version
Matthias Clasen [Wed, 13 Apr 2011 12:48:10 +0000 (08:48 -0400)]
Bump version

13 years agoSkip the writable test if the file is not writable 2.29.2
Matthias Clasen [Wed, 13 Apr 2011 12:19:35 +0000 (08:19 -0400)]
Skip the writable test if the file is not writable

Since make distcheck operates on a readonly source tree.

13 years agoFix non-srcdir builds
Matthias Clasen [Wed, 13 Apr 2011 05:31:19 +0000 (01:31 -0400)]
Fix non-srcdir builds

13 years agoMore updates
Matthias Clasen [Wed, 13 Apr 2011 04:42:51 +0000 (00:42 -0400)]
More updates

13 years agoFix a typo in the GSettings docs
Matthias Clasen [Wed, 13 Apr 2011 04:39:01 +0000 (00:39 -0400)]
Fix a typo in the GSettings docs

Pointed out by Thomas Andersen
https://bugzilla.gnome.org/show_bug.cgi?id=647600

13 years agogdbus-codegen: Shorten man page title
David Zeuthen [Wed, 13 Apr 2011 00:40:25 +0000 (20:40 -0400)]
gdbus-codegen: Shorten man page title

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Use CDATA to make gtk-doc avoid expanding certain strings
David Zeuthen [Wed, 13 Apr 2011 00:28:06 +0000 (20:28 -0400)]
gdbus-codegen: Use CDATA to make gtk-doc avoid expanding certain strings

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGDBus: Minor renames and doc fixes
David Zeuthen [Wed, 13 Apr 2011 00:15:48 +0000 (20:15 -0400)]
GDBus: Minor renames and doc fixes

As requested by Simon in https://bugzilla.gnome.org/show_bug.cgi?id=647577

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogdbus-codegen: Mention that @since can be used
David Zeuthen [Tue, 12 Apr 2011 21:12:26 +0000 (17:12 -0400)]
gdbus-codegen: Mention that @since can be used

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoAdd support for org.gtk.GDBus.Since annotation
David Zeuthen [Tue, 12 Apr 2011 20:17:28 +0000 (16:17 -0400)]
Add support for org.gtk.GDBus.Since annotation

And use this for a) documentation purposes; and b) to preserve C ABI
when an interface is extended. See

 https://bugzilla.gnome.org/show_bug.cgi?id=647577#c5

for more details. Also add test cases for this.

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agogsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
Colin Walters [Tue, 12 Apr 2011 16:56:33 +0000 (12:56 -0400)]
gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page

13 years agogsettings: Implement reset-recursively
Colin Walters [Tue, 12 Apr 2011 15:00:54 +0000 (11:00 -0400)]
gsettings: Implement reset-recursively

Motivation was the ability to:
$ gsettings reset-recursively org.gnome.gnome-panel

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

13 years agogdbus-codegen: Add --c-generate-object-manager option + doc improvements
David Zeuthen [Tue, 12 Apr 2011 15:50:34 +0000 (11:50 -0400)]
gdbus-codegen: Add --c-generate-object-manager option + doc improvements

Signed-off-by: David Zeuthen <davidz@redhat.com>
13 years agoGLocalDirectoryMonitor: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:02:31 +0000 (10:02 -0400)]
GLocalDirectoryMonitor: Improve struct packing

13 years agoGIOSchedulerJob: Improve struct packing
Matthias Clasen [Tue, 12 Apr 2011 14:02:12 +0000 (10:02 -0400)]
GIOSchedulerJob: Improve struct packing