[Gtk-sharp-list] TextView.GetVisibleRect isn't working...
Alexandre Gomes
alexmipego@hotmail.com
Mon, 28 Feb 2005 15:38:44 +0000
--=-n3gVLyf63G4mkyrZsdXa
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
The function isn't working because it was supposed to return something,
or that the param was passed by reference...
This patch fixes it, but since I've no knowledge on gtk-sharp internals
I ask for your approval to commit.
--
Alexandre Miguel Pedro Gomes,
Portugal
--=-n3gVLyf63G4mkyrZsdXa
Content-Disposition: attachment; filename=gtk-sharp.GetVisibleRect.patch
Content-Type: text/x-patch; name=gtk-sharp.GetVisibleRect.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
Index: gtk/Gtk.metadata
===================================================================
--- gtk/Gtk.metadata (revision 41280)
+++ gtk/Gtk.metadata (working copy)
@@ -341,6 +341,7 @@
<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']/method[@name='MoveVisually']/*/*[@type='GtkTextIter*']" name="pass_as">ref</attr>
+ <attr path="/api/namespace/object[@cname='GtkTextView']/method[@name='GetVisibleRect']/*/*[@type='GdkRectangle*']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkTextView']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr>
<attr path="/api/namespace/object[@cname='GtkToggleAction']/method[@name='Toggled']" name="name">Toggle</attr>
<attr path="/api/namespace/object[@cname='GtkToggleButton']/constructor[@cname='gtk_toggle_button_new_with_mnemonic']" name="preferred">1</attr>
Index: ChangeLog
===================================================================
--- ChangeLog (revision 41280)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2005-02-28 Alexandre Gomes <alexmipego@hotmail.com>
+
+ * gtk/Gtk.metadata: Set GetVisibleRect param to be passed by ref.
+
2005-02-25 Mike Kestner <mkestner@novell.com>
* glib/Source.cs : remove from the hash by key.
--=-n3gVLyf63G4mkyrZsdXa--