[Gtk-sharp-list] Patch for TextView.GetIterLocation.
Todd Berman
tberman@sevenl.net
Thu, 29 Jan 2004 20:21:24 -0500
--=-1xCFc0xetAzlMUVLs64W
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
This is a simple metadata patch for TextView.GetIterLocation.
The function will now work.
Ok to commit?
(Note, the method sig will change to Gdk.Rectangle
TextView.GetIterLocation (TextIter))
--Todd
--=-1xCFc0xetAzlMUVLs64W
Content-Disposition: attachment; filename=GetIterLocation-Rectangle_as_out.patch
Content-Type: text/x-patch; name=GetIterLocation-Rectangle_as_out.patch; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit
? GetIterLocation-Rectangle_as_out.patch
Index: gtk/Gtk.metadata
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/Gtk.metadata,v
retrieving revision 1.28
diff -u -r1.28 Gtk.metadata
--- gtk/Gtk.metadata 28 Jan 2004 04:08:29 -0000 1.28
+++ gtk/Gtk.metadata 30 Jan 2004 00:52:54 -0000
@@ -186,6 +186,7 @@
<attr path="/api/namespace/object[@cname='GtkTextTag']/signal[@name='Event']" name="name">TextEvent</attr>
<attr path="/api/namespace/object[@cname='GtkTextView']/method[@name='GetIterAtLocation']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTextView']/method[@name='GetLineAtY']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr>
+ <attr path="/api/namespace/object[@cname='GtkTextView']/method[@name='GetIterLocation']/*/*[@type='GdkRectangle*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTextView']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr>
<attr path="/api/namespace/object[@cname='GtkToggleButton']/constructor[@cname='gtk_toggle_button_new_with_mnemonic']" name="preferred">1</attr>
<attr path="/api/namespace/object[@cname='GtkToggleButton']/method[@name='Toggled']" name="name">Toggle</attr>
Index: gtk/gtk-api.xml
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/gtk-api.xml,v
retrieving revision 1.38
diff -u -r1.38 gtk-api.xml
--- gtk/gtk-api.xml 28 Jan 2004 21:44:25 -0000 1.38
+++ gtk/gtk-api.xml 30 Jan 2004 00:53:04 -0000
@@ -7623,7 +7623,7 @@
<return-type type="void" />
<parameters>
<parameter type="const-GtkTextIter*" name="iter" />
- <parameter type="GdkRectangle*" name="location" />
+ <parameter type="GdkRectangle*" name="location" pass_as="out" />
</parameters>
</method>
<method name="GetJustification" cname="gtk_text_view_get_justification">
--=-1xCFc0xetAzlMUVLs64W--