aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-07-24 10:23:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-07-24 10:23:14 +0800
commit752ea282fbdf33382d34c1b37f5b3ce56d9e5764 (patch)
tree1187532aabd852cc8bd882e23f9f3d03cc66afbb
parent46b5e76947be832fbce77428474bbd9f0691df49 (diff)
downloadgsoc2013-evolution-752ea282fbdf33382d34c1b37f5b3ce56d9e5764.tar.gz
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.c12
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);
}