From eecd22849367ab78c6f4beb2fd6dec9f3d266e3f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 2 Sep 2012 15:55:46 -0400 Subject: [PATCH] Minor fix for handle updates Use a position that matches the mode, when updating handles. --- gtk/gtkentry.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index a745a62383..0d94a9670f 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -3951,13 +3951,12 @@ _gtk_entry_update_handles (GtkEntry *entry, /* Update start selection bound */ _gtk_entry_move_handle (entry, GTK_TEXT_HANDLE_POSITION_SELECTION_START, MIN (cursor, bound), 0, height); + _gtk_entry_move_handle (entry, GTK_TEXT_HANDLE_POSITION_SELECTION_END, + MAX (cursor, bound), 0, height); } else - bound = cursor; - - /* Update end bound/cursor */ - _gtk_entry_move_handle (entry, GTK_TEXT_HANDLE_POSITION_SELECTION_END, - MAX (cursor, bound), 0, height); + _gtk_entry_move_handle (entry, GTK_TEXT_HANDLE_POSITION_CURSOR, + cursor, 0, height); } static gint