David Zeuthen
6bccc46d15
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>
2011-04-15 15:53:28 -04:00
Colin Walters
01602e1695
Fix some compiler warnings from gcc 4.6
2011-04-15 15:51:25 -04:00
Colin Walters
78203f3699
gapplication: Fix typo in property
2011-04-15 14:58:30 -04:00
David Zeuthen
cade3cb1da
gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 13:51:10 -04:00
David Zeuthen
e19734d6c3
gdbus-codegen: Add support for the org.freedesktop.DBus.Deprecated annotation
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 12:56:07 -04:00
Ryan Lortie
0f9b83dd36
GApplication: #include "gsettings.h"
...
Since we call g_settings_sync() from there now...
2011-04-15 09:30:24 -04:00
Ryan Lortie
631d0c3534
Merge remote-tracking branch 'gvdb/master'
2011-04-15 09:29:47 -04:00
Ryan Lortie
a5dd6fcc4f
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
2011-04-15 09:27:38 -04:00
David Zeuthen
98e6d4b0a9
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>
2011-04-15 08:48:21 -04:00
David Zeuthen
5f31671da0
gdbus-codegen: Use the right program name in introductory comment (again)
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 08:44:05 -04:00
David Zeuthen
c76a1f9905
gdbus-codegen: Use the right program name in introductory comment
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 08:40:52 -04:00
David Zeuthen
9e9535b45c
gdbus-codegen: Add copyright / license headers
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 08:33:30 -04:00
David Zeuthen
febfc45fbe
GDBus: Support Ugly_Case and use org.gtk.GDBus.C.Name since it's C-only
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 08:24:40 -04:00
Michael Kuhn
2553511f4e
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>
2011-04-15 06:05:24 -04:00
Simon McVittie
c2387ddff1
/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>
2011-04-15 06:00:16 -04:00
Kean Johnston
8b50e2f547
GLocalFile: Use _fstati64 rather than stat on Win32
...
We want this to get 64bit timestamps and file lenghts.
2011-04-15 10:15:04 +02:00
Matthias Clasen
a3722d0408
Slight docs rewording
...
Proposed by Thomas Andersen,
https://bugzilla.gnome.org/show_bug.cgi?id=647700
2011-04-14 20:41:54 -04:00
David Zeuthen
4da1824759
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>
2011-04-14 12:46:54 -04:00
David Zeuthen
33515d4eb4
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>
2011-04-14 12:46:46 -04:00
Ryan Lortie
8b03077a44
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 .
2011-04-14 09:56:00 -04:00
David Zeuthen
e38ef14e8b
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>
2011-04-13 18:40:47 -04:00
David Zeuthen
3b997d92c1
GDBus: Add test case for the ANONYMOUS authentication method
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 18:21:16 -04:00
David Zeuthen
befb60d826
GDBus: Nuke debug spew from the ANONYMOUS authentication method
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 18:20:34 -04:00
David Zeuthen
25c57d31c5
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>
2011-04-13 17:49:19 -04:00
David Zeuthen
8826ad046d
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>
2011-04-13 16:39:50 -04:00
David Zeuthen
6ccca55752
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>
2011-04-13 16:33:51 -04:00
Colin Walters
68b16deb1f
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
2011-04-13 15:01:28 -04:00
Ryan Lortie
4d15ba90c0
G_VARIANT_TYPE_VARDICT: Add 'Since:' tag
2011-04-13 11:46:33 -04:00
David Zeuthen
683943b40e
GDBusInterfaceStub: Use G_VARIANT_TYPE_VARDICT when referring to type a{sv}
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-13 11:35:06 -04:00
Matthias Clasen
76492d7741
Bump version
2011-04-13 08:48:10 -04:00
Matthias Clasen
0e55346420
Skip the writable test if the file is not writable
...
Since make distcheck operates on a readonly source tree.
2011-04-13 08:19:35 -04:00
Matthias Clasen
67b8c7ea8a
Fix non-srcdir builds
2011-04-13 01:31:19 -04:00
Matthias Clasen
5f90baafb5
More updates
2011-04-13 00:42:51 -04:00
Matthias Clasen
c1a7599568
Fix a typo in the GSettings docs
...
Pointed out by Thomas Andersen
https://bugzilla.gnome.org/show_bug.cgi?id=647600
2011-04-13 00:39:01 -04:00
David Zeuthen
e356c7ca0b
gdbus-codegen: Shorten man page title
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-12 20:40:25 -04:00
David Zeuthen
29bf848d92
gdbus-codegen: Use CDATA to make gtk-doc avoid expanding certain strings
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-12 20:28:06 -04:00
David Zeuthen
6a4ab7c5d3
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>
2011-04-12 20:15:48 -04:00
David Zeuthen
6bf978f35e
gdbus-codegen: Mention that @since can be used
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-12 17:12:26 -04:00
David Zeuthen
34a28f2f06
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>
2011-04-12 16:17:28 -04:00
Colin Walters
bf087aabbf
gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
2011-04-12 12:56:33 -04:00
Colin Walters
3fd9f2e8f9
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
2011-04-12 12:13:43 -04:00
David Zeuthen
76d3653721
gdbus-codegen: Add --c-generate-object-manager option + doc improvements
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-12 11:50:34 -04:00
Matthias Clasen
3f7912f142
GLocalDirectoryMonitor: Improve struct packing
2011-04-12 10:02:31 -04:00
Matthias Clasen
a2094d5e56
GIOSchedulerJob: Improve struct packing
2011-04-12 10:02:12 -04:00
Matthias Clasen
bfe7548fe1
GFilenameCompleter: Improve struct packing
2011-04-12 10:01:37 -04:00
Matthias Clasen
3e4f3673d8
GFileAttributeMatcher: Improve struct packing
2011-04-12 10:01:05 -04:00
Matthias Clasen
8903ec808b
GDBusProxy: Improve struct packing
2011-04-12 10:00:37 -04:00
Matthias Clasen
53e3e111fd
GDBusWorker: Improve struct packing
2011-04-12 10:00:03 -04:00
Matthias Clasen
9890c03579
GMarkupParseContext: Improve struct packing
2011-04-12 09:58:13 -04:00
Matthias Clasen
f8b154f53a
GMatchInfo: improve struct packing
2011-04-12 09:55:59 -04:00