[glib] docs: Fix gdbus-codegen example XML
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Fix gdbus-codegen example XML
- Date: Thu, 9 Feb 2012 12:00:00 +0000 (UTC)
commit db38923c94bb764f14ac4b7bff6e71cf6aba343f
Author: David King <david king canonical com>
Date: Tue Feb 7 09:02:51 2012 +0000
docs: Fix gdbus-codegen example XML
Without the surrounding <node> tags, gdbus-codegen does not generate any
implementation for the interface described in the introspection XML.
https://bugzilla.gnome.org/show_bug.cgi?id=669544
docs/reference/gio/gdbus-codegen.xml | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/docs/reference/gio/gdbus-codegen.xml b/docs/reference/gio/gdbus-codegen.xml
index 0747ae4..df5875f 100644
--- a/docs/reference/gio/gdbus-codegen.xml
+++ b/docs/reference/gio/gdbus-codegen.xml
@@ -420,20 +420,22 @@ gdbus-codegen --c-namespace MyApp \
Consider the following D-Bus Introspection XML.
</para>
<informalexample><programlisting><![CDATA[
-<interface name="net.Corp.MyApp.Frobber">
- <method name="HelloWorld">
- <arg name="greeting" direction="in" type="s"/>
- <arg name="response" direction="out" type="s"/>
- </method>
-
- <signal name="Notification">
- <arg name="icon_blob" type="ay"/>
- <arg name="height" type="i"/>
- <arg name="messages" type="as"/>
- </signal>
-
- <property name="Verbose" type="b" access="readwrite"/>
-</interface>
+<node>
+ <interface name="net.Corp.MyApp.Frobber">
+ <method name="HelloWorld">
+ <arg name="greeting" direction="in" type="s"/>
+ <arg name="response" direction="out" type="s"/>
+ </method>
+
+ <signal name="Notification">
+ <arg name="icon_blob" type="ay"/>
+ <arg name="height" type="i"/>
+ <arg name="messages" type="as"/>
+ </signal>
+
+ <property name="Verbose" type="b" access="readwrite"/>
+ </interface>
+</node>
]]></programlisting>
</informalexample>
<para>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]