! 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 !
Systemload plugin shows no tooltip
Status:
RESOLVED: FIXED
Product:
Xfce4-systemload-plugin
Component:
General

Comments

Description charlie-tca 2009-03-31 17:52:19 CEST
This bug has been reported on Ubuntu Launchpad as:
 https://bugs.launchpad.net/bugs/348904

Release: Xubuntu Jaunty 9.04 - Alpha 6 - Live CD and installed
Package: xfce4-systemload-plugin: 1:0.4.2-1ubuntu3

Expected behavior:
1) Moving your mouse over one of the plugin's bars
2) A tooltip appear with more information.

Actual behavior:
1) Moving your mouse over one of the plugin's bars
2) No tooltip

This used to work under Intrepid.
Package: xfce4-systemload-plugin: 1:0.4.2-1ubuntu3
Comment 1 Enrico Tröger editbugs 2009-04-01 16:00:35 CEST
Created attachment 2264 
Possible fix for the missing tooltips

In GTK 2.12 the tooltips code has been reworked but there was a bug that prevented that changed tooltips updated when already shown. See http://bugzilla.gnome.org/show_bug.cgi?id=487624.
This bug has been fixed in GTK 2.16 and while GTK now works properly, I think this is why the panel plugin is broken.

In GTK 2.12 new settings for the tooltips timeouts were added, these timeouts default to 500ms but the panel plugin updates its tooltips every 250ms. So, the timeout never gets activated because it's invalidated by the tooltip update by the plugin.

The attached patch tries to workaround this problem by reducing the GTK setting for the tooltip timeout to something less than 250ms so the timeout gets activated. This is not the best solution but the easiest.

A real fix would be to use the new GTK tooltips API and connect to the "query-tooltip" signal but these changes require GTK 2.12 while the attached patch just works.
Comment 2 Yves-Alexis Perez editbugs 2009-04-16 20:57:51 CEST
I'm not sure anobody still maintains that plugin, sadly. I'll try to integrate your patch in Debian packages, but sure it'd be nice if somebody could step in to port the plugin to GTK 2.12 api :)

Cheers,
Comment 3 Enrico Tröger editbugs 2009-04-16 21:43:13 CEST
Porting the plugin to GTK 2.12 should be fairly easy but obviously then it won't be compatible to earlier versions. Xfce 4.6 depends on GTK 2.10.

Anyway, this should be decided and done by the plugin maintainer.
Comment 4 Yves-Alexis Perez editbugs 2009-04-17 05:16:28 CEST
I'm not sure the gtk 2.12 dependency would be that problematic, but in the end there is still the #ifdef solution.

And yes, the decision belongs to the plugin maintainer. But is there any?
Comment 5 Mike Massonnet editbugs 2009-04-17 05:56:00 CEST
Well 1) there is no maintainer 2) goodies can depend on the requirements of Xfce 4.6, that is GTK+ 2.10. If people want support for an older GTK+ version than they should use an older version of the plugin.
Comment 6 Yves-Alexis Perez editbugs 2009-04-17 06:03:02 CEST
Yeah but we are talking of GTK 2.12 :)

Anyway, will the 4.8 panel plugin api be the same as 4.6 or will it be changed again and require another plugins rewrite?
Comment 7 Mike Massonnet editbugs 2009-04-17 06:06:28 CEST
(In reply to comment #6)
> Yeah but we are talking of GTK 2.12 :)
> 
> Anyway, will the 4.8 panel plugin api be the same as 4.6 or will it be changed
> again and require another plugins rewrite?

It will change but only the Makefiles will have to be updated. I have read Nick said this is gonna be easy.
Comment 8 Ali Abdallah editbugs 2009-08-05 17:05:27 CEST
*** Bug 5650 has been marked as a duplicate of this bug. ***
Comment 9 tim 2009-11-08 12:12:46 CET
*** Bug 5959 has been marked as a duplicate of this bug. ***
Comment 10 Jérôme Guelfucci editbugs 2009-11-11 09:45:39 CET
*** Bug 5865 has been marked as a duplicate of this bug. ***
Comment 11 Florian Rivoal editbugs 2010-11-12 17:32:31 CET
Fixed by upgrading to the non deprecated Gtk api for tooltips

Bug #5175

Reported by:
charlie-tca
Reported on: 2009-03-31
Last modified on: 2010-11-12
Duplicates (3):
  • 5650 No tool tips on mouse over - version 0.4.2
  • 5865 xfce4-systemload-plugin-0.4.2: Tooltips missing with gtk+-2.16.
  • 5959 gtk+ 2.16

People

Assignee:
Florian Rivoal
CC List:
7 users

Version

Version:
0.4.2 or older

Attachments

Possible fix for the missing tooltips (910 bytes, patch)
2009-04-01 16:00 CEST , Enrico Tröger
no flags

Additional information