[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 01/01: Adjust tooltip such that period is shown as a float (2) decimal number
noreply at xfce.org
noreply at xfce.org
Thu Sep 6 04:22:36 CEST 2018
This is an automated email from the git hooks/post-receive script.
T o Z p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-genmon-plugin.
commit 760961458eff95c541fd90ca5b9c1dd98f86ab81
Author: ToZ <tony.paulic at gmail.com>
Date: Wed Sep 5 22:22:23 2018 -0400
Adjust tooltip such that period is shown as a float (2) decimal number
---
panel-plugin/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index c70b206..5b42384 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -269,8 +269,8 @@ static int DisplayCmdOutput (struct genmon_t *p_poPlugin)
acToolTips = g_strdup_printf ("%s\n"
"----------------\n"
"%s\n"
- "Period (s): %d", poConf->acTitle, poConf->acCmd,
- poConf->iPeriod_ms / 1000);
+ "Period (s): %.2f", poConf->acTitle, poConf->acCmd,
+ (float)poConf->iPeriod_ms / 1000);
gtk_widget_set_tooltip_markup (GTK_WIDGET (poMonitor->wEventBox),acToolTips);
g_free (acToolTips);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list