~callback:(fun a -> GMain.Main.quit ();callback a));
ignore(m#connect#close
~callback:(fun _ -> GMain.Main.quit ();raise PopupClosed));
- GtkThread.main ()
+ GtkThread.main ();
+ m#destroy ()
let ask_confirmation ~title ~message ?parent () =
let rc = ref false in
let callback _ = () in
let buttons = GWindow.Buttons.ok in
- try
+( try
popup_message ~title ~message ~message_type:`ERROR ~callback ~buttons
?parent ()
with
| PopupClosed -> ()
-
+);prerr_endline "AAAAAAA"
+
+
let ask_text ~(gui:#gui) ?(title = "") ?(msg = "") ?(multiline = false) () =
let dialog = gui#newEmptyDialog () in
dialog#emptyDialog#set_title title;