X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xedittags.c;h=d27aca36e5e57312e1a4a01b80975b576fb41feb;hb=54fc63f1e8ea41966f47d2b60b616db0a9c5010d;hp=36f5fb43c7bc8c38450839e4436902221dfc51fe;hpb=4e062d14429ed3a3a251c971690bade4c8cba946;p=xboard.git diff --git a/xedittags.c b/xedittags.c index 36f5fb4..d27aca3 100644 --- a/xedittags.c +++ b/xedittags.c @@ -81,6 +81,7 @@ extern char *getenv(); #include "backend.h" #include "xboard.h" #include "xedittags.h" +#include "dialogs.h" #include "gettext.h" #ifdef ENABLE_NLS @@ -109,20 +110,12 @@ EditTagsPopUp (char *tags, char **dest) void TagsPopDown() { - PopDown(2); + PopDown(TagsDlg); bookUp = False; } void -EditTagsProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) +EditTagsProc () { - Arg args[5]; - int j; - if (!bookUp && PopDown(2)) { - j = 0; - XtSetArg(args[j], XtNleftBitmap, None); j++; - XtSetValues(XtNameToWidget(menuBarWidget, "menuView.Show Tags"), args, j); - } else { - EditTagsEvent(); - } + if (bookUp || !PopDown(TagsDlg)) EditTagsEvent(); }