summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <david.king@canonical.com>2012-02-07 09:02:51 +0000
committerDavid King <amigadave@amigadave.com>2012-02-09 11:59:15 +0000
commitdb38923c94bb764f14ac4b7bff6e71cf6aba343f (patch)
tree60a935352cc37c01b0346423e42338d8be6a679e
parentdaf78764e5e142ea0c787e5f3f22e5bee4417883 (diff)
downloadglib-db38923c94bb764f14ac4b7bff6e71cf6aba343f.tar.gz
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
-rw-r--r--docs/reference/gio/gdbus-codegen.xml30
1 files changed, 16 insertions, 14 deletions
diff --git a/docs/reference/gio/gdbus-codegen.xml b/docs/reference/gio/gdbus-codegen.xml
index 0747ae43e..df5875fa1 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>