textview: Update handles after flushing scroll changes
Text insertion/pasting might trigger scroll, so we'd have to wait until the text was revalidated and the scrolling truly happened before we can check the new handle(s) position.
This commit is contained in:
@@ -2366,6 +2366,10 @@ gtk_text_view_flush_scroll (GtkTextView *text_view)
|
||||
scroll->xalign,
|
||||
scroll->yalign);
|
||||
|
||||
if (text_view->priv->text_handle)
|
||||
gtk_text_view_update_handles (text_view,
|
||||
_gtk_text_handle_get_mode (text_view->priv->text_handle));
|
||||
|
||||
free_pending_scroll (scroll);
|
||||
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user