[mutter] clutter/timeline: Remove clutter_timeline_clone()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/timeline: Remove clutter_timeline_clone()
- Date: Fri, 5 Jun 2020 21:55:37 +0000 (UTC)
commit a05dd813da1227ad39d9cb1d9965b37e8a8866c7
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Apr 16 10:17:51 2020 +0200
clutter/timeline: Remove clutter_timeline_clone()
It was deprecated long ago, and users should switch to using te regular
constructors.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
clutter/clutter/clutter-timeline.c | 37 ---------------------------
clutter/clutter/deprecated/clutter-timeline.h | 3 ---
src/tests/clutter/conform/timeline.c | 4 +--
3 files changed, 2 insertions(+), 42 deletions(-)
---
diff --git a/clutter/clutter/clutter-timeline.c b/clutter/clutter/clutter-timeline.c
index 13d6f09ea6..005c14d10f 100644
--- a/clutter/clutter/clutter-timeline.c
+++ b/clutter/clutter/clutter-timeline.c
@@ -1321,43 +1321,6 @@ clutter_timeline_is_playing (ClutterTimeline *timeline)
return timeline->priv->is_playing;
}
-/**
- * clutter_timeline_clone:
- * @timeline: #ClutterTimeline to duplicate.
- *
- * Create a new #ClutterTimeline instance which has property values
- * matching that of supplied timeline. The cloned timeline will not
- * be started and will not be positioned to the current position of
- * the original @timeline: you will have to start it with
- * clutter_timeline_start().
- *
- * The only cloned properties are:
- *
- * - #ClutterTimeline:duration
- * - #ClutterTimeline:delay
- * - #ClutterTimeline:direction
- *
- * Return value: (transfer full): a new #ClutterTimeline, cloned
- * from @timeline
- *
- * Since: 0.4
- *
- * Deprecated: 1.10: Use clutter_timeline_new() or g_object_new()
- * instead
- */
-ClutterTimeline *
-clutter_timeline_clone (ClutterTimeline *timeline)
-{
- g_return_val_if_fail (CLUTTER_IS_TIMELINE (timeline), NULL);
-
- return g_object_new (CLUTTER_TYPE_TIMELINE,
- "duration", timeline->priv->duration,
- "repeat-count", timeline->priv->repeat_count,
- "delay", timeline->priv->delay,
- "direction", timeline->priv->direction,
- NULL);
-}
-
/**
* clutter_timeline_new:
* @duration_ms: Duration of the timeline in milliseconds
diff --git a/clutter/clutter/deprecated/clutter-timeline.h b/clutter/clutter/deprecated/clutter-timeline.h
index 5c3a578efa..f51650add0 100644
--- a/clutter/clutter/deprecated/clutter-timeline.h
+++ b/clutter/clutter/deprecated/clutter-timeline.h
@@ -26,9 +26,6 @@
G_BEGIN_DECLS
-CLUTTER_DEPRECATED_FOR(clutter_timeline_new)
-ClutterTimeline * clutter_timeline_clone (ClutterTimeline *timeline);
-
G_END_DECLS
#endif /* __CLUTTER_TIMELINE_PRIVATE_H__ */
diff --git a/src/tests/clutter/conform/timeline.c b/src/tests/clutter/conform/timeline.c
index 5be3d83cb5..eb9e1cd4fd 100644
--- a/src/tests/clutter/conform/timeline.c
+++ b/src/tests/clutter/conform/timeline.c
@@ -212,7 +212,7 @@ timeline_base (void)
g_strfreev (markers);
timeline_data_init (&data_2, 2);
- timeline_2 = clutter_timeline_clone (timeline_1);
+ timeline_2 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS);
clutter_timeline_add_marker_at_time (timeline_2, "bar", 2 * 1000 / FPS);
markers = clutter_timeline_list_markers (timeline_2, -1, &n_markers);
g_assert (markers != NULL);
@@ -221,7 +221,7 @@ timeline_base (void)
g_strfreev (markers);
timeline_data_init (&data_3, 3);
- timeline_3 = clutter_timeline_clone (timeline_1);
+ timeline_3 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS);
clutter_timeline_set_direction (timeline_3, CLUTTER_TIMELINE_BACKWARD);
clutter_timeline_add_marker_at_time (timeline_3, "start-marker",
FRAME_COUNT * 1000 / FPS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]