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:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-07-25 14:03:23 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-07-25 14:03:23 (GMT)
commit62b6e52c8867e1aeaeed1cbfd344c6188865efde (patch)
treee73f668822b1959831555908f52e59355bc72c9c /shell/ev-view.c
parent7172457c057ce9ec6011866e055f9c5ce6e284f2 (diff)
Give priority to forms over text to set the cursor.
2007-07-25 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-view.c: (ev_view_handle_cursor_over_xy): Give priority to forms over text to set the cursor. svn path=/trunk/; revision=2578
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index a6d198f..6a17aa8 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -1519,8 +1519,6 @@ ev_view_handle_cursor_over_xy (EvView *view, gint x, gint y)
g_free (msg);
ev_view_set_cursor (view, EV_VIEW_CURSOR_LINK);
- } else if (location_in_text (view, x + view->scroll_x, y + view->scroll_y)) {
- ev_view_set_cursor (view, EV_VIEW_CURSOR_IBEAM);
} 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 ||
@@ -1531,6 +1529,8 @@ ev_view_handle_cursor_over_xy (EvView *view, gint x, gint y)
} else {
ev_view_set_cursor (view, EV_VIEW_CURSOR_LINK);
}
+ } else if (location_in_text (view, x + view->scroll_x, y + view->scroll_y)) {
+ ev_view_set_cursor (view, EV_VIEW_CURSOR_IBEAM);
} else {
if (view->cursor == EV_VIEW_CURSOR_LINK ||
view->cursor == EV_VIEW_CURSOR_IBEAM)