aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-attachment.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index cd9385a76b..4ebaef3747 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -2108,12 +2108,14 @@ attachment_open_file (GFile *file,
{
GdkAppLaunchContext *context;
GSimpleAsyncResult *simple;
+ GdkDisplay *display;
gboolean success;
GError *error = NULL;
simple = open_context->simple;
- context = gdk_app_launch_context_new ();
+ display = gdk_display_get_default ();
+ context = gdk_display_get_app_launch_context (display);
if (open_context->app_info != NULL) {
GList *file_list;