X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=b3bea5af144e3dec711e422a6d16583fb70c4914;hb=f23961e675c1fb441ebb3392ff21f47c6db1c941;hp=7ed256aca9d5782e75bccbb95be58b07d71ab193;hpb=c82483e9f02cc7e6efb6ee7c8140d8dd2fbd5573;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 7ed256a..b3bea5a 100644 --- a/xoptions.c +++ b/xoptions.c @@ -74,6 +74,7 @@ extern char *getenv(); #include "common.h" #include "backend.h" #include "xboard.h" +#include "xboard2.h" #include "dialogs.h" #include "menus.h" #include "gettext.h" @@ -143,6 +144,18 @@ static Arg formArgs[] = { }; void +MarkMenuItem (char *menuRef, int state) +{ + MenuItem *item = MenuNameToItem(menuRef); + + if(item) { + Arg args[2]; + XtSetArg(args[0], XtNleftBitmap, state ? xMarkPixmap : None); + XtSetValues(item->handle, args, 1); + } +} + +void GetWidgetText (Option *opt, char **buf) { Arg arg;