From 8147f12ecaa726ce52af50946c70fd54b608c809 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 14 Oct 2015 17:27:53 +0200 Subject: texthandle: Ensure handles are invalidated on mode changes Otherwise the "cursor" handle stays with "cursor" appearance instead of "selection end" when a text selection is started. --- gtk/gtktexthandle.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk/gtktexthandle.c') diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c index ebc5c88fc1..f4650e157d 100644 --- a/gtk/gtktexthandle.c +++ b/gtk/gtktexthandle.c @@ -772,6 +772,11 @@ _gtk_text_handle_set_mode (GtkTextHandle *handle, _gtk_text_handle_update (handle, GTK_TEXT_HANDLE_POSITION_SELECTION_START); _gtk_text_handle_update (handle, GTK_TEXT_HANDLE_POSITION_SELECTION_END); + + if (start->widget && start->mode_visible) + gtk_widget_queue_draw (start->widget); + if (end->widget && end->mode_visible) + gtk_widget_queue_draw (end->widget); } GtkTextHandleMode -- cgit v1.2.1