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 753798 - Tooltip is poping up with window filled with the upper right screen part
Tooltip is poping up with window filled with the upper right screen part
Status: RESOLVED DUPLICATE of bug 754109
Product: glade
Classification: Applications
Component: user interface
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-19 09:27 UTC by mi
Modified: 2015-08-26 09:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mi 2015-08-19 09:27:24 UTC
OS: Debian 8 (LXDE GUI)
GTK+ 3 versions: 3.14 & 3.16

Reproduced on the following programs using GTK GUI:
1. Parole 0.8.0.
2. Gnome player.1.0.9
3. Debian document viewer evince 1.2.3.


Issue description:
When hovering with the cursor on & off the button GTK Widget, a tooltip appears and hide as it should.
on some of the times, prior to the right text and background appearing,
the rectangular window of the tooltip is filled with the upper right side of the screen (only for a few ms, but noticeable to the naked eye).

Issue is not reproduced on non-GTK3 GUI buttons tooltips (e.g. on the Debian file manager PCManFM 1.2.3)
Comment 1 mi 2015-08-26 07:51:07 UTC
Bug is of the GTK code:
==================================================
The Tooltip is shown on the upper left side of the screen (0,0) before it is moved in order to calculate boundaries for the allocation of the window.

It is not hide, and only later being moved to it's place.

In the meanwhile, the user see it blinking, with garbage inside.

I suggested a solution (workaround) of hiding the window after doing, the calculations (quick enough for not being shown on the screen).
Thus, the window of tooltip is only shown to user after using the move command.


in code I suggest - GTK3+ --> gtktooltip.c --> gtk_tooltip_position():
========================================================================
After the boundaries calculations: 
height = gtk_widget_get_allocated_height (GTK_WIDGET (tooltip->current_window)) - border.top - border.bottom;

Add the line: 
gtk_widget_set_visible (GTK_WIDGET (tooltip->current_window), FALSE);
Comment 2 mi 2015-08-26 09:21:14 UTC
This is duplicate of GTK core issue bug 754109:
https://bugzilla.gnome.org/show_bug.cgi?id=754109

*** This bug has been marked as a duplicate of bug 754109 ***