aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-01 00:35:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-01 00:35:32 +0800
commit30d3ec19b94270cc91215130135005bb1a37ef0d (patch)
treeffc277e7c158fc0486e00c6249978b7b11a01510
parent2ce2f8c27698e6122c6a2687f710a18bb4ca602b (diff)
downloadgsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.tar
gsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.tar.gz
gsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.tar.bz2
gsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.tar.lz
gsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.tar.xz
gsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.tar.zst
gsoc2013-evolution-30d3ec19b94270cc91215130135005bb1a37ef0d.zip
Avoid gdk_app_launch_context_new().
Use gdk_display_get_app_launch_context() instead.
-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;