New browser
[xboard.git] / xedittags.c
index fdaf3e3..417c2b6 100644 (file)
@@ -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,7 +110,7 @@ EditTagsPopUp (char *tags, char **dest)
 void
 TagsPopDown()
 {
-    PopDown(2);
+    PopDown(TagsDlg);
     bookUp = False;
 }
 
@@ -118,11 +119,5 @@ 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();
 }