Add -topLevel option
[xboard.git] / xedittags.c
index b1fdd67..0235da4 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
@@ -93,36 +94,32 @@ extern char *getenv();
 
 Position tagsX = -1, tagsY = -1;
 
-void TagsPopUp(tags, msg)
-     char *tags, *msg;
+void
+TagsPopUp (char *tags, char *msg)
 {
     NewTagsPopup(tags, cmailMsgLoaded ? msg : NULL);
 }
 
 
-void EditTagsPopUp(tags, dest)
-     char *tags;
-     char **dest;
+void
+EditTagsPopUp (char *tags, char **dest)
 {
     NewTagsPopup(tags, NULL);
 }
 
-void TagsPopDown()
+void
+TagsPopDown()
 {
-    PopDown(2);
+    PopDown(TagsDlg);
     bookUp = False;
 }
 
 void
-EditTagsProc(w, event, prms, nprms)
-     Widget w;
-     XEvent *event;
-     String *prms;
-     Cardinal *nprms;
+EditTagsProc ()
 {
     Arg args[5];
     int j;
-    if (!bookUp && PopDown(2)) {
+    if (!bookUp && PopDown(TagsDlg)) {
        j = 0;
        XtSetArg(args[j], XtNleftBitmap, None); j++;
        XtSetValues(XtNameToWidget(menuBarWidget, "menuView.Show Tags"), args, j);