From: H.G.Muller Date: Wed, 2 Mar 2016 22:39:37 +0000 (+0100) Subject: Fix recognition of title in small layout X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=94ca1174b4136fbc28e2656a80382d0964cafaa0;p=xboard.git Fix recognition of title in small layout The title handle was set based on invalidation of Options by making their type -1, while this nowadays is done by setting them to Skip (as enum types are unsigned). --- diff --git a/gtk/xboard.c b/gtk/xboard.c index dbb2670..c62f2c3 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1139,7 +1139,7 @@ main (int argc, char **argv) boardWidget = optList[W_BOARD].handle; menuBarWidget = optList[W_MENU].handle; dropMenu = optList[W_DROP].handle; - titleWidget = optList[optList[W_TITLE].type != -1 ? W_TITLE : W_SMALL].handle; + titleWidget = optList[optList[W_TITLE].type != Skip ? W_TITLE : W_SMALL].handle; #ifdef TODO_GTK formWidget = XtParent(boardWidget); XtSetArg(args[0], XtNbackground, &timerBackgroundPixel); diff --git a/xaw/xboard.c b/xaw/xboard.c index 91d35b7..4fb562a 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -1234,7 +1234,7 @@ main (int argc, char **argv) boardWidget = optList[W_BOARD].handle; menuBarWidget = optList[W_MENU].handle; dropMenu = optList[W_DROP].handle; - titleWidget = optList[optList[W_TITLE].type != -1 ? W_TITLE : W_SMALL].handle; + titleWidget = optList[optList[W_TITLE].type != Skip ? W_TITLE : W_SMALL].handle; formWidget = XtParent(boardWidget); XtSetArg(args[0], XtNbackground, &timerBackgroundPixel); XtSetArg(args[1], XtNforeground, &timerForegroundPixel);