[Xfce4-commits] <xfce4-weather-plugin:master> Scrollbox: Use longer sleep time when animation is deactivated.
Harald Judt
noreply at xfce.org
Mon Jan 14 18:08:09 CET 2013
Updating branch refs/heads/master
to bab11195264ea2e0e87dfa858d03ec4a657a9bb6 (commit)
from 67ca1d3c354ed3421bedded8fcb7fe4f2fff524e (commit)
commit bab11195264ea2e0e87dfa858d03ec4a657a9bb6
Author: Harald Judt <h.judt at gmx.at>
Date: Mon Jan 14 12:02:42 2013 +0100
Scrollbox: Use longer sleep time when animation is deactivated.
When the transition animation is deactivated, the transitions happen
a bit frantically. This is especially bad when multiple lines are used.
Doubling the sleep time results in a more comfortable experience.
panel-plugin/weather-scrollbox.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/weather-scrollbox.c b/panel-plugin/weather-scrollbox.c
index 3cb39de..f3ca70d 100644
--- a/panel-plugin/weather-scrollbox.c
+++ b/panel-plugin/weather-scrollbox.c
@@ -28,8 +28,9 @@
#include "weather-scrollbox.h"
-#define LABEL_SLEEP (3) /* sleep time in seconds */
-#define LABEL_SPEED (25) /* animation speed, delay in ms */
+#define LABEL_SLEEP (3) /* sleep time in seconds */
+#define LABEL_SLEEP_LONG (6) /* sleep time in seconds for FADE_NONE */
+#define LABEL_SPEED (25) /* animation speed, delay in ms */
static void gtk_scrollbox_finalize(GObject *object);
@@ -392,7 +393,7 @@ gtk_scrollbox_control_loop(gpointer user_data)
self->offset = GTK_WIDGET(self)->allocation.height;
else
self->offset = GTK_WIDGET(self)->allocation.width;
- self->timeout_id = g_timeout_add_seconds(LABEL_SLEEP,
+ self->timeout_id = g_timeout_add_seconds(LABEL_SLEEP_LONG,
gtk_scrollbox_control_loop,
self);
break;
More information about the Xfce4-commits
mailing list