]> www.fi.muni.cz Git - evince.git/commitdiff
Give priority to forms over text to set the cursor.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 25 Jul 2007 14:03:23 +0000 (14:03 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Wed, 25 Jul 2007 14:03:23 +0000 (14:03 +0000)
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

ChangeLog
shell/ev-view.c

index ab1887448c57c04e25fc510207549b7905941687..4c32b37630414110a51393d885a52848968f1f5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+       
 2007-07-24  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-view-private.h:
index a6d198f311ac02ffb86d8ba6338eceb872251d79..6a17aa8591f2370ce6d59e4edec459c06bfd1d5d 100644 (file)
@@ -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)