#include <libgnomeui/gnome-druid-page-edge.h>
#include "final.h"
#include <libgnomevfs/gnome-vfs-utils.h>
+#include <libgnomeui/gnome-dialog.h>
#include <captive/macros.h>
#include <captive/captivemodid.h>
(GnomeReplyCallback)on_DruidButtonOK_clicked_dialog_callback,
&reply); /* data */
g_signal_connect((gpointer)dialog,"close",G_CALLBACK(gtk_main_quit),NULL);
+ /* It looks as if eariler libgnomeui had default TRUE
+ * but since libgnomeui-2.10.0 it is FALSE, weird.
+ */
+ gnome_dialog_set_close(GNOME_DIALOG(dialog),TRUE);
/* Never call gtk_main() from other thread than the initial one.
* We would have to switch GTK+ context (g_main_context()?).
*/
gtk_main();
- /* 'dialog' gets destroyed automatically */
+ /* 'dialog' gets destroyed automatically due to: gnome_dialog_set_close(,TRUE); */
if (reply==0) /* 0 for 'OK', 1 for 'Cancel', left -1 for dialog close. */
exit(EXIT_SUCCESS);
}
dialog=gnome_app_message(App,message);
gtk_window_set_modal(GTK_WINDOW(dialog),TRUE);
+ /* It looks as if eariler libgnomeui had default TRUE
+ * but since libgnomeui-2.10.0 it is FALSE, weird.
+ */
+ gnome_dialog_set_close(GNOME_DIALOG(dialog),TRUE);
g_signal_connect((gpointer)dialog,"close",G_CALLBACK(gtk_main_quit),NULL);
gtk_main();
- /* 'dialog' gets destroyed automatically */
+ /* 'dialog' gets destroyed automatically due to: gnome_dialog_set_close(,TRUE); */
gdk_flush();
gdk_threads_leave();