Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorcarlosgc <carlosgc@e12069bd-dc25-0410-a696-d39a8afcd844>2008-09-13 11:16:56 (GMT)
committer carlosgc <carlosgc@e12069bd-dc25-0410-a696-d39a8afcd844>2008-09-13 11:16:56 (GMT)
commitcbe5506c54c97e22a69ca11da839c511af7b2ef3 (patch)
tree1a61d6b85616cf7752a74cd85fbcd611c0f8660c /shell
parent5e701849c3f82c17d58a5ff721c4dda97388729e (diff)
2008-09-13 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (launch_external_uri): Use GdkAppLaunchContext when available to launch external uris. git-svn-id: svn+ssh://svn.gnome.org/svn/evince/trunk@3178 e12069bd-dc25-0410-a696-d39a8afcd844
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 5c345e3..fc8cc8d 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;