Re: GtkTextView and motion-notify-event
- From: "James M. Cape" <jcape ignore-your tv>
- To: Dongho Shin <electman acadcorp com>
- Cc: gtk-list gnome org
- Subject: Re: GtkTextView and motion-notify-event
- Date: 28 May 2002 05:51:08 -0500
On Mon, 2002-05-27 at 07:22, Dongho Shin wrote:
> Hi, all.
>
> I want to use GtkTextView/GtkTextBuffer widgets as a hyper text viewer like a web browser.
> To do that, I should catch the mouse motion and change the pointer into - say - a finger style,
> and catch the mouse click at some specific string.
> But, when I connected "motion-notify-event" to my textview (gtk_widget_set_events(textview,
> GDK_POINTER_MOTION_MASK) was called, of course), I could only get the coordinates of
> entering position, not every position of motion change.
> How can I get mouse position and click signal of GtkTextView widget?
http://jimbob.myip.org/downloads/esco-viewer.c
It's a subclass, and dumps massive loads of warnings (there's an open
bug on it: http://bugzilla.gnome.org/show_bug.cgi?id=83103 ), but it
does basically what you want.
Peace,
Jim Cape
http://ignore-your.tv/
"No cause, no God, no abstract idea can justify the mass
slaughter of innocents."
-- Edward Said
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]