From: Carlos Garcia Campos Date: Wed, 25 Jul 2007 14:03:23 +0000 (+0000) Subject: Give priority to forms over text to set the cursor. X-Git-Tag: EVINCE_0_9_3~23 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=62b6e52c8867e1aeaeed1cbfd344c6188865efde;p=evince.git 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 --- diff --git a/ChangeLog b/ChangeLog index ab188744..4c32b376 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. + 2007-07-24 Carlos Garcia Campos * shell/ev-view-private.h: diff --git a/shell/ev-view.c b/shell/ev-view.c index a6d198f3..6a17aa85 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)