From 752ea282fbdf33382d34c1b37f5b3ce56d9e5764 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 24 Jul 2001 02:23:14 +0000 Subject: Only show the warning dialog instead of using `gnome_dialog_run()' so it * main.c (development_warning): Only show the warning dialog instead of using `gnome_dialog_run()' so it is not modal. Modal would be nice, but unfortunately it works bad with Bonobo. Plus Sawfish doesn't like to keep the modal dialog on top, so it gets very confusing for users. svn path=/trunk/; revision=11334 --- shell/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/main.c b/shell/main.c index ca27b693b8..661c3784b8 100644 --- a/shell/main.c +++ b/shell/main.c @@ -71,6 +71,14 @@ destroy_cb (GtkObject *object, gpointer data) } +static void +warning_dialog_clicked_callback (GnomeDialog *dialog, + int button_number, + void *data) +{ + gtk_widget_destroy (GTK_WIDGET (dialog)); +} + static void development_warning (void) { @@ -112,9 +120,9 @@ development_warning (void) gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox), label, TRUE, TRUE, 0); - gnome_dialog_close_hides (GNOME_DIALOG (warning_dialog), FALSE); - gtk_widget_show (warning_dialog); + gtk_signal_connect (GTK_OBJECT (warning_dialog), "clicked", + GTK_SIGNAL_FUNC (warning_dialog_clicked_callback), NULL); } -- cgit