[evolution] Avoid gdk_app_launch_context_new().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Avoid gdk_app_launch_context_new().
- Date: Fri, 30 Nov 2012 16:36:01 +0000 (UTC)
commit 30d3ec19b94270cc91215130135005bb1a37ef0d
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Nov 30 11:35:32 2012 -0500
Avoid gdk_app_launch_context_new().
Use gdk_display_get_app_launch_context() instead.
widgets/misc/e-attachment.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index cd9385a..4ebaef3 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]