}
void
-IcsTextProc ()
+IcsTextPopUp ()
{
int i=0, j;
char *p, *q, *r;
GenericPopUp(textOptions, _("ICS text menu"), TextMenuDlg, BoardWindow, NONMODAL, appData.topLevel);
}
+void
+IcsTextProc ()
+{
+ if(shellUp[TextMenuDlg]) PopDown(TextMenuDlg);
+ else IcsTextPopUp();
+}
+
//---------------------------------------------------- Edit Comment -----------------------------------
static char *commentText;
if(wpTextMenu.x < 0) wpTextMenu.x = 0;
if(wpTextMenu.y < 0) wpTextMenu.y = 0;
wpTextMenu.width = wpTextMenu.height = -1;
- IcsTextProc();
+ IcsTextPopUp();
return TRUE;
}
}
void
-ChatProc ()
+ChatPopUp ()
{
if(GenericPopUp(chatOptions, _("ICS Interaction"), ChatDlg, BoardWindow, NONMODAL, appData.topLevel))
AddHandler(&chatOptions[CHAT_PARTNER], ChatDlg, 2), AddHandler(&chatOptions[CHAT_IN], ChatDlg, 2); // treats return as OK
}
void
+ChatProc ()
+{
+ if(shellUp[ChatDlg]) PopDown(ChatDlg);
+ else ChatPopUp();
+}
+
+void
ConsoleAutoPopUp (char *buf)
{
if(!appData.autoBox) return;
SetWidgetText(&chatOptions[CHAT_IN], newText, ChatDlg);
if(shellUp[ChatDlg]) HardSetFocus (&chatOptions[CHAT_IN], ChatDlg); //why???
} else { ASSIGN(line, buf); } // box did not exist: make sure it pops up with char in it
- ChatProc();
+ ChatPopUp();
} else PopUpMoveDialog(*buf);
}