Add a getter for the adjustment animation duration
This commit is contained in:
@ -1011,3 +1011,9 @@ gtk_adjustment_enable_animation (GtkAdjustment *adjustment,
|
||||
|
||||
priv->duration = duration;
|
||||
}
|
||||
|
||||
void
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user