GNOME Bugzilla – Bug 740623
Tooltip doesn't update text while I don't move the mouse.
Last modified: 2017-09-05 01:51:06 UTC
Created attachment 291357 [details] test program The attached program should update tooltip text once per second, but actually only while I *move* the mouse within the window. How to reproduce: % gcc `pkg-config --cflags --libs gtk+-3.0` test.c % ./a.out and don't move your mouse on the window. Actual results: tooltip text is not updated. Expected Results: tooltip text is updated once per second. I looked at the gtk source code. In gtk_tooltip_trigger_tooltip_query(), /* Trigger logic as if the mouse moved */ but the GdkEvent event is not allocated with gdk_event_new(), the event has no source_device, so tooltips_enabled() returns FALSE, and text is not updated. I think so, but I have no idea how to fix. I have no patch. Versions: Arch Linux x86_64 % pkg-config --modversion gtk+-3.0 3.14.5 % pkg-config --modversion glib-2.0 2.42.1 % pkg-config --modversion atk 2.14.0
Created attachment 359148 [details] screencast of test case working fine (In reply to Yuuki Harano from comment #0) > The attached program should update tooltip text once per second, but > actually only while I *move* the mouse within the window. I can't reproduce this. It works fine for me. If you can still produce this result, please reopen with up-to-date info on your system and packages. Thanks! Note also that, even though this works for me, if I reduce the interval to about 500 ms or less, then I hit Bug 782978.