1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 20:52:56 +03:00

Modified the key shortcuts for the wallpaper dialog.

This commit is contained in:
Ayla 2011-09-18 03:16:08 +02:00
parent d0cfe7c60d
commit 38cfd321f6

View File

@ -73,6 +73,7 @@ bool WallpaperDialog::exec()
ButtonBox buttonbox(gmenu2x); ButtonBox buttonbox(gmenu2x);
buttonbox.add(new IconButton(gmenu2x, "skin:imgs/buttons/b.png", gmenu2x->tr["Select wallpaper"])); buttonbox.add(new IconButton(gmenu2x, "skin:imgs/buttons/b.png", gmenu2x->tr["Select wallpaper"]));
buttonbox.add(new IconButton(gmenu2x, "skin:imgs/buttons/a.png", gmenu2x->tr["Exit"]));
while (!close) { while (!close) {
if (selected>firstElement+9) firstElement=selected-9; if (selected>firstElement+9) firstElement=selected-9;
@ -107,8 +108,7 @@ bool WallpaperDialog::exec()
gmenu2x->s->flip(); gmenu2x->s->flip();
switch(gmenu2x->input.waitForPressedButton()) { switch(gmenu2x->input.waitForPressedButton()) {
case MENU: case CANCEL:
case CLEAR:
close = true; close = true;
result = false; result = false;
break; break;