[evince/wip/gpoo/gtk4-rebase-port: 74/89] ev-view: enable opening attachment




commit 0744d1cb7732036d80144e493142a555a3a525da
Author: Qiu Wenbo <qiuwenbo kylinos com cn>
Date:   Fri Aug 27 15:52:54 2021 +0800

    ev-view: enable opening attachment
    
    Signed-off-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 libview/ev-view.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index ca93717e4..b9d76ed98 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3589,13 +3589,10 @@ ev_view_handle_annotation (EvView       *view,
                if (attachment) {
                        GError *error = NULL;
 
-#if 0
-
                        ev_attachment_open (attachment,
-                                           gtk_widget_get_screen (GTK_WIDGET (view)),
+                                           gtk_widget_get_display (GTK_WIDGET (view)),
                                            timestamp,
                                            &error);
-#endif
 
                        if (error) {
                                g_warning ("%s", error->message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]