diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-10-14 17:27:53 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-10-14 18:44:34 +0200 |
commit | 8147f12ecaa726ce52af50946c70fd54b608c809 (patch) | |
tree | 2cb35ec2343a6b6da8b11610cb30c012ed218a65 | |
parent | 14dde08e33f45e08f8b71353f7dfad37e8988d77 (diff) | |
download | gtk+-8147f12ecaa726ce52af50946c70fd54b608c809.tar.gz |
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.
-rw-r--r-- | gtk/gtktexthandle.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |