]> www.fi.muni.cz Git - evince.git/commitdiff
Restore cursor to normal after a drag operation. Fixes bug #501603.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 5 Dec 2007 18:51:08 +0000 (18:51 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Wed, 5 Dec 2007 18:51:08 +0000 (18:51 +0000)
2007-12-05  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-view.c: (ev_view_handle_cursor_over_xy):
Restore cursor to normal after a drag operation. Fixes bug
#501603.

svn path=/trunk/; revision=2763

ChangeLog
shell/ev-view.c

index 99a09917de07c32cb1ad91c7f708b9ed7e6b3f29..016a659f62b71c6bbed60b5bcd903ecaf7f859a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-05  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-view.c: (ev_view_handle_cursor_over_xy):
+
+       Restore cursor to normal after a drag operation. Fixes bug
+       #501603.
+       
 2007-12-04  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * NEWS:
index ed55a110b78c8a8dd6c6ceee11dee081b5a094b9..b1ec0569c0deafc133db1e5c1672fd85589cffa8 100644 (file)
@@ -1537,7 +1537,8 @@ ev_view_handle_cursor_over_xy (EvView *view, gint x, gint y)
        } else if ((field = ev_view_get_form_field_at_location (view, x, y))) {
                if (field->is_read_only) {
                        if (view->cursor == EV_VIEW_CURSOR_LINK ||
-                           view->cursor == EV_VIEW_CURSOR_IBEAM)
+                           view->cursor == EV_VIEW_CURSOR_IBEAM ||
+                           view->cursor == EV_VIEW_CURSOR_DRAG)
                                ev_view_set_cursor (view, EV_VIEW_CURSOR_NORMAL);
                } else if (EV_IS_FORM_FIELD_TEXT (field)) {
                        ev_view_set_cursor (view, EV_VIEW_CURSOR_IBEAM);
@@ -1548,7 +1549,8 @@ ev_view_handle_cursor_over_xy (EvView *view, gint x, gint y)
                ev_view_set_cursor (view, EV_VIEW_CURSOR_IBEAM);
        } else {
                if (view->cursor == EV_VIEW_CURSOR_LINK ||
-                   view->cursor == EV_VIEW_CURSOR_IBEAM)
+                   view->cursor == EV_VIEW_CURSOR_IBEAM ||
+                   view->cursor == EV_VIEW_CURSOR_DRAG)
                        ev_view_set_cursor (view, EV_VIEW_CURSOR_NORMAL);
        }
 }