]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Do not jump to link dest when clicking with GDK_CONTROL_MASK
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 14 Aug 2010 12:28:08 +0000 (14:28 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 14 Aug 2010 12:28:08 +0000 (14:28 +0200)
Fixes bug #626407.

libview/ev-view.c

index 471c66ca81aeb7c178e286020469dec8b9292896..4686560b6ff705ab21684fd856593d71f2ca7408 100644 (file)
@@ -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 =