diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2006-09-07 11:44:13 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2006-09-07 11:44:13 (GMT) |
commit | 7a0769c469f53e96b2d9f9be9c16bb6cfabc5668 (patch) | |
tree | 4ab31cfbfd6890cff6342118fffa212e4f7c0612 | |
parent | 0765c6d79c1a3d6ad8797a88c47f430ecd824fb9 (diff) |
Don't open links with middle mouse button. Fixes bug #353649
2006-09-07 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_button_release_event):
Don't open links with middle mouse button. Fixes bug #353649
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | shell/ev-view.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-09-07 Carlos Garcia Campos <carlosgc@gnome.org> + + * shell/ev-view.c: (ev_view_button_release_event): + + Don't open links with middle mouse button. Fixes bug #353649 + 2006-09-04 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * NEWS: diff --git a/shell/ev-view.c b/shell/ev-view.c index 757194d..b27ab2c 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -2033,7 +2033,7 @@ ev_view_button_release_event (GtkWidget *widget, ev_view_set_cursor (view, EV_VIEW_CURSOR_NORMAL); } - if (view->document) { + if (view->document && view->pressed_button == 1) { link = ev_view_get_link_at_location (view, event->x, event->y); } else { link = NULL; |