aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-handler-sendto.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-attachment-handler-sendto.c')
-rw-r--r--widgets/misc/e-attachment-handler-sendto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment-handler-sendto.c b/widgets/misc/e-attachment-handler-sendto.c
index 7cf651d98f..dda351bc8d 100644
--- a/widgets/misc/e-attachment-handler-sendto.c
+++ b/widgets/misc/e-attachment-handler-sendto.c
@@ -78,7 +78,7 @@ sendto_save_finished_cb (EAttachment *attachment,
error:
parent = gtk_widget_get_toplevel (GTK_WIDGET (view));
- parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL;
+ parent = gtk_widget_is_toplevel (parent) ? parent : NULL;
dialog = gtk_message_dialog_new_with_markup (
parent, GTK_DIALOG_DESTROY_WITH_PARENT,