David Zeuthen
2e358e12f9
gdbus-codegen: Nuke debug spew
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-15 16:36:54 -04:00
David Zeuthen
a3fa748e54
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>
2011-04-15 16:11:43 -04:00
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
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
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
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
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
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
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
David Zeuthen
8276d0e557
Spiff up the "Migrating to GDBus" docs a bit
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-12 09:28:09 -04:00
David Zeuthen
fc59b9d843
Update "Migrating to GDBus" chapter to take gdbus-codegen(1) into account
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 18:32:11 -04:00
David Zeuthen
e5525f1010
GDBus: Add ObjectManager example
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 16:35:14 -04:00
David Zeuthen
24533f2619
Also use interface_ instead of interface in C files
...
This is because gtk-doc scans the function in the H file but reads the
docs from the C file. Annoying.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 15:34:38 -04:00
David Zeuthen
6cc4dc5b9b
GDBusInterfaceStub: Rename stub parameter to interface
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 15:25:37 -04:00
David Zeuthen
4809028736
GDBus: Avoid using the word interface in public C headers
...
Same deal as with e.g. index since some libraries may do crazy stuff
such as "#define interface xyz".
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 15:24:52 -04:00
David Zeuthen
4dffec8906
Dist test-codegen.xml
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 14:59:19 -04:00
David Zeuthen
9c1941c07f
GDBus: Add test-suite for new ObjectManager and gdbus-codegen(1) code
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 10:54:52 -04:00
David Zeuthen
982195b61c
GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-11 10:51:37 -04:00
David Zeuthen
6a45180c95
Clarify docs for g_dbus_gvalue_to_gvariant() and g_dbus_gvariant_to_gvalue()
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-10 11:19:45 -04:00
David Zeuthen
01a5f19e04
Improve g_dbus_gvalue_to_gvariant() docs
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-09 17:51:59 -04:00
David Zeuthen
1d781ba3be
GDBus: Document GVariant/GValue conversion routines and move to them to utils
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-09 11:47:34 -04:00
David Zeuthen
9c8341f1aa
Forgot to add autofoo for libffi
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-09 11:39:32 -04:00
David Zeuthen
88ab35f3cb
Add a generic libffi based marshaller to libgobject
...
This code is from https://bugzilla.gnome.org/show_bug.cgi?id=567087
and was adapted by myself to also support the GVariant fundamental
type.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 17:34:44 -04:00
David Zeuthen
0b9229beca
Add gdbus-codegen(1) command
...
It doesn't work yet without the user manually adding ffi bits. That's
the topic of the next commit.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 17:11:38 -04:00
David Zeuthen
ac93a6af88
Add "Since: 2.30" for new D-Bus routines
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 16:29:48 -04:00
David Zeuthen
bf6e10fe52
Add docs for new high-level D-Bus types
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 16:29:30 -04:00
David Zeuthen
1e2e58705c
GDBusProxy: Store GDBusObject in private struct instead of qdata
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 16:12:33 -04:00
David Zeuthen
b41cf76350
GDBusProxy: Update description to match GDBusInterface
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 16:12:09 -04:00
David Zeuthen
94b9071344
Start merging gdbus-codegen code
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 15:48:28 -04:00
David Zeuthen
0729260141
Silence a bunch of -Wunused-but-set-variable warnings
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 15:44:25 -04:00
Ryan Lortie
23818d1e61
GSettings: remove more asserts
...
Same logic as the last commit on this topic, applied to the other
functions too.
2011-04-08 09:15:19 -04:00
Matthias Clasen
edaf99be86
Avoid an interaction between GApplication and GOption
...
When using GOption to handle commandlines, we need to disable
the builtin help handling, since it calls exit(). Also mention
this particular pitfall in the docs.
2011-04-08 07:19:38 -04:00
Ryan Lortie
3498d58289
glib-compile-schemas: check for undefined refs
...
For child schemas, verify that the named schema actually exists and
issue a warning if not. This error in schema files will cause runtime
errors when iterating over the list of child schemas and attempting to
instantiate each one.
This will move from being merely a warning to a hard error in the
future.
Bug #646039 .
2011-04-08 01:47:52 -04:00
Ryan Lortie
4ece333afe
Don't assert on backend == settings->priv->backend
...
They could be different if a notification is queued for delivery and
someone calls g_settings_delay().
Bug #646843 .
2011-04-07 21:25:01 -04:00
Matthias Clasen
a2e3a4d150
Add a warning to the g_dbus_connection_set_exit_on_close docs
...
Tell people to not leak their apps out of the session.
2011-04-07 17:15:41 -04:00
Dan Winship
784619bc3a
Fix two leaks seen when using TLS connections
...
g_tls_certificate_list_new_from_file() was leaking the file contents,
and GSource was leaking the GSourcePrivate structure that got
created when using child sources.
2011-04-07 08:32:06 -04:00
Jordi Serratosa
9fdc8d976a
[l10n]Fixes on Catalan translation
2011-04-04 21:45:39 +02:00
OKANO Takayoshi
418358f452
Updated Japanese translation
2011-04-04 21:27:48 +09:00
Murray Cumming
3ac7e0a7fe
Docs: Change DBus to D-Bus
2011-04-04 09:22:06 +02:00
Petr Kovar
27a067a3c8
Update Czech translation
2011-04-04 04:11:17 +02:00