Add a custom constructor to Entry, and fix API bugs with Widget and Frame.
svn path=/trunk/gtk-sharp/; revision=13021
This commit is contained in:
parent
8f7e0a2cbd
commit
95a81a7706
4 changed files with 125 additions and 15 deletions
|
@ -1,3 +1,10 @@
|
|||
2003-04-02 Lee Mallabone <gnome@fonicmonkey.net>
|
||||
|
||||
* gtk/Entry.custom: Add a constructor that sets the initial contents.
|
||||
|
||||
* sources/Gtk.metadata:
|
||||
* api/gtk-api.xml: Fix API 'out' parameters in 'Frame' and some in 'Widget'.
|
||||
|
||||
2003-03-27 Lee Mallabone <gnome@fonicmonkey.net>
|
||||
|
||||
* api/gtk-api.xml, sources/Gtk.metadata, gtk/Viewport.custom:
|
||||
|
|
|
@ -3083,8 +3083,8 @@
|
|||
<method name="GetLabelAlign" cname="gtk_frame_get_label_align">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="gfloat*" name="xalign"/>
|
||||
<parameter type="gfloat*" name="yalign"/>
|
||||
<parameter type="gfloat*" name="xalign" pass_as="out"/>
|
||||
<parameter type="gfloat*" name="yalign" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetLabelWidget" cname="gtk_frame_get_label_widget">
|
||||
|
@ -9306,9 +9306,9 @@
|
|||
<method name="ClassPath" cname="gtk_widget_class_path">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="guint*" name="path_length"/>
|
||||
<parameter type="gchar**" name="path"/>
|
||||
<parameter type="gchar**" name="path_reversed"/>
|
||||
<parameter type="guint*" name="path_length" pass_as="out"/>
|
||||
<parameter type="gchar**" name="path" pass_as="out"/>
|
||||
<parameter type="gchar**" name="path_reversed" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="CreatePangoContext" cname="gtk_widget_create_pango_context">
|
||||
|
@ -9404,8 +9404,8 @@
|
|||
<method name="GetPointer" cname="gtk_widget_get_pointer">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="gint*" name="x"/>
|
||||
<parameter type="gint*" name="y"/>
|
||||
<parameter type="gint*" name="x" pass_as="out"/>
|
||||
<parameter type="gint*" name="y" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="GetSettings" cname="gtk_widget_get_settings">
|
||||
|
@ -9449,7 +9449,7 @@
|
|||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter type="GdkRectangle*" name="area"/>
|
||||
<parameter type="GdkRectangle*" name="intersection"/>
|
||||
<parameter type="GdkRectangle*" name="intersection" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="IsAncestor" cname="gtk_widget_is_ancestor">
|
||||
|
@ -9523,9 +9523,9 @@
|
|||
<method name="Path" cname="gtk_widget_path">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="guint*" name="path_length"/>
|
||||
<parameter type="gchar**" name="path"/>
|
||||
<parameter type="gchar**" name="path_reversed"/>
|
||||
<parameter type="guint*" name="path_length" pass_as="out"/>
|
||||
<parameter type="gchar**" name="path" pass_as="out"/>
|
||||
<parameter type="gchar**" name="path_reversed" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="PopColormap" cname="gtk_widget_pop_colormap" shared="true">
|
||||
|
@ -9767,7 +9767,7 @@
|
|||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="const-gchar*" name="property_name"/>
|
||||
<parameter type="GValue*" name="value"/>
|
||||
<parameter type="GValue*" name="value" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="StyleGetValist" cname="gtk_widget_style_get_valist">
|
||||
|
@ -9786,8 +9786,8 @@
|
|||
<parameter type="GtkWidget*" name="dest_widget"/>
|
||||
<parameter type="gint" name="src_x"/>
|
||||
<parameter type="gint" name="src_y"/>
|
||||
<parameter type="gint*" name="dest_x"/>
|
||||
<parameter type="gint*" name="dest_y"/>
|
||||
<parameter type="gint*" name="dest_x" pass_as="out"/>
|
||||
<parameter type="gint*" name="dest_y" pass_as="out"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Unmap" cname="gtk_widget_unmap">
|
||||
|
|
|
@ -12,3 +12,8 @@ public int InsertText (string new_text)
|
|||
|
||||
return position;
|
||||
}
|
||||
|
||||
public Entry(string initialText): this()
|
||||
{
|
||||
Text = initialText;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,18 @@
|
|||
<metadata>
|
||||
|
||||
<!-- out parameters -->
|
||||
<rule>
|
||||
<class name="GtkFrame">
|
||||
<method>GetLabelAlign</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="type">gfloat*</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkTextBuffer">
|
||||
<method>GetIterAtLineOffset</method>
|
||||
|
@ -279,7 +291,93 @@
|
|||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>GetPointer</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="type">gint*</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>TranslateCoordinates</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="name">dest_x</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>TranslateCoordinates</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="name">dest_y</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>Path</method>
|
||||
<method>ClassPath</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter name="type">guint*</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>Path</method>
|
||||
<method>ClassPath</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter name="type">gchar**</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>StyleGetProperty</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="name">value</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GtkWidget">
|
||||
<method>Intersect</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="name">intersection</filter>
|
||||
<name>pass_as</name>
|
||||
<value>out</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
|
||||
|
||||
<!-- variable arguments -->
|
||||
<rule>
|
||||
|
|
Loading…
Add table
Reference in a new issue