mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +01:00
don't put up dict change dialog (which blocks) unless names are
different.
This commit is contained in:
parent
d74814a806
commit
79a212c985
1 changed files with 12 additions and 10 deletions
|
@ -1573,17 +1573,19 @@ gtk_util_informNetDict( XW_UtilCtxt* uc, XP_LangCode XP_UNUSED(lang),
|
||||||
const XP_UCHAR* newName, const XP_UCHAR* newSum,
|
const XP_UCHAR* newName, const XP_UCHAR* newSum,
|
||||||
XWPhoniesChoice phoniesAction )
|
XWPhoniesChoice phoniesAction )
|
||||||
{
|
{
|
||||||
GtkGameGlobals* globals = (GtkGameGlobals*)uc->closure;
|
if ( 0 != strcmp( oldName, newName ) ) {
|
||||||
gchar buf[512];
|
GtkGameGlobals* globals = (GtkGameGlobals*)uc->closure;
|
||||||
|
gchar buf[512];
|
||||||
int offset = snprintf( buf, VSIZE(buf),
|
int offset = snprintf( buf, VSIZE(buf),
|
||||||
"dict changing from %s to %s (sum=%s).",
|
"dict changing from %s to %s (sum=%s).",
|
||||||
oldName, newName, newSum );
|
oldName, newName, newSum );
|
||||||
if ( PHONIES_DISALLOW == phoniesAction ) {
|
if ( PHONIES_DISALLOW == phoniesAction ) {
|
||||||
snprintf( &buf[offset], VSIZE(buf)-offset, "%s",
|
snprintf( &buf[offset], VSIZE(buf)-offset, "%s",
|
||||||
"\nPHONIES_DISALLOW is set so this may lead to some surprises." );
|
"\nPHONIES_DISALLOW is set so this may "
|
||||||
|
"lead to some surprises." );
|
||||||
|
}
|
||||||
|
(void)gtkask( globals->window, buf, GTK_BUTTONS_OK );
|
||||||
}
|
}
|
||||||
(void)gtkask( globals->window, buf, GTK_BUTTONS_OK );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
|
Loading…
Add table
Reference in a new issue