mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-22 02:08:26 +02:00
gui_frame.c (loop_scroll_event): reverse direction
For consistency with traversal of package list.
This commit is contained in:
parent
5a1fd80fc8
commit
15e5811aea
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user