From: short <> Date: Sat, 9 Jul 2005 03:49:40 +0000 (+0000) Subject: Do not set it modal as ... who knows. At least in the fully static build during X-Git-Tag: udpgate-1_0_2~2 X-Git-Url: https://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=4e21ae021fecaa14f68c61324d66a374f0f3038f 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(). --- 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)