X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xedittags.c;h=417c2b6b899addb8c72012f371b0b24997dac635;hb=c0d0ea91773838e5d11c3cd3b407fea251058c34;hp=36f5fb43c7bc8c38450839e4436902221dfc51fe;hpb=4e062d14429ed3a3a251c971690bade4c8cba946;p=xboard.git diff --git a/xedittags.c b/xedittags.c index 36f5fb4..417c2b6 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,14 @@ 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(); }