After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756910 - wayland: tooltip is misplaced
wayland: tooltip is misplaced
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-10-21 13:19 UTC by Marek Chalupa
Modified: 2018-05-02 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (29.59 KB, image/png)
2015-10-21 13:19 UTC, Marek Chalupa
  Details
Patch to make the menu demo in gtk3-demo reproduce the issue (526 bytes, patch)
2015-10-27 04:35 UTC, Jonas Ådahl
none Details | Review
make positioning of the tooltip relative to tooltip's widget (7.24 KB, patch)
2015-11-30 15:08 UTC, Marek Chalupa
reviewed Details | Review

Description Marek Chalupa 2015-10-21 13:19:24 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
Comment 1 Matthias Clasen 2015-10-22 11:24:06 UTC
firefox has its own tooltip implementation, afaik. So this is really a firefox bug.
Comment 2 Matthias Clasen 2015-10-23 10:57:18 UTC
I believe stransky and ofourdain figured this out on irc
Comment 3 Marek Chalupa 2015-10-24 17:19:30 UTC
huh? who talked about firefox? This is firewall-config
Comment 4 Jonas Ådahl 2015-10-27 04:35:25 UTC
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.
Comment 5 Matthias Clasen 2015-10-27 13:36:47 UTC
oh, tooltips on menuitems :-( thats such a bad idea...
Comment 6 Marek Chalupa 2015-11-30 15:08:35 UTC
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.
Comment 7 Matthias Clasen 2015-12-04 14:04:56 UTC
Hmm, not sure this is entirely right. I see some erratic behavior in testtooltips, when moving over the tree and drawing area examples.
Comment 8 Matthias Clasen 2015-12-04 14:07:04 UTC
Review of attachment 316522 [details] [review]:

.
Comment 9 Marek Chalupa 2015-12-11 14:26:40 UTC
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?)
Comment 10 Daniel Boles 2017-07-30 11:39:40 UTC
(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.)
Comment 11 GNOME Infrastructure Team 2018-05-02 16:48:41 UTC
-- 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.