motion-notify-event doesn't work in linux?

From: Date: Wed, 31 Jan 2007 08:38:06 +0000
Subject: motion-notify-event doesn't work in linux?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7633@lists.php.net to get a copy of this message
Have managed to insert url links in a GtkTextView. The next is to display the url address in the status bar when the user hovers the mouse over the link. The code is working for windows: http://www.kksou.com/php-gtk2/articles/insert-links-in-GtkTextView---Part-3-(Display-Link-in-Status-Bar).php But I just found out that the code doesn't work for linux! After some trials and errors, I discovered that 'motion-notify-event' doesn't seem to function in a GtkTextView in linux. In windows, one gets a constant update of $event->x and $event->y whenever the mouse is moved. In Linux, the signal handler gets called only when the the mouse button is being pressed, or when the mouse first enters or leaves the widget. I did more trials, and found out that even GtkEventBox behaves the same! That is, it doesn't respond correctly to 'motion-notify-event' in linux! I tried the more generic 'event' signal, and it's still the same. The signal handler for 'motion-notify-event' or 'event' doesn't get called without the mouse is being pressed. Was wondering if this a bug or a feature in linux? If it's a feature, what signal could be used to know the mouse location when the user hovers over a widget (without pressing the mouse)? Thanks and Regards, /kksou p.s. the only widget that seems to respond to 'motion-notify-event' is GtkTreeView, as illustrated in the example: http://www.kksou.com/php-gtk2/articles/display-tooltips-in-GtkTreeView---Part-2.php -- View this message in context: http://www.nabble.com/motion-notify-event-doesn%27t-work-in-linux--tf3147437.html#a8725121 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7633) next »