[gtk+] textview: Update handles after flushing scroll changes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] textview: Update handles after flushing scroll changes
- Date: Tue, 2 Jun 2015 15:30:40 +0000 (UTC)
commit 243cfd21a292ec4554d1aaf9e8839f4ca00083f9
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jun 1 16:21:20 2015 +0100
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.
gtk/gtktextview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index bbc033a..0a854ab 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]