docs: Fix gdbus-codegen example XML
authorDavid King <david.king@canonical.com>
Tue, 7 Feb 2012 09:02:51 +0000 (09:02 +0000)
committerDavid King <amigadave@amigadave.com>
Thu, 9 Feb 2012 11:59:15 +0000 (11:59 +0000)
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

index 0747ae4..df5875f 100644 (file)
@@ -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>