forked from AuroraMiddleware/gtk
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:
parent
14dde08e33
commit
8147f12eca
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user