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.
This commit is contained in:
Carlos Garnacho 2015-10-14 17:27:53 +02:00
parent 14dde08e33
commit 8147f12eca

View File

@ -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_START);
_gtk_text_handle_update (handle, GTK_TEXT_HANDLE_POSITION_SELECTION_END); _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 GtkTextHandleMode