[evince/gnome-2-28] shell: Actually use the launch context
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince/gnome-2-28] shell: Actually use the launch context
- Date: Mon, 26 Oct 2009 12:10:32 +0000 (UTC)
commit d40a8a80f658138ec48683a4c951127a418170e7
Author: Christian Persch <chpe gnome org>
Date: Fri Aug 14 22:00:23 2009 +0200
shell: Actually use the launch context
shell/ev-window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e0e27c3..9e24e05 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5429,6 +5429,7 @@ launch_action (EvWindow *window, EvLinkAction *action)
g_object_unref (app_info);
g_object_unref (file);
+ /* FIXMEchpe: unref launch context? */
/* According to the PDF spec filename can be an executable. I'm not sure
allowing to launch executables is a good idea though. -- marco */
@@ -5454,10 +5455,10 @@ launch_external_uri (EvWindow *window, EvLinkAction *action)
/* Not a valid uri, assuming it's http */
http = g_strdup_printf ("http://%s";, uri);
- ret = g_app_info_launch_default_for_uri (http, NULL, &error);
+ ret = g_app_info_launch_default_for_uri (http, context, &error);
g_free (http);
} else {
- ret = g_app_info_launch_default_for_uri (uri, NULL, &error);
+ ret = g_app_info_launch_default_for_uri (uri, context, &error);
}
if (ret == FALSE) {
@@ -5465,6 +5466,8 @@ launch_external_uri (EvWindow *window, EvLinkAction *action)
"%s", _("Unable to open external link"));
g_error_free (error);
}
+
+ /* FIXMEchpe: unref launch context? */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]