LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2018, 05:54 PM   #1
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 65
Blog Entries: 10

Rep: Reputation: 11
xfce4-systemload-plugin on slackware64-current (15.0) tooltips do not work


xfce4-systemload-plugin-1.2.1 switched from GTK2 to GTK3. The tooltips that showed memory, processor load, etc. on xfce4-systemload-plugin-1.1.2 no longer function. I rebuilt 1.1.2 from source on slackware64-current and it works fine. Maybe revert until it's fixed? I haven't checked all xfce4 panel plugins, but the ones I use still use GTK2 even on slackware64-current, and also work fine.
 
Old 04-02-2018, 06:32 PM   #2
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,372

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
I tested with 1.1.99, 1.2.0, 1.2.1 and none of them have a working tool tip. I agree with Rod3775, it might be a good idea to revert the xfce4-systemload-plugin to version 1.1.2.
 
Old 04-03-2018, 09:32 AM   #3
heyjann
Member
 
Registered: Dec 2015
Posts: 102

Rep: Reputation: Disabled
For info, this fix suggests that this can be solved by setting the update interval to 0.5 seconds or longer.

https://git.xfce.org/panel-plugins/x...1f421461bcdfa7

("If the value read in the config is below 500ms, [set to 500ms to avoid triggering the gtk bug]")
 
1 members found this post helpful.
Old 04-03-2018, 11:15 AM   #4
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 65

Original Poster
Blog Entries: 10

Rep: Reputation: 11
Per the GTK-3 Developer's Manual:

GtkSettings:gtk-tooltip-timeout has been deprecated since version 3.10 and should not be used in newly-written code.
This setting is ignored.

xfce4-systemload tweaked gtk-tooltip-timeout to get the tooltip displayed (systemload.c:435). This is no longer possible, and the authors will need to find a new way to accomplish this! They did not change the code when moving to GTK-3.
 
Old 04-03-2018, 12:20 PM   #5
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 65

Original Poster
Blog Entries: 10

Rep: Reputation: 11
[SOLVED] change update timing

For what it's worth, 500ms did not fix the bug, but 550ms (the next value possible in the "Properties" dialog did. Oh well.
 
Old 04-05-2018, 05:11 PM   #6
Rod3775
Member
 
Registered: May 2008
Location: Washington State
Distribution: Slackware-current
Posts: 65

Original Poster
Blog Entries: 10

Rep: Reputation: 11
[BETTER SOLUTION] patch for xfce4-systemload

Historically, tooltips were intended for relatively static "tips" about particular Widgets. There is a time delay in their appearance so that moving the mouse around does not produce a flood of appearing and disappearing tooltips. In GTK-2, the delay was settable on a per-Widget basis. In GTK-3, the delay is hard-coded (in gtktooltip.c) at 500ms. For the intended purpose of tooltips, this is fine. However, several XFCE panel plugins (systemload, netload, sensors and pulseaudio come to mind) use tooltips to display rapidly-changing information. Updating a tooltip more rapidly than the tooltip time delay results in the tooltip never being displayed. In GTK-2, systemload simply changes its tooltip time delay to be less than its update frequency, so the tooltip works fine. In GTK-3, the time delay cannot be read or altered. The attached patch for xfce4-systemload-plugin defers updating the tooltip (but not the bar display) until sufficient time has passed from its last update. In this way. the bar display on the panel can be updated rapidly, while not violating the 500ms tooltip delay.

A similar fix for netload will be required when the SlackBuilds.org maintainers upgrade xfce4-netload-plugin to GTK-3.
Attached Files
File Type: txt xfce4-systemload-plugin-1.2.1.txt (1.9 KB, 24 views)
 
  


Reply

Tags
gtk3, slackware -current, xfce4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64 14.2 : Xfce how to compile DockbarX & xfce4-dockbarx-plugin ? inukaze Slackware 5 01-29-2018 01:10 AM
[SOLVED] Slackware64-current: cannot compile xfce4-panel-4.12 yars Slackware 5 08-12-2015 10:51 AM
[SOLVED] Slackware64 -current xfce4-session tuxbg Slackware 9 05-25-2013 04:59 PM
Have you gotten xfce4-mail-notification-plugin to work? General Linux - Software 2 05-13-2011 04:38 AM
[SOLVED] xfce4-systemload-plugin does not work after install blackdragonblood Slackware 2 04-16-2011 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration