27 lines
965 B
Diff
27 lines
965 B
Diff
From ebab67ba6a79da19cc8ec3c704710e9fd3613619 Mon Sep 17 00:00:00 2001
|
|
From: Marek Kasik <mkasik@redhat.com>
|
|
Date: Mon, 24 Mar 2025 13:54:33 +0100
|
|
Subject: ev-window: Fix opening of linked PDFs
|
|
|
|
Allow also button-press event for opening of linked PDFs.
|
|
|
|
Improves commit e5594f96
|
|
|
|
Reproducer file in MR !724
|
|
|
|
diff --git a/shell/ev-window.c b/shell/ev-window.c
|
|
index 947b2e7e..91037e3d 100644
|
|
--- a/shell/ev-window.c
|
|
+++ b/shell/ev-window.c
|
|
@@ -6496,7 +6496,9 @@ launch_action (EvWindow *ev_window, EvLinkAction *action)
|
|
uri = get_uri (filename, ev_window);
|
|
view = EV_VIEW (priv->view);
|
|
|
|
- if (!file_is_pdf (uri) || !current_event_is_type (view, GDK_BUTTON_RELEASE)) {
|
|
+ if (!file_is_pdf (uri) ||
|
|
+ !(current_event_is_type (view, GDK_BUTTON_PRESS) ||
|
|
+ current_event_is_type (view, GDK_BUTTON_RELEASE))) {
|
|
ev_window_warning_message (ev_window,
|
|
_("Security alert: this document has been prevented from opening the file “%s”"),
|
|
filename);
|