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:
Carlos Garnacho 2015-06-01 16:21:20 +01:00
parent a0e8056848
commit 243cfd21a2

View File

@ -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;