mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
move Games button to far left
It'll be most often used
This commit is contained in:
parent
bf88c000b7
commit
d6d613e2aa
1 changed files with 4 additions and 3 deletions
|
@ -821,18 +821,19 @@ updateDeviceButtons( Globals* globals )
|
||||||
{
|
{
|
||||||
const char* buttons[MAX_BUTTONS];
|
const char* buttons[MAX_BUTTONS];
|
||||||
int cur = 0;
|
int cur = 0;
|
||||||
if ( 0 < countDicts( globals ) ) {
|
|
||||||
buttons[cur++] = BUTTON_GAME_NEW;
|
|
||||||
}
|
|
||||||
if ( 0 < countGames(globals) ) {
|
if ( 0 < countGames(globals) ) {
|
||||||
buttons[cur++] = BUTTON_GAME_OPEN;
|
buttons[cur++] = BUTTON_GAME_OPEN;
|
||||||
}
|
}
|
||||||
|
if ( 0 < countDicts( globals ) ) {
|
||||||
|
buttons[cur++] = BUTTON_GAME_NEW;
|
||||||
|
}
|
||||||
if ( !!getCurGame( globals ) ) {
|
if ( !!getCurGame( globals ) ) {
|
||||||
buttons[cur++] = BUTTON_GAME_RENAME;
|
buttons[cur++] = BUTTON_GAME_RENAME;
|
||||||
buttons[cur++] = BUTTON_GAME_DELETE;
|
buttons[cur++] = BUTTON_GAME_DELETE;
|
||||||
}
|
}
|
||||||
buttons[cur++] = BUTTON_NAME;
|
buttons[cur++] = BUTTON_NAME;
|
||||||
buttons[cur++] = NULL;
|
buttons[cur++] = NULL;
|
||||||
|
XP_ASSERT( cur <= VSIZE(buttons) );
|
||||||
|
|
||||||
setButtons( BUTTONS_ID_DEVICE, buttons, onDeviceButton, globals );
|
setButtons( BUTTONS_ID_DEVICE, buttons, onDeviceButton, globals );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue