Re: GtkTextView getting coordinates (on Windows)
- From: Matthias Clasen <maclas gmx de>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkTextView getting coordinates (on Windows)
- Date: Thu, 31 Jul 2003 13:36:28 +0200 (MEST)
If I set the "motion_notify_event" for a GtkTextView (under windows), and
then move the mouse over that part of the screen, it does enter the
callback
function I provide, but when I call the function
(gtk_text_view_window_to_buffer_coords):
GtkTextWindowType text_window_type = 0;
text_window_type = gtk_text_view_get_window_type(GTK_TEXT_VIEW(widget),
event->window);
gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(widget),
text_window_type, pointer_x, pointer_y, &x, &y);
I get this error (repeated for each mouse motion over that window):
11:37:46:Gtk: ** WARNING ** gtktextview.c:7315: can't get coords for
private windows
Any ideas why?
Presumably because (GtkTextWindowType)0 is GTK_TEXT_WINDOW_PRIVATE ?
See
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextView.html#GtkTextWindowType
Matthias
--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]