X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-window.c;h=fc8cc8dc2ba3838002b529af113903e9fbc0517a;hb=0be3be0d4166be324d628802772e99cacd336f11;hp=5c345e3941529975786398086ab22f6c749e9a19;hpb=d1ae25cdb0f86c2fc8ce406fd3b53f91a5d002ab;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index 5c345e39..fc8cc8dc 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4884,9 +4884,18 @@ static void launch_external_uri (EvWindow *window, EvLinkAction *action) { const gchar *uri = ev_link_action_get_uri (action); + GAppLaunchContext *context = NULL; GError *error = NULL; gboolean ret; +#if GTK_CHECK_VERSION (2, 14, 0) + context = G_APP_LAUNCH_CONTEXT (gdk_app_launch_context_new ()); + gdk_app_launch_context_set_screen (GDK_APP_LAUNCH_CONTEXT (context), + gtk_window_get_screen (GTK_WINDOW (window))); + gdk_app_launch_context_set_timestamp (GDK_APP_LAUNCH_CONTEXT (context), + GDK_CURRENT_TIME); +#endif + if (!g_strstr_len (uri, strlen (uri), "://")) { gchar *http;