[Xfce4-commits] [xfce/xfce4-panel] 01/01: Analog clock: move minute hand smoothly when showing second hand
noreply at xfce.org
noreply at xfce.org
Sun Apr 2 00:03:43 CEST 2017
This is an automated email from the git hooks/post-receive script.
andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.
commit 016331255217b246cba32a7bee566870d4b8588f
Author: Andrzej <ndrwrdck at gmail.com>
Date: Sat Apr 1 23:03:32 2017 +0100
Analog clock: move minute hand smoothly when showing second hand
---
plugins/clock/clock-analog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/clock/clock-analog.c b/plugins/clock/clock-analog.c
index 294dec5..571f577 100644
--- a/plugins/clock/clock-analog.c
+++ b/plugins/clock/clock-analog.c
@@ -249,7 +249,7 @@ xfce_clock_analog_draw (GtkWidget *widget,
}
/* minute pointer */
- angle = TICKS_TO_RADIANS (g_date_time_get_minute (time));
+ angle = TICKS_TO_RADIANS (g_date_time_get_minute (time) + g_date_time_get_second (time) / 60.0);
xfce_clock_analog_draw_pointer (cr, xc, yc, radius, angle, 0.8, FALSE);
/* hour pointer */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list