GNOME Bugzilla – Bug 156640
gtktooltip requires enter_notify to get started
Last modified: 2007-03-13 15:16:54 UTC
GtkToolTip starts to work (gtk_tooltips_start_delay) after a GDK_ENTER_NOTIFY, if the widget calls gtk_tooltips_set_tip with the pointer inside its bounds the tooltip will only show when the pointer reenter the widget. Compile & Run the snippet to see the problem.
Created attachment 33146 [details] snippet Related with SWT bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=73390
Created attachment 56935 [details] [review] quick and dirty patch to fix this bug There is probably a more correct way to determine if the pointer is within a widget, but I couldn't find it. This will not behave correctly with shaped widgets, and the choice of < vs. <= was a total guess. But once the condition is replaced with whatever is correct, this patch should be good. And nearly all of the time this quick and dirty fix should be better than the unpatched behavior. My fix in progress for Bug 125644 becomes much nicer once this is fixed, so I'm inclined to make this a blocker for it.
what is the status of this? is there an ETA for a fix?
Kris, does this work with the new implementation?
(In reply to comment #4) > Kris, does this work with the new implementation? Yes, the new implementation will start the delay after a motion event, an enter notify event is not required. It does require a motion event though, so if you set the tooltip in a motion event handler, you need to move the pointer a little bit before the tooltip delay will be started.