Commit 05b28f03 authored by Philip Withnall's avatar Philip Withnall

doc: Remove unnecessary whitespace in documentation examples

Also add a missing XML header.
parent 08d02fe0
......@@ -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":
<![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+">
<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
... widget classes go here
<glade-widget-group name="foo" title="Foo">
<glade-widget-class-ref name="FooFrobnicator"/>
... widget class references go here
... widget groups go here
......@@ -30,7 +30,6 @@ for editing purposes. Here is an example of the xml form:
... values here
......@@ -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:
<![CDATA[<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
... widget class support functions go here
<property id="frobnicated" default="False"/>
... property definitions go here
<signal id="frobnicate" since="1.0"/>
... signal definitions go here
... child packing property definitions go here
<action id="launch_editor" name="Edit Frob" stock="gtk-edit"/>
... context menu action definitions go here
... context menu action definitions for child objects go here
<parent-class name="GtkVBox">
<child-property id="expand" default="false"/>
... packing default definitions go here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment