evince r3178 - in trunk: . shell
- From: carlosgc svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3178 - in trunk: . shell
- Date: Sat, 13 Sep 2008 11:16:56 +0000 (UTC)
Author: carlosgc
Date: Sat Sep 13 11:16:56 2008
New Revision: 3178
URL: http://svn.gnome.org/viewvc/evince?rev=3178&view=rev
Log:
2008-09-13 Carlos Garcia Campos <carlosgc gnome org>
* shell/ev-window.c: (launch_external_uri):
Use GdkAppLaunchContext when available to launch external uris.
Modified:
trunk/ChangeLog
trunk/shell/ev-window.c
Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c (original)
+++ trunk/shell/ev-window.c Sat Sep 13 11:16:56 2008
@@ -4884,9 +4884,18 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]