Commit 7086080b authored by Matthias Clasen's avatar Matthias Clasen

Add a getter for the adjustment animation duration

parent d35f664b
......@@ -1011,3 +1011,9 @@ gtk_adjustment_enable_animation (GtkAdjustment *adjustment,
priv->duration = duration;
gtk_adjustment_get_animation_duration (GtkAdjustment *adjustment)
return adjustment->priv->duration;
......@@ -27,6 +27,7 @@ G_BEGIN_DECLS
void gtk_adjustment_enable_animation (GtkAdjustment *adjustment,
GdkFrameClock *clock,
guint duration);
guint gtk_adjustment_get_animation_duration (GtkAdjustment *adjustment);
void gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
gdouble value);
gdouble gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment