mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
provide non-empty default names for linux players
This commit is contained in:
parent
d26ae4a1b0
commit
d084ccec2b
1 changed files with 8 additions and 2 deletions
|
@ -482,10 +482,16 @@ gtk_newgame_col_set( void* closure, XP_U16 player, NewGameColumn col,
|
|||
|
||||
switch ( col ) {
|
||||
case NG_COL_NAME:
|
||||
case NG_COL_PASSWD:
|
||||
cp = value.ng_cp? value.ng_cp : "";
|
||||
case NG_COL_PASSWD: {
|
||||
gchar buf[32];
|
||||
cp = !!value.ng_cp ? value.ng_cp : "";
|
||||
if ( NG_COL_NAME == col && '\0' == cp[0] ) {
|
||||
sprintf( buf, "Linuser %d", 1 + player );
|
||||
cp = buf;
|
||||
}
|
||||
gtk_entry_set_text( GTK_ENTRY(widget), cp );
|
||||
break;
|
||||
}
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
case NG_COL_REMOTE:
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue