[Xfce4-commits] <xfce4-weather-plugin:master> Scrollbox: Do not animate if only one label is chosen (bug #9664).
Harald Judt
noreply at xfce.org
Thu Dec 20 10:56:01 CET 2012
Updating branch refs/heads/master
to e52c04b5c229fc61618a422190e1a9d69124e56f (commit)
from 77788b6b254142ceaf57e6fc65374132a14a7a26 (commit)
commit e52c04b5c229fc61618a422190e1a9d69124e56f
Author: Harald Judt <h.judt at gmx.at>
Date: Thu Dec 20 10:27:51 2012 +0100
Scrollbox: Do not animate if only one label is chosen (bug #9664).
panel-plugin/weather-scrollbox.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/weather-scrollbox.c b/panel-plugin/weather-scrollbox.c
index 50b95a2..fe2c7f4 100644
--- a/panel-plugin/weather-scrollbox.c
+++ b/panel-plugin/weather-scrollbox.c
@@ -351,7 +351,10 @@ gtk_scrollbox_control_loop(gpointer user_data)
}
break;
case FADE_SLEEP:
- self->fade = self->animate ? FADE_OUT : FADE_NONE;
+ if (self->animate && self->labels_len > 1)
+ self->fade = FADE_OUT;
+ else
+ self->fade = FADE_NONE;
break;
}
More information about the Xfce4-commits
mailing list