Re: questions about GtkTextView (gtk2)



Wayne Schuller <k_wayne linuxpower org> writes: 
In the API docs there is nothing explaining the meaning of the 'event'
signal of a tag. When is it supposed to be triggered?

For some reason I can I mostly only get tag event signals when I click
on a tag. I can also get an event signal from moving the mouse outside
the text view onto a word just inside the widget. 

But I need to generate an event just when the mouse passes over any
word. Just moving the pointer over a tag slowly does not seem to
generate a tag event signal.


You're probably right - I guess we decided against sending motion
events to tags on efficiency grounds.
 
What widget produces motion events? What signal do I connect to?

I can see some possibly relevant signals for the GtkWidget widget
('event' and 'motion-notify-event') but none of the signals seem to be
explained anywhere in the (otherwise excellent) api docs. I don't
actually think the names of the signals themselves are self-explanatory.


The GTK tutorial ("scribble" example) has a decent explanation of
motion events that might be useful.

Havoc



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