X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxoptions.c;h=e183cf2f37f8826fde5b8b39bb84a6cac1935367;hb=ca218df6e665995a11015980f86003d915de9812;hp=5caa95a0097b1c5774769e091131d18d9766a465;hpb=e5eb4d4682dc573c4bb981ecd9cde67d579c0515;p=xboard.git diff --git a/xaw/xoptions.c b/xaw/xoptions.c index 5caa95a..e183cf2 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -273,12 +273,29 @@ SetTextColor (char **cnames, int fg, int bg, int attr) void AppendColorized (Option *opt, char *message, int count) { + if(!opt->handle) return; AppendText(opt, message); } void Show (Option *opt, int hide) { + static Dimension h; + Arg args[16]; + Dimension v; + int j=0; +return; // FIXME: it would be nice if the Chat window did have an ICS pane we could hide behind +printf("Show(%d) %x\n", hide, opt->handle); + if(!opt->handle) return; + if(hide) { // make sure original size is saved + XtSetArg(args[j], XtNheight, &v); j++; + XtGetValues(opt->handle, args, j); + if(v != 1) h = v; + } +printf("h = %d\n",h); + j = 0; + XtSetArg(args[j], XtNheight, hide ? 1 : h); j++; + XtSetValues(opt->handle, args, j); } void