summaryrefslogtreecommitdiff
path: root/gtk/gtkadjustmentprivate.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-07-21 21:16:32 +0200
committerMatthias Clasen <mclasen@redhat.com>2014-08-03 20:12:47 +0200
commit9d7f1caca7073cdf4af3bd85b24dbe0209abdde2 (patch)
tree1a23a230ad217e15dc4b2f26ea468c75728a5b34 /gtk/gtkadjustmentprivate.h
parent2bf368c9e329d4f0ae5cfa64afe91c7a27fe37c7 (diff)
downloadgtk+-9d7f1caca7073cdf4af3bd85b24dbe0209abdde2.tar.gz
textview: Avoid relocating adjustments on ::size-allocate while these are animating
An animation may be scheduled while the textview content changed in size, so the resize queued would just unset the animation and set the adjusments with a current value, defeating gtk_text_view_scroll_to_iter(). In this case, just avoid the adjustment change, as there is a target value on the way. https://bugzilla.gnome.org/show_bug.cgi?id=733406
Diffstat (limited to 'gtk/gtkadjustmentprivate.h')
-rw-r--r--gtk/gtkadjustmentprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkadjustmentprivate.h b/gtk/gtkadjustmentprivate.h
index 3d9ba4c76c..c0884448a7 100644
--- a/gtk/gtkadjustmentprivate.h
+++ b/gtk/gtkadjustmentprivate.h
@@ -32,6 +32,8 @@ void gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
gdouble value);
gdouble gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
+gboolean gtk_adjustment_is_animating (GtkAdjustment *adjustment);
+
G_END_DECLS