[Xfce4-commits] <midori:master> Closing diagnostic dialogue should cancel startup

Christian Dywan noreply at xfce.org
Fri Apr 29 03:46:01 CEST 2011


Updating branch refs/heads/master
         to eeed4a99f5df9d9107e332886c5678fa1cfd5872 (commit)
       from ed1386a1dad147b83d6e93e706d84034f5cd90a6 (commit)

commit eeed4a99f5df9d9107e332886c5678fa1cfd5872
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Apr 29 01:52:14 2011 +0200

    Closing diagnostic dialogue should cancel startup

 midori/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 41683a1..e95fca2 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -2547,8 +2547,10 @@ main (int    argc,
     if (diagnostic_dialog)
     {
         GtkWidget* dialog = midori_create_diagnostic_dialog (settings, _session);
-        gtk_dialog_run (GTK_DIALOG (dialog));
+        gint response = gtk_dialog_run (GTK_DIALOG (dialog));
         gtk_widget_destroy (dialog);
+        if (response == GTK_RESPONSE_DELETE_EVENT)
+            return 0;
     }
     midori_startup_timer ("Signal setup: \t%f");
 



More information about the Xfce4-commits mailing list