From c1ae56dfa8da461612a87e223729d4675bc304a0 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 14 Oct 2015 17:27:53 +0200 Subject: [PATCH] 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(+) 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