diff options
author | carlosgc <carlosgc@e12069bd-dc25-0410-a696-d39a8afcd844> | 2008-09-05 16:52:36 (GMT) |
---|---|---|
committer | carlosgc <carlosgc@e12069bd-dc25-0410-a696-d39a8afcd844> | 2008-09-05 16:52:36 (GMT) |
commit | d73ebcaf6ffcbed099c03256bafffaef188502a1 (patch) | |
tree | 54cd364de67e778b7b568f77a8705f1283ac940a /shell | |
parent | f04aaee36cafe60edad32c1b15e953279847d26f (diff) |
2008-09-05 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_motion_notify_event):
Make sure the cursor is correctly restored after showing the right
click menu.
git-svn-id: svn+ssh://svn.gnome.org/svn/evince/trunk@3154 e12069bd-dc25-0410-a696-d39a8afcd844
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-view.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c index 750ee5e..da89580 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -3038,15 +3038,20 @@ ev_view_motion_notify_event (GtkWidget *widget, } } - /* For the Evince 0.4.x release, we limit selection to un-rotated - * documents only. - */ - if (view->pressed_button == 1 && view->rotation == 0) { + switch (view->pressed_button) { + case 1: + /* For the Evince 0.4.x release, we limit selection to un-rotated + * documents only. + */ + if (view->rotation != 0) + return FALSE; /* Schedule timeout to scroll during selection and additionally * scroll once to allow arbitrary speed. */ if (!view->selection_scroll_id) - view->selection_scroll_id = g_timeout_add (SCROLL_TIME, (GSourceFunc)selection_scroll_timeout_cb, view); + view->selection_scroll_id = g_timeout_add (SCROLL_TIME, + (GSourceFunc)selection_scroll_timeout_cb, + view); else selection_scroll_timeout_cb (view); @@ -3063,7 +3068,7 @@ ev_view_motion_notify_event (GtkWidget *widget, view->selection_update_id = g_idle_add ((GSourceFunc)selection_update_idle_cb, view); return TRUE; - } else if (view->pressed_button == 2) { + case 2: if (!view->drag_info.in_drag) { gboolean start; int i; @@ -3113,10 +3118,11 @@ ev_view_motion_notify_event (GtkWidget *widget, return TRUE; } - } else if (view->pressed_button <= 0) { + + break; + default: ev_view_handle_cursor_over_xy (view, x, y); - return TRUE; - } + } return FALSE; } |