[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Detecting mouse press in GtkText



I am using a Gtk_Text in Gtk-- 1.0 and GTK+ 1.2.3 to display a
sentence. When the user clicks or double-clicks on a character of
that sentence, I want to be notified of the character position at
which the mouse pointer was. Is there a way to have that?

I am able to capture the button press events that the Gtk_Text
receives as a class derived from Gtk_Widget, but the associated
GdkEventButton object specifies the mouse pointer position in pixels,
not in characters.

Note that the Gtk_Text is never editable.

-- 
Pierre Sarrazin <sarrazip@sympatico.ca> http://www3.sympatico.ca/sarrazip/en



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]