From 62b6e52c8867e1aeaeed1cbfd344c6188865efde Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 25 Jul 2007 14:03:23 +0000 Subject: Give priority to forms over text to set the cursor. 2007-07-25 Carlos Garcia Campos * 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 --- (limited to 'shell/ev-view.c') 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) -- cgit v0.9.1