[libadwaita/wip/cdavis/animation-correct-callback] animation: Correct callback constructor arguments




commit 02090862d74f4924308192b2761c5ae5ea9e621f
Author: Christopher Davis <christopherdavis gnome org>
Date:   Mon Dec 6 15:00:48 2021 -0800

    animation: Correct callback constructor arguments
    
    https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/383 changed the order.

 src/adw-animation.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-animation.c b/src/adw-animation.c
index 818bf240..cc13424e 100644
--- a/src/adw-animation.c
+++ b/src/adw-animation.c
@@ -48,8 +48,9 @@
  * my_object_animate (MyObject *self)
  * {
  *   AdwAnimationTarget *target =
- *     adw_callback_animation_target_new ((AdwAnimationTargetFunc) animation_cb,
- *                                        self, NULL);
+ *     adw_callback_animation_target_new (self,
+ *                                        (AdwAnimationTargetFunc) animation_cb,
+ *                                        NULL);
  *   g_autoptr (AdwAnimation) animation =
  *     adw_timed_animation_new (widget, 0, 1, 250, target);
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]