2003-10-13 Mike Kestner <mkestner@ximian.com>

* gnome/Gnome.metadata : new xpath metadata rules
	* gnome/Makefile.in : apply metadata before generation
	* gnome/gnome-api.xml : regenerated
	* parser/gapi-fixup.cs : use XmlDocument.Save (filename)
	instead of opening a stream manually.
	* sources/Gnome.metadata : killed

svn path=/trunk/gtk-sharp/; revision=18975
This commit is contained in:
Mike Kestner 2003-10-13 17:38:22 +00:00
parent 6e44bd8cdb
commit f314da0c9f
6 changed files with 3284 additions and 4009 deletions

View File

@ -1,3 +1,12 @@
2003-10-13 Mike Kestner <mkestner@ximian.com>
* gnome/Gnome.metadata : new xpath metadata rules
* gnome/Makefile.in : apply metadata before generation
* gnome/gnome-api.xml : regenerated
* parser/gapi-fixup.cs : use XmlDocument.Save (filename)
instead of opening a stream manually.
* sources/Gnome.metadata : killed
2003-10-12 Mike Kestner <mkestner@ximian.com>
* art/Art.metadata : new xpath metadata rules

85
gnome/Gnome.metadata Normal file
View File

@ -0,0 +1,85 @@
<?xml version="1.0"?>
<metadata>
<attr path="//boxed[@cname='GnomeGlyphList']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//boxed[@cname='GnomePrintUnit']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//boxed[@cname='GnomePrintUnit']/method[@name='GetIdentity']/*/*[@name='base']" name="name">Base</attr>
<attr path="//class[@cname='GnomeConfig_']/method[@name='SetSetHandler']" name="hidden">1</attr>
<attr path="//class[@cname='GnomeConfig_']/method[@name='SetSyncHandler']" name="hidden">1</attr>
<attr path="//class[@cname='GnomeGdk_']" name="name">GdkHelper</attr>
<attr path="//class[@cname='GnomeGtk_']" name="name">GtkHelper</attr>
<attr path="//class[@cname='GnomePrint_']/method/*/*[@name='in']" name="type">const-gchar*</attr>
<attr path="//class[@cname='GnomePrint_']/method/*/*[@name='text']" name="type">const-gchar*</attr>
<attr path="//class[@cname='GnomePrint_']/method/*/*[@name='name']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']/*/*[@type='const-gchar**']" name="array">1</attr>
<attr path="//object[@cname='GnomeAppBar']/signal[@name='ClearPrompt']" name="name">PromptCleared</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='C2w']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetButtPoints']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetColor']/return-type" name="type">gboolean</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetColor']/*/*[@type='GdkColor*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetMiterPoints']/return-type" name="type">gboolean</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetMiterPoints']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetScrollOffsets']/*/*[@type='int*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='GetScrollRegion']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='W2c']/*/*[@type='int*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='W2cD']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='WindowToWorld']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='WorldToWindow']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvas']/method[@name='W2cAffine']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasClipgroup']/property[@name='Wind']" name="type">ArtWindRule</attr>
<attr path="//object[@cname='GnomeCanvasItem']/constructor[@cname='gnome_canvas_item_new']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='AffineAbsolute']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='AffineRelative']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='Construct']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='GetBounds']/*/*[@type='double*']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='I2cAffine']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='I2w']/*/*[@type='double*']" name="pass_as">ref</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='I2wAffine']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='SetValist']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeCanvasItem']/method[@name='W2i']/*/*[@type='double*']" name="pass_as">ref</attr>
<attr path="//object[@cname='GnomeCanvasItem']/signal[@name='Event']" name="name">CanvasEvent</attr>
<attr path="//object[@cname='GnomeCanvasRichText']/method[@name='GetIterLocation']/*/*[@name='location']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvasRichText']/method[@name='GetIterAtLocation']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="//object[@cname='GnomeCanvasShape']/property[@name='Dash']" name="type">ArtVpathDash</attr>
<attr path="//object[@cname='GnomeClient']/signal[@name='Connect']" name="name">Connected</attr>
<attr path="//object[@cname='GnomeClient']/signal[@name='Disconnect']" name="name">Disconnected</attr>
<attr path="//object[@cname='GnomeDruidPage']/signal[@name='Back']" name="name">BackClicked</attr>
<attr path="//object[@cname='GnomeDruidPage']/signal[@name='Cancel']" name="name">CancelClicked</attr>
<attr path="//object[@cname='GnomeDruidPage']/signal[@name='Finish']" name="name">FinishClicked</attr>
<attr path="//object[@cname='GnomeDruidPage']/signal[@name='Next']" name="name">NextClicked</attr>
<attr path="//object[@cname='GnomeDruidPage']/signal[@name='Prepare']" name="name">Prepared</attr>
<attr path="//object[@cname='GnomeEntry']/method[@name='GtkEntry']" name="name">GetGtkEntry</attr>
<attr path="//object[@cname='GnomeEntry']/signal[@name='Activate']" name="name">Activated</attr>
<attr path="//object[@cname='GnomeFileEntry']/method[@name='GnomeEntry']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeFileEntry']/method[@name='GtkEntry']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeFileEntry']/signal[@name='Activate']" name="name">Activated</attr>
<attr path="//object[@cname='GnomeFont']/method/return-type[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomeFont']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomeFontPreview']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomeFontFace']/method/return-type[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomeFontFace']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomeIconEntry']/method[@name='PickDialog']" name="hidden">1</attr>
<attr path="//object[@cname='GnomeIconList']/constructor[@cname='gnome_icon_list_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="//object[@cname='GnomeIconList']/method[@name='GetSelection']/return-type" name="element_type">int</attr>
<attr path="//object[@cname='GnomeIconList']/method[@name='SetHadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="//object[@cname='GnomeIconList']/method[@name='SetVadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="//object[@cname='GnomeIconList']/signal[@name='FocusIcon']" name="name">IconFocused</attr>
<attr path="//object[@cname='GnomeIconList']/signal[@name='SelectIcon']" name="name">IconSelected</attr>
<attr path="//object[@cname='GnomeIconList']/signal[@name='UnselectIcon']" name="name">IconUnselected</attr>
<attr path="//object[@cname='GnomePrintConfig']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomePrintConfig']/method[@name='Get']/return-type" name="type">gchar*</attr>
<attr path="//object[@cname='GnomePrintDialog']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomePrintDialog']/constructor[@cname='gnome_print_dialog_new']/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomePrintDialog']/constructor[@cname='gnome_print_dialog_new']/*/*[@name='flags']" name="type">GnomePrintDialogFlags</attr>
<attr path="//object[@cname='GnomePrintJob']" name="disabledefaultconstructor">1</attr>
<attr path="//object[@cname='GnomePrintJobPreview']/constructor/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomePrintMeta']/method/*/*[@name='filename']" name="type">const-gchar*</attr>
<attr path="//object[@cname='GnomePrintPdf']" name="parent">GObject</attr>
<attr path="//object[@cname='GnomePrintTransport']" name="parent">GObject</attr>
<attr path="//object[@cname='GPAOptionMenu']/constructor/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="//struct[@cname='GnomeCanvasPathDef']/method[@name='Curveto']" name="name">CurveTo</attr>
<attr path="//struct[@cname='GnomeCanvasPathDef']/method[@name='Lineto']" name="name">LineTo</attr>
<attr path="//struct[@cname='GnomeCanvasPathDef']/method[@name='LinetoMoving']" name="name">LineToMoving</attr>
<attr path="//struct[@cname='GnomeCanvasPathDef']/method[@name='Moveto']" name="name">MoveTo</attr>
<attr path="//struct[@cname='GnomeCanvasPathDef']/method[@name='Split']/return-type" name="element_type">Gnome.CanvasPathDef</attr>
<attr path="//struct[@cname='GnomePrintPaper']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
</metadata>

