* Fixes NB#88028, set the details dialog to close with his parent
authorSergio Villar Senin <svillar@igalia.com>
Tue, 2 Sep 2008 16:22:12 +0000 (16:22 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 2 Sep 2008 16:22:12 +0000 (16:22 +0000)
pmo-trunk-r5435

src/modest-ui-actions.c

index 2dca9de..93a69db 100644 (file)
@@ -4230,9 +4230,10 @@ headers_action_show_details (TnyHeader *header,
        /* Run dialog */
        modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (dialog));
        gtk_widget_show_all (dialog);
-       gtk_dialog_run (GTK_DIALOG (dialog));
 
-       gtk_widget_destroy (dialog);
+       g_signal_connect_swapped (dialog, "response", 
+                                 G_CALLBACK (gtk_widget_destroy),
+                                 dialog);
 }
 
 /*