! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Missing tooltips in the plugin
Status:
CLOSED: FIXED
Product:
Xfce4-netload-plugin
Component:
General

Comments

Description Enrico Tröger editbugs 2009-04-01 16:09:25 CEST
Created attachment 2265 
Possible fix for the missing tooltips

Since GTK 2.16 displaying tooltips in the panel plugin is broken because of changes in GTK. This happens at least when the plugin update timeout is set to less than 500ms.

I described the problem a bit more detailed in bug #5175.

Attached is a patch which fixes the problem by adjusting the default GTK tooltips timeout to the set timeout in the panel plugin.
Comment 1 Dimitar Zhekov 2009-05-23 18:05:46 CEST
Created attachment 2368 
Alternative fix and use gtk_add_seconds if gtk+ >= 2.14

Sets the interval min/max/delta -> 1.0/10/0.25

Under gtk+ 2.14+ displays a label that whole seconds are more efficient, and uses g_timeout_add_seconds() if whole seconds instead of g_timeout_add().

Also updates tips to use the 2.12+ API, since GtkTooltips are deprecated from almost two years now.
Comment 2 Harald Judt 2009-10-12 09:49:21 CEST
I'm using gtk+-2.16.6 and without the patches, the tooltips will never show.

For me, the first patch by Enrico completely fixes this issue. Thanks for this solution, I've fixed the other plugins this way.

After applying the second patch the tooltip shows when there is no network activity. If there is activity, the tooltip never shows up.
Comment 3 Florian Rivoal editbugs 2010-11-12 02:53:23 CET
Thanks for the patches. Ultimately though, I applied a different solution, and switched from the deprecated GtkTooltips API to the newer GtkTooltip (without an s).

This solves the problem.

Bug #5177

Reported by:
Enrico Tröger
Reported on: 2009-04-01
Last modified on: 2012-01-13

People

Assignee:
Florian Rivoal
CC List:
2 users

Version

Version:
0.4.0 or older

Attachments

Additional information