From bb5b3ae5b590b35a9b01f6c83029c79be9726c3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Wed, 2 Dec 2009 18:17:46 +0100 Subject: [PATCH] Set the proper parent for message details dialog --- src/modest-ui-actions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 8ecf384..150b532 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -4094,6 +4094,7 @@ headers_action_show_details (TnyHeader *header, { gboolean async_retrieval; + GtkWindow *toplevel; TnyMsg *msg = NULL; if (MODEST_IS_MSG_VIEW_WINDOW (window)) { @@ -4102,7 +4103,8 @@ headers_action_show_details (TnyHeader *header, } else { async_retrieval = FALSE; } - modest_platform_run_header_details_dialog (GTK_WINDOW (window), header, async_retrieval, msg); + toplevel = (GtkWindow *) gtk_widget_get_toplevel ((GtkWidget *) window); + modest_platform_run_header_details_dialog (toplevel, header, async_retrieval, msg); if (msg) g_object_unref (msg); } -- 1.7.9.5