diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mark-all-read/mark-all-read.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c index f22b2276f0..e152ec1c9f 100644 --- a/plugins/mark-all-read/mark-all-read.c +++ b/plugins/mark-all-read/mark-all-read.c @@ -91,7 +91,14 @@ prompt_user (gboolean has_subfolders) gint response; if (!has_subfolders) { - return em_utils_prompt_user (e_shell_get_active_window (e_shell_get_default ()), NULL, "mail:ask-mark-all-read", NULL) ? + EShell *shell; + GtkWindow *parent; + + shell = e_shell_get_default (); + parent = e_shell_get_active_window (shell); + + return em_utils_prompt_user ( + parent, NULL, "mail:ask-mark-all-read", NULL) ? GTK_RESPONSE_NO : GTK_RESPONSE_CANCEL; } |