[Xfce4-commits] <xfce4-weather-plugin:master> Scrollbox: Hook up scrolldown/scrollup events to prev/next labels.
Harald Judt
noreply at xfce.org
Sat Dec 15 21:22:04 CET 2012
Updating branch refs/heads/master
to e0ba60ed9879eefd117f106c7c408c107da185df (commit)
from 1cfa828ac72a587a3f4c0cb178f21438d6328c9f (commit)
commit e0ba60ed9879eefd117f106c7c408c107da185df
Author: Harald Judt <h.judt at gmx.at>
Date: Fri Dec 14 19:47:10 2012 +0100
Scrollbox: Hook up scrolldown/scrollup events to prev/next labels.
panel-plugin/weather.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index fd096e2..5a1531b 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -1188,9 +1188,10 @@ cb_scroll(GtkWidget *widget,
{
plugin_data *data = (plugin_data *) user_data;
- if (event->direction == GDK_SCROLL_UP ||
- event->direction == GDK_SCROLL_DOWN)
+ if (event->direction == GDK_SCROLL_UP)
gtk_scrollbox_next_label(GTK_SCROLLBOX(data->scrollbox));
+ else if (event->direction == GDK_SCROLL_DOWN)
+ gtk_scrollbox_prev_label(GTK_SCROLLBOX(data->scrollbox));
return FALSE;
}
More information about the Xfce4-commits
mailing list