[evince] [libview] Do not jump to link dest when clicking with GDK_CONTROL_MASK
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [libview] Do not jump to link dest when clicking with GDK_CONTROL_MASK
- Date: Sat, 14 Aug 2010 12:29:32 +0000 (UTC)
commit d0c512255fc2823acd049b97565bffbbb7e0b393
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat Aug 14 14:28:08 2010 +0200
[libview] Do not jump to link dest when clicking with GDK_CONTROL_MASK
Fixes bug #626407.
libview/ev-view.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 471c66c..4686560 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3996,7 +3996,12 @@ ev_view_button_release_event (GtkWidget *widget,
view->pressed_button = -1;
return TRUE;
- }
+ }
+
+ if (view->pressed_button == 1 && event->state & GDK_CONTROL_MASK) {
+ view->pressed_button = -1;
+ return TRUE;
+ }
if (view->drag_info.in_drag) {
view->drag_info.release_timeout_id =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]