diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-24 10:23:14 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-24 10:23:14 +0800 |
commit | 752ea282fbdf33382d34c1b37f5b3ce56d9e5764 (patch) | |
tree | 1187532aabd852cc8bd882e23f9f3d03cc66afbb | |
parent | 46b5e76947be832fbce77428474bbd9f0691df49 (diff) | |
download | gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar.gz gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar.bz2 gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar.lz gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar.xz gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar.zst gsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.zip |
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
-rw-r--r-- | shell/main.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/shell/main.c b/shell/main.c index ca27b693b8..661c3784b8 100644 --- a/shell/main.c +++ b/shell/main.c @@ -72,6 +72,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) { GtkWidget *label, *warning_dialog; @@ -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); } |