[Xfce4-commits] <xfce4-weather-plugin:master> Show wind speed unit in details tab.
Harald Judt
noreply at xfce.org
Tue Dec 4 21:14:01 CET 2012
Updating branch refs/heads/master
to 3a13d47f11fedd66f651f76d4b1fdcd877054ac3 (commit)
from 0e9fd926273180b93ab493366b2504c8d48ac564 (commit)
commit 3a13d47f11fedd66f651f76d4b1fdcd877054ac3
Author: Harald Judt <h.judt at gmx.at>
Date: Tue Dec 4 21:10:52 2012 +0100
Show wind speed unit in details tab.
panel-plugin/weather-summary.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 8cfee6e..785c2ac 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -415,8 +415,10 @@ create_summary_tab(xfceweather_data *data)
APPEND_BTEXT(_("\nWind\n"));
wind = get_data(conditions, data->units, WIND_SPEED, FALSE);
rawvalue = get_data(conditions, data->units, WIND_BEAUFORT, FALSE);
- value = g_strdup_printf(_("\t%s: %s (%s on the Beaufort scale)\n"),
- _("Speed"), wind, rawvalue);
+ value = g_strdup_printf(_("\t%s: %s %s (%s on the Beaufort scale)\n"),
+ _("Speed"), wind,
+ get_unit(data->units, WIND_SPEED),
+ rawvalue);
g_free(rawvalue);
g_free(wind);
APPEND_TEXT_ITEM_REAL(value);
More information about the Xfce4-commits
mailing list