]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
Use GdkAppLaunchContext when available to open attachments.
[evince.git] / shell / ev-window.c
index 03f98cbbb93c1bf28d8bb5512a16d9fbf657e732..ed64145dcb807af3087e63028d9236390aeb196f 100644 (file)
@@ -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),