From 4e21ae021fecaa14f68c61324d66a374f0f3038f Mon Sep 17 00:00:00 2001 From: short <> Date: Sat, 9 Jul 2005 03:49:40 +0000 Subject: [PATCH] Do not set it modal as ... who knows. At least in the fully static build during on_AutostartCheckButton_toggled() we get reported the messages twice and application immediately gtk_main_quit() even the second (toplevel) gtk_main(). --- src/ui-gnome.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui-gnome.c b/src/ui-gnome.c index 38bb755..75182f9 100644 --- a/src/ui-gnome.c +++ b/src/ui-gnome.c @@ -223,10 +223,17 @@ GtkWidget *dialog; else dialog=gnome_app_message(App,message); + /* Do not set it modal as ... who knows. At least in the fully static + * build during on_AutostartCheckButton_toggled() we get reported + * the messages twice and application immediately gtk_main_quit() + * even the second (toplevel) gtk_main(). + */ +#if 0 gtk_window_set_modal(GTK_WINDOW(dialog),TRUE); g_signal_connect((gpointer)dialog,"close",G_CALLBACK(gtk_main_quit),NULL); gtk_main(); /* 'dialog' gets destroyed automatically */ +#endif } static void ui_gnome_interactive(void) -- 1.8.3.1