[gtk+/touch-text-selection] Minor fix for handle updates
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touch-text-selection] Minor fix for handle updates
- Date: Sun, 2 Sep 2012 20:06:08 +0000 (UTC)
commit eecd22849367ab78c6f4beb2fd6dec9f3d266e3f
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 2 15:55:46 2012 -0400
Minor fix for handle updates
Use a position that matches the mode, when updating handles.
gtk/gtkentry.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index a745a62..0d94a96 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]