Remove inclusion of frontend.h from backendz.h
[xboard.git] / xedittags.c
index fdaf3e3..d27aca3 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,20 +110,12 @@ EditTagsPopUp (char *tags, char **dest)
 void
 TagsPopDown()
 {
-    PopDown(2);
+    PopDown(TagsDlg);
     bookUp = False;
 }
 
 void
 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();
 }