projects
/
midori
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da39524
)
Use gdk_display_get_app_launch_context if available
author
Christian Dywan
<christian@twotoasts.de>
Mon, 28 Nov 2011 19:26:41 +0000
(20:26 +0100)
committer
Christian Dywan
<christian@twotoasts.de>
Mon, 28 Nov 2011 19:42:08 +0000
(20:42 +0100)
midori/sokoke.c
patch
|
blob
|
history
diff --git
a/midori/sokoke.c
b/midori/sokoke.c
index bb6616dc5156179d245c50c8b51b0bb065c73bca..7daa7702f9062f6055b0f6b24e523596e8bd86e9 100644
(file)
--- 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