2003-01-10 Duncan Mak <duncan@ximian.com>

* gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as
	the generator produces correct code now.

svn path=/trunk/gtk-sharp/; revision=10356
This commit is contained in:
Duncan Mak 2003-01-10 19:16:48 +00:00
parent 26a40b9ebf
commit c3137abd9d
2 changed files with 3 additions and 13 deletions

View file

@ -1,5 +1,8 @@
2003-01-10 Duncan Mak <duncan@ximian.com> 2003-01-10 Duncan Mak <duncan@ximian.com>
* gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as
the generator produces correct code now.
* sources/Gtk.metadata (GtkTextView): Add a patch from Fredrik * sources/Gtk.metadata (GtkTextView): Add a patch from Fredrik
Nilsson <jymdman@home.se> to add needed 'out' parameters. Nilsson <jymdman@home.se> to add needed 'out' parameters.

View file

@ -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);
/// <summary> WindowToBufferCoords Method </summary>
/// <remarks> To be completed </remarks>
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;
}