GNOME Bugzilla – Bug 756910
wayland: tooltip is misplaced
Last modified: 2018-05-02 16:48:41 UTC
Created attachment 313813 [details] screenshot When I hover a menu item in firewall-config, the tooltip is displayed shifted down, see attachement. checked bug 703460 and bug 703471 but none of attached patches is working, so filing it as a new bug
firefox has its own tooltip implementation, afaik. So this is really a firefox bug.
I believe stransky and ofourdain figured this out on irc
huh? who talked about firefox? This is firewall-config
Created attachment 314177 [details] [review] Patch to make the menu demo in gtk3-demo reproduce the issue Attaching a small diff that makes the issue reproduce in the "Menu" demo in gtk3-demo. The issue seems to that tooltips of menu items are offset by something, and the further down the submenu, the more offset they are.
oh, tooltips on menuitems :-( thats such a bad idea...
Created attachment 316522 [details] [review] make positioning of the tooltip relative to tooltip's widget This patch works for me. It should not change behavior under X in any visible way.
Hmm, not sure this is entirely right. I see some erratic behavior in testtooltips, when moving over the tree and drawing area examples.
Review of attachment 316522 [details] [review]: .
looks like it is because testtootltips does not set tip_area for the drawing area and that gtk_tooltip_position does not count with tip_area at all (hmm, how come that it worked under X without tip_area?)
(In reply to Matthias Clasen from comment #5) > oh, tooltips on menuitems :-( thats such a bad idea... Why? This can be very useful. For example, if a menu has abbreviated labels for its items, then it is kind to users to show a more full description on hover (without having to make the label longer, refer to an external manual, etc.) And given the number of people I've seen wanting tooltips on e.g. GtkComboBox, I don't think I'm the only person who finds this useful. (I started my own Combo widget so that I could have tooltips and mnemonics on items; let the judgment commence.)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/579.