mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
fix another critical warning
This commit is contained in:
parent
2b5b4ba982
commit
f7b6d30dc2
1 changed files with 2 additions and 1 deletions
|
@ -1904,7 +1904,8 @@ gtk_util_yOffsetChange( XW_UtilCtxt* uc, XP_U16 maxOffset,
|
||||||
XP_U16 newOffset )
|
XP_U16 newOffset )
|
||||||
{
|
{
|
||||||
GtkGameGlobals* globals = (GtkGameGlobals*)uc->closure;
|
GtkGameGlobals* globals = (GtkGameGlobals*)uc->closure;
|
||||||
if ( !!globals->adjustment ) {
|
/* adjustment is invalid when gtk's shutting down; ignore */
|
||||||
|
if ( !!globals->adjustment && GTK_IS_ADJUSTMENT(globals->adjustment) ) {
|
||||||
gint nRows = globals->cGlobals.gi->boardSize;
|
gint nRows = globals->cGlobals.gi->boardSize;
|
||||||
gtk_adjustment_set_page_size(globals->adjustment, nRows - maxOffset);
|
gtk_adjustment_set_page_size(globals->adjustment, nRows - maxOffset);
|
||||||
gtk_adjustment_set_value(globals->adjustment, newOffset);
|
gtk_adjustment_set_value(globals->adjustment, newOffset);
|
||||||
|
|
Loading…
Add table
Reference in a new issue