Destroy the dialog manually instead, it was still crashing now.
authorlace <>
Wed, 25 Jan 2006 19:48:28 +0000 (19:48 +0000)
committerlace <>
Wed, 25 Jan 2006 19:48:28 +0000 (19:48 +0000)
src/install/acquire/ui-gnome.c

index e6ffc43..4611e99 100644 (file)
@@ -615,17 +615,17 @@ gint reply;
                        (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);
+       gnome_dialog_set_close(GNOME_DIALOG(dialog),FALSE);
        /* 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 due to: gnome_dialog_set_close(,TRUE); */
        if (reply==0)   /* 0 for 'OK', 1 for 'Cancel', left -1 for dialog close. */
                exit(EXIT_SUCCESS);
+       /* This does not work (at least not in the static build): gnome_dialog_set_close(,TRUE); */
+        * in: libgnomeui-2.10.0-1
+        */
+       gtk_widget_destroy(dialog);
 }
 
 static void button_stock_set_label(GtkWidget *widget,const gchar *label_text_new /* callback_data */)
@@ -753,10 +753,13 @@ GtkWidget *dialog;
        /* 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);
+       gnome_dialog_set_close(GNOME_DIALOG(dialog),FALSE);
        g_signal_connect((gpointer)dialog,"close",G_CALLBACK(gtk_main_quit),NULL);
        gtk_main();
-       /* 'dialog' gets destroyed automatically due to: gnome_dialog_set_close(,TRUE); */
+       /* This does not work (at least not in the static build): gnome_dialog_set_close(,TRUE); */
+        * in: libgnomeui-2.10.0-1
+        */
+       gtk_widget_destroy(dialog);
 
        gdk_flush();
        gdk_threads_leave();