[Xfce4-commits] <midori:master> Use gdk_display_get_app_launch_context if available
Christian Dywan
noreply at xfce.org
Mon Nov 28 20:44:01 CET 2011
Updating branch refs/heads/master
to 47445f8c9494d027f2bc6e6bd76a200552d560dd (commit)
from da39524c6ddd0c9a1e926fadd41cb17d0c03bd83 (commit)
commit 47445f8c9494d027f2bc6e6bd76a200552d560dd
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Nov 28 20:26:41 2011 +0100
Use gdk_display_get_app_launch_context if available
midori/sokoke.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/midori/sokoke.c b/midori/sokoke.c
index bb6616d..7daa770 100644
--- a/midori/sokoke.c
+++ b/midori/sokoke.c
@@ -194,7 +194,11 @@ sokoke_show_uri_with_mime_type (GdkScreen* screen,
g_free (content_type);
files = g_list_prepend (NULL, file);
#if GTK_CHECK_VERSION (2, 14, 0)
+ #if GTK_CHECK_VERSION (3, 0, 0)
+ context = gdk_display_get_app_launch_context (gdk_screen_get_display (screen));
+ #else
context = gdk_app_launch_context_new ();
+ #endif
gdk_app_launch_context_set_screen (context, screen);
gdk_app_launch_context_set_timestamp (context, timestamp);
#else
More information about the Xfce4-commits
mailing list