summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-06-29 15:50:04 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-07-03 18:34:19 +0100
commit05b28f0395c14cc2b81881d27eaa367939d9e12a (patch)
tree163bc25083fc78d4b6d70842797d0debca0698d4 /doc
parent08d02fe03724bae7a5739767b47f55e24e859703 (diff)
downloadglade-05b28f0395c14cc2b81881d27eaa367939d9e12a.tar.gz
doc: Remove unnecessary whitespace in documentation examples
Also add a missing XML header. https://bugzilla.gnome.org/show_bug.cgi?id=751648
Diffstat (limited to 'doc')
-rw-r--r--doc/catalogintro.sgml10
-rw-r--r--doc/properties.sgml1
-rw-r--r--doc/widgetclasses.sgml14
3 files changed, 2 insertions, 23 deletions
diff --git a/doc/catalogintro.sgml b/doc/catalogintro.sgml
index 7cf91973..e15236c4 100644
--- a/doc/catalogintro.sgml
+++ b/doc/catalogintro.sgml
@@ -40,28 +40,22 @@ The catalog file starts by specifying the name of the catalog and the plugin
library to use, the following examples assume you have a namespace "Foo" and
are integrating an object "Frobnicator":
<programlisting>
-<![CDATA[<glade-catalog name="foo" library="foo" depends="gtk+">
-
+<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<glade-catalog name="foo" library="foo" depends="gtk+">
<init-function>my_catalog_init</init-function>
<glade-widget-classes>
-
<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
... widget classes go here
-
</glade-widget-classes>
<glade-widget-group name="foo" title="Foo">
-
<glade-widget-class-ref name="FooFrobnicator"/>
-
... widget class references go here
-
</glade-widget-group>
... widget groups go here
-
</glade-catalog>]]></programlisting>
</para>
diff --git a/doc/properties.sgml b/doc/properties.sgml
index c9388e83..2acc0b46 100644
--- a/doc/properties.sgml
+++ b/doc/properties.sgml
@@ -30,7 +30,6 @@ for editing purposes. Here is an example of the xml form:
... values here
</displayable-values>
-
</property>
...]]></programlisting>
diff --git a/doc/widgetclasses.sgml b/doc/widgetclasses.sgml
index 4a1156b9..3bf0ea35 100644
--- a/doc/widgetclasses.sgml
+++ b/doc/widgetclasses.sgml
@@ -31,57 +31,43 @@ A typical basic example of a widget class definition is as follows:
Here is the complete example of the form of the `glade-widget-class' definition:
<programlisting>
<![CDATA[<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
-
<post-create-function>foo_frobnicator_plugin_post_create</post-create-function>
... widget class support functions go here
<properties>
-
<property id="frobnicated" default="False"/>
... property definitions go here
-
</properties>
<signals>
-
<signal id="frobnicate" since="1.0"/>
... signal definitions go here
-
</signals>
<packing-properties>
-
... child packing property definitions go here
-
</packing-properties>
<actions>
-
<action id="launch_editor" name="Edit Frob" stock="gtk-edit"/>
... context menu action definitions go here
-
</actions>
<packing-actions>
-
... context menu action definitions for child objects go here
-
</packing-actions>
<packing-defaults>
-
<parent-class name="GtkVBox">
<child-property id="expand" default="false"/>
</parent-class>
... packing default definitions go here
-
</packing-defaults>
-
</glade-widget-class>]]></programlisting>
</para>