From 94ca1174b4136fbc28e2656a80382d0964cafaa0 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 2 Mar 2016 23:39:37 +0100 Subject: [PATCH] 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). --- gtk/xboard.c | 2 +- xaw/xboard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.0.4