Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-16 08:34:13 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-16 08:34:13 (GMT)
commit4f1722b0523879cd73ee936d483a735e163a6b54 (patch)
tree49da280489ad7a3ad39de406de5f4e4cd36b7440 /shell/ev-view.c
parentbd5740c79b6f56d26d6b8f105e8bd63b3961bd3c (diff)
Autoraise toolbar on GoToPage action and fix keyboard accelerators in sidebar
thumbnailer page
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 3e31d29..6ae9ac6 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -1322,6 +1322,9 @@ ev_view_motion_notify_event (GtkWidget *widget,
{
EvView *view = EV_VIEW (widget);
+ if (!view->document)
+ return FALSE;
+
if (view->pressed_button == 1) {
GdkRectangle selection;
@@ -1371,7 +1374,7 @@ ev_view_motion_notify_event (GtkWidget *widget,
return TRUE;
}
- } else if (view->pressed_button <= 0 && view->document) {
+ } else if (view->pressed_button <= 0) {
EvLink *link;
link = get_link_at_location (view, event->x + view->scroll_x, event->y + view->scroll_y);