From c3137abd9d214e1e3eb9936379f33c72529362da Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Fri, 10 Jan 2003 19:16:48 +0000 Subject: [PATCH] 2003-01-10 Duncan Mak * gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as the generator produces correct code now. svn path=/trunk/gtk-sharp/; revision=10356 --- ChangeLog | 3 +++ gtk/TextView.custom | 13 ------------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 424486528..eb724edd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-01-10 Duncan Mak + * gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as + the generator produces correct code now. + * sources/Gtk.metadata (GtkTextView): Add a patch from Fredrik Nilsson to add needed 'out' parameters. diff --git a/gtk/TextView.custom b/gtk/TextView.custom index fe973e93c..8b1378917 100644 --- a/gtk/TextView.custom +++ b/gtk/TextView.custom @@ -1,14 +1 @@ - [DllImport("gtk-x11-2.0", EntryPoint="gtk_text_view_window_to_buffer_coords")] - unsafe static extern void gtk_text_view_window_to_buffer_coords(IntPtr raw, int win, int window_x, int window_y, int *buffer_x, int *buffer_y); - /// WindowToBufferCoords Method - /// To be completed - public void WindowToBufferCoords(Gtk.TextWindowType win, int window_x, int window_y, out int buffer_x, out int buffer_y) { - int x = 0, y = 0; - - unsafe { - gtk_text_view_window_to_buffer_coords(Handle, (int) win, window_x, window_y, &x, &y); - } - buffer_x = x; - buffer_y = y; - }