Make generic memo-event handler, and connect history callback
[xboard.git] / dialogs.h
index 09d66a5..3032dcc 100644 (file)
--- a/dialogs.h
+++ b/dialogs.h
@@ -95,8 +95,6 @@
 #define W_MENUB 26
 #define W_DROP  27  // drop (popup) menu
  
-
-
 typedef enum {  // identifier of dialogs done by GenericPopup
 TransientDlg=0, // transient: grabs mouse events and is destroyed at pop-down (so other dialog can use this ID next time)
 CommentDlg, TagsDlg, TextMenuDlg, InputBoxDlg, ChatDlg, DummyDlg, HistoryDlg, // persistent: no grab and reused
@@ -112,6 +110,7 @@ BrowserDlg,
 NrOfDialogs     // dummy for total
 } DialogClass;
 
+typedef int MemoCallback (Option *opt, int n, int x, int y, char *text, int index);
 typedef Option *PointerCallback(int n, int x, int y);
 typedef void ListBoxCallback(int n, int selected);
 typedef void ButtonCallback(int n);