eb38e65353
* generator/Parameters.cs: Allow nulls if null_ok set. * generator/SymbolTable.cs: Add method IsStruct. * parser/Gtk.metadata, Gdk.metadata, Gnome.metadata: Merge in null_ok from *.defs. This is probably incomplete though, I've already found one method that wasn't listed. * sample/GnomeHelloWorld.cs: Remove IntPtr.Zero hack. svn path=/trunk/gtk-sharp/; revision=5792
44 lines
868 B
XML
44 lines
868 B
XML
<?xml version="1.0"?>
|
|
<metadata>
|
|
|
|
<!-- constructor collision hints -->
|
|
<rule>
|
|
<class name="GdkPixbuf">
|
|
<constructor>gdk_pixbuf_new_from_file</constructor>
|
|
</class>
|
|
<data>
|
|
<attribute target="method">
|
|
<name>preferred</name>
|
|
<value>1</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
<!-- array hints -->
|
|
<rule>
|
|
<class name="GdkPixbufLoader">
|
|
<method>Write</method>
|
|
</class>
|
|
<data>
|
|
<attribute target="param">
|
|
<filter level="type">const-guchar*</filter>
|
|
<name>array</name>
|
|
<value>1</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
<!-- null args -->
|
|
<rule>
|
|
<class name="GdkPixmap">
|
|
<constructor>gdk_pixmap_new</constructor>
|
|
</class>
|
|
<data>
|
|
<attribute target="param">
|
|
<filter level="type">GdkWindow*</filter>
|
|
<name>null_ok</name>
|
|
<value>1</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
</metadata>
|