1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-22 08:24:06 +02:00

gui_frame.c (loop_scroll_event): reverse direction

For consistency with traversal of package list.
This commit is contained in:
Werner Almesberger 2015-01-09 08:57:21 -03:00
parent 5a1fd80fc8
commit 15e5811aea

View File

@ -1220,13 +1220,13 @@ static gboolean loop_scroll_event(GtkWidget *widget, GdkEventScroll *event,
struct loop *loop = data; struct loop *loop = data;
switch (event->direction) { switch (event->direction) {
case GDK_SCROLL_UP: case GDK_SCROLL_DOWN:
if (loop->active < loop->iterations-1) { if (loop->active < loop->iterations-1) {
loop->active++; loop->active++;
change_world(); change_world();
} }
break; break;
case GDK_SCROLL_DOWN: case GDK_SCROLL_UP:
if (loop->active) { if (loop->active) {
loop->active--; loop->active--;
change_world(); change_world();