! 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 !
time is not updated in tooltip while it is displayed
Status:
RESOLVED: FIXED
Product:
Xfce4-datetime-plugin
Component:
General

Comments

Description Steve 2008-05-23 22:36:21 CEST
When the plugin is configured to display the time in a tooltip, the time is not updated while the tooltip is displayed unless the cursor is moved slightly.

Reproduce by selecting "Date only, time in tooltip" for the layout and a time format that displays seconds.
Move the cursor over the plugin.
The time is displayed in a tooltip, but is not updated once a second.
Move the cursor slightly over the plugin to update the time.

Expected behavior is for the time to be updated automatically while the tooltip is displayed.

Trunk rev. 4835.
Comment 1 Diego Ongaro 2008-05-23 23:01:29 CEST
Confirmed. However, other plugins (for example, system load and network monitor) also have the same (bad) behavior. I wonder why...
Comment 2 Steve 2008-05-24 10:58:10 CEST
(In reply to comment #1)
> Confirmed. However, other plugins (for example, system load and network
> monitor) also have the same (bad) behavior. I wonder why...

Thanks for these examples.

One possible problem is that the datetime plugin is using the deprecated GtkTooltips API. 
"GtkTooltip belongs to the new tooltips API that was introduced in GTK+ 2.12 and which deprecates the old GtkTooltips API."
http://library.gnome.org/devel/gtk/2.12/GtkTooltip.html

Fedora 9 has gtk2-2.12.9-5.fc9.i386.
Ubuntu 8.04 also has GTK+ 2.12.9.
Comment 3 Diego Ongaro 2008-05-24 11:59:43 CEST
GtkTooltips is certainly something to address in the future, especially if the new tooltips API would solve this issue. It shouldn't have a hard dependency on gtk 2.12, however, since xfce 4.6 will depend only on gtk 2.10.

Also, Steve, can you code? You seem to have quite a bit of interest in the plugin :)
Comment 4 Steve 2008-05-26 12:13:51 CEST
(In reply to comment #3)
> GtkTooltips is certainly something to address in the future, especially if the
> new tooltips API would solve this issue. It shouldn't have a hard dependency on
> gtk 2.12, however, since xfce 4.6 will depend only on gtk 2.10.

OK, thanks for pointing this out.

Re GTK 2.10 dependency:
http://wiki.xfce.org/roadmap_to_46
Comment 5 Diego Ongaro 2008-06-07 23:21:18 CEST
I just committed a new tooltip implementation for r4904-r4910, enabled only when compiled with GTK >= 2.10.

It doesn't solve this issue, but it was a necessary first step.
Comment 6 Diego Ongaro 2008-06-08 00:20:25 CEST
Fixed in r4911. It was definitely less straight-forward than I would have liked.

Bug #4110

Reported by:
Steve
Reported on: 2008-05-23
Last modified on: 2010-11-09

People

Assignee:
Diego Ongaro
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information