View File

@ -15,7 +15,8 @@ ASSEMBLY=gnome-sharp.dll
@ENABLE_GNOME_TRUE@ all: $(ASSEMBLY)
@ENABLE_GNOME_FALSE@ all:
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe Gnome.metadata
$(RUNTIME) ../parser/gapi-fixup.exe --api=gnome-api.xml --metadata=Gnome.metadata && \
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
--assembly-name=gnome-sharp && touch generated-stamp

File diff suppressed because it is too large Load Diff

View File

@ -74,9 +74,7 @@ namespace GtkSharp.Parsing {
}
}
Stream out_stream = File.OpenWrite (api_filename);
api_doc.Save (out_stream);
out_stream.Close ();
api_doc.Save (api_filename);
return 0;
}
}

View File

@ -1,817 +0,0 @@
<?xml version="1.0"?>
<metadata>
<!-- renames -->
<rule>
<class name="GnomeAppBar">
<signal>ClearPrompt</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>PromptCleared</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeClient">
<signal>Connect</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>Connected</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeClient">
<signal>Disconnect</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>Disconnected</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeDruidPage">
<signal>Back</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>BackClicked</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeDruidPage">
<signal>Finish</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>FinishClicked</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeDruidPage">
<signal>Cancel</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>CancelClicked</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeDruidPage">
<signal>Next</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>NextClicked</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeDruidPage">
<signal>Prepare</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>Prepared</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeIconList">
<signal>FocusIcon</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>IconFocused</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeEntry">
<method>GtkEntry</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>GetGtkEntry</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeEntry">
<signal>Activate</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>Activated</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeGdk_"/>
<data>
<attribute target="class">
<name>name</name>
<value>GdkHelper</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeGtk_"/>
<data>
<attribute target="class">
<name>name</name>
<value>GtkHelper</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeIconList">
<signal>SelectIcon</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>IconSelected</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeIconList">
<signal>UnselectIcon</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>IconUnselected</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeFileEntry">
<signal>Activate</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>Activated</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasItem">
<signal>Event</signal>
</class>
<data>
<attribute target="signal">
<name>name</name>
<value>CanvasEvent</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasPathDef">
<method>Moveto</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>MoveTo</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomePrintPdf" />
<data>
<attribute target="class">
<name>parent</name>
<value>GObject</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomePrintTransport" />
<data>
<attribute target="class">
<name>parent</name>
<value>GObject</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomePrintUnit">
<method>GetIdentity</method>
</class>
<data>
<attribute target="param">
<filter level="name">base</filter>
<name>name</name>
<value>Base</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasPathDef">
<method>Curveto</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>CurveTo</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasPathDef">
<method>Lineto</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>LineTo</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasPathDef">
<method>LinetoMoving</method>
</class>
<data>
<attribute target="method">
<name>name</name>
<value>LineToMoving</value>
</attribute>
</data>
</rule>
<!-- hides -->
<rule>
<class name="GnomeFileEntry">
<method>GnomeEntry</method>
<method>GtkEntry</method>
</class>
<class name="GnomeIconEntry">
<method>PickDialog</method>
</class>
<class name="GnomeConfig_">
<method>SetSetHandler</method>
<method>SetSyncHandler</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>W2cAffine</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasItem">
<method>AffineRelative</method>
<method>AffineAbsolute</method>
<method>I2wAffine</method>
<method>I2cAffine</method>
<method>SetValist</method>
<method>Construct</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasItem">
<constructor>gnome_canvas_item_new</constructor>
</class>
<data>
<attribute target="constructor">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
<!-- disable default constructor -->
<rule>
<class name="GnomePrintJob"/>
<data>
<attribute target="class">
<name>disabledefaultconstructor</name>
<value>1</value>
</attribute>
</data>
</rule>
<!-- misc -->
<rule>
<class name="GnomeAbout">
<constructor>gnome_about_new</constructor>
</class>
<data>
<attribute target="param">
<filter level="type">const-gchar**</filter>
<name>array</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomePrintDialog">
<method>gnome_print_dialog_new</method>
</class>
<data>
<attribute target="params">
<filter level="name">flags</filter>
<name>type</name>
<value>GnomePrintDialogFlags</value>
</attribute>
</data>
</rule>
<!-- Use const-gchar* instead of const-guchar*, when the value is realy a string -->
<rule>
<class name="GnomeFont">
<method>Find</method>
<method>FindClosest</method>
<method>FindClosestFromFullName</method>
<method>FindClosestFromWeightSlant</method>
<method>FindFromFullName</method>
<method>StyleList</method>
</class>
<class name="GnomeFontFace">
<method>Find</method>
<method>FindClosest</method>
<method>FindClosestFromWeightSlant</method>
<method>FindFromFamilyAndStyle</method>
</class>
<class name="GnomePrintConfig">
<method>Get</method>
<method>GetBoolean</method>
<method>GetDouble</method>
<method>GetInt</method>
<method>GetLength</method>
<method>Set</method>
<method>SetBoolean</method>
<method>SetDouble</method>
<method>SetInt</method>
<method>SetLength</method>
</class>
<class name="GnomePrintDialog">
<method>Construct</method>
<method>ConstructRangeAny</method>
<method>ConstructRangePage</method>
<method>gnome_print_dialog_new</method>
</class>
<class name="GnomePrintMeta">
<method>RenderFile</method>
<method>RenderFilePage</method>
</class>
<class name="GnomeGlyphList">
<method>FromTextDumb</method>
<method>FromTextSizedDumb</method>
<method>TextDumb</method>
<method>TextSizedDumb</method>
</class>
<class name="GnomePrintPaper">
<method>GetByName</method>
</class>
<class name="GnomePrintUnit">
<method>GetByAbbreviation</method>
<method>GetByName</method>
</class>
<class name="GnomePrint_">
<method>Beginpage</method>
<method>DecodeAscii85</method>
<method>DecodeHex</method>
<method>EncodeAscii85</method>
<method>EncodeBlank</method>
<method>EncodeDeflate</method>
<method>EncodeDrow</method>
<method>EncodeHex</method>
<method>EncodeRlc</method>
<method>EncodeTiff</method>
<method>Show</method>
<method>ShowSized</method>
</class>
<class name="GnomeFontPreview">
<method>SetPhrase</method>
</class>
<class name="GnomePrintJobPreview">
<method>gnome_print_job_preview_new</method>
</class>
<class name="GPAOptionMenu">
<method>gpa_option_menu_new</method>
</class>
<data>
<attribute target="params">
<filter level="name">name</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">family</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">string</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">style</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">key</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">value</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">filename</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">text</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">abbreviation</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">in</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">phrase</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">title</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">currentlabel</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
<attribute target="params">
<filter level="name">rangelabel</filter>
<name>type</name>
<value>const-gchar*</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeFont">
<method>GetFamilyName</method>
<method>GetName</method>
<method>GetPsName</method>
<method>GetSpeciesName</method>
</class>
<class name="GnomeFontFace">
<method>GetFamilyName</method>
<method>GetGlyphPsName</method>
<method>GetName</method>
<method>GetPsName</method>
<method>GetSample</method>
<method>GetSpeciesName</method>
</class>
<data>
<attribute target="return">
<name>type</name>
<value>const-gchar*</value>
</attribute>
</data>
</rule>
<!-- Use gchar* instead of guchar*, when the value is realy a string -->
<rule>
<class name="GnomePrintConfig">
<method>Get</method>
</class>
<data>
<attribute target="return">
<name>type</name>
<value>gchar*</value>
</attribute>
</data>
</rule>
<!-- null args -->
<rule>
<class name="GnomeIconList">
<constructor>gnome_icon_list_new</constructor>
</class>
<data>
<attribute target="param">
<filter level="type">GtkAdjustment*</filter>
<name>null_ok</name>
<value>1</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeIconList">
<method>gnome_icon_list_set_hadjustment</method>
<method>gnome_icon_list_set_vadjustment</method>
</class>
<data>
<attribute target="param">
<filter level="type">GtkAdjustment*</filter>
<name>null_ok</name>
<value>1</value>
</attribute>
</data>
</rule>
<!-- list types -->
<rule>
<class name="GnomeCanvasPathDef">
<method>Split</method>
</class>
<data>
<attribute target="return">
<name>element_type</name>
<value>Gnome.CanvasPathDef</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeIconList">
<method>GetSelection</method>
</class>
<data>
<attribute target="return">
<name>element_type</name>
<value>int</value>
</attribute>
</data>
</rule>
<!-- ref parameters -->
<rule>
<class name="GnomeCanvasItem">
<method>W2i</method>
<method>I2w</method>
</class>
<data>
<attribute target="param">
<filter level="type">double*</filter>
<name>pass_as</name>
<value>ref</value>
</attribute>
</data>
</rule>
<!-- out parameters -->
<rule>
<class name="GnomeCanvas">
<method>GetScrollRegion</method>
<method>C2w</method>
</class>
<class name="GnomeCanvasItem">
<method>GetBounds</method>
</class>
<data>
<attribute target="param">
<filter level="type">double*</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>GetScrollOffsets</method>
<method>W2c</method>
</class>
<data>
<attribute target="param">
<filter level="type">int*</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>W2cD</method>
</class>
<data>
<attribute target="param">
<filter level="name">cx</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">cy</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>WindowToWorld</method>
</class>
<data>
<attribute target="param">
<filter level="name">worldx</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">worldy</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>WorldToWindow</method>
</class>
<data>
<attribute target="param">
<filter level="name">winx</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">winy</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>GetColor</method>
</class>
<data>
<attribute target="param">
<filter level="type">GdkColor*</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasRichText">
<method>GetIterLocation</method>
</class>
<data>
<attribute target="param">
<filter level="name">location</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasRichText">
<method>GetIterAtLocation</method>
</class>
<data>
<attribute target="param">
<filter level="name">iter</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>GetMiterPoints</method>
</class>
<data>
<attribute target="param">
<filter level="name">mx1</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">my1</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">mx2</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">my2</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvas">
<method>GetButtPoints</method>
</class>
<data>
<attribute target="param">
<filter level="name">bx1</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">by1</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">bx2</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
<attribute target="param">
<filter level="name">by2</filter>
<name>pass_as</name>
<value>out</value>
</attribute>
</data>
</rule>
<!-- fix return values -->
<rule>
<class name="GnomeCanvas">
<method>GetMiterPoints</method>
<method>GetColor</method>
</class>
<data>
<attribute target="return">
<name>type</name>
<value>gboolean</value>
</attribute>
</data>
</rule>
<!-- property types -->
<rule>
<class name="GnomeCanvasClipgroup">
<property>Wind</property>
</class>
<data>
<attribute target="property">
<name>type</name>
<value>ArtWindRule</value>
</attribute>
</data>
</rule>
<rule>
<class name="GnomeCanvasShape">
<property>Dash</property>
</class>
<data>
<attribute target="property">
<name>type</name>
<value>ArtVpathDash</value>
</attribute>
</data>
</rule>
</metadata>