Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-09-05 09:47:48 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-09-05 09:47:48 (GMT)
commit3e53caa56a48a1b854588e9a53c863ef7071f58e (patch)
treefd3edf112ccdfd351a1ac325d93574ebaf050c46 /shell/ev-window.c
parent94cb89c0c9cbefaadaa067062fe7ea461f9a8d64 (diff)
Use GdkAppLaunchContext when available to open attachments.
2008-09-05 Carlos Garcia Campos <carlosgc@gnome.org> * libdocument/ev-attachment.[ch]: (ev_attachment_launch_app), (ev_attachment_open): * shell/ev-sidebar-attachments.c: (ev_sidebar_attachments_button_press): * shell/ev-window.c: (ev_attachment_popup_cmd_open_attachment): Use GdkAppLaunchContext when available to open attachments. svn path=/trunk/; revision=3152
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 03f98cb..ed64145 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5170,18 +5170,21 @@ ev_view_popup_cmd_copy_image (GtkAction *action, EvWindow *window)
static void
ev_attachment_popup_cmd_open_attachment (GtkAction *action, EvWindow *window)
{
- GList *l;
+ GList *l;
+ GdkScreen *screen;
if (!window->priv->attach_list)
return;
+ screen = gtk_window_get_screen (GTK_WINDOW (window));
+
for (l = window->priv->attach_list; l && l->data; l = g_list_next (l)) {
EvAttachment *attachment;
GError *error = NULL;
attachment = (EvAttachment *) l->data;
- ev_attachment_open (attachment, &error);
+ ev_attachment_open (attachment, screen, GDK_CURRENT_TIME, &error);
if (error) {
ev_window_error_message (GTK_WINDOW (window),