mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
clutter: Drop Timeline.new constructor
Nothing uses it nowadays except GNOME Shell for tests but goes through g_object_new so it is fine Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3181>
This commit is contained in:
parent
6032be04a0
commit
1bb2f5f7b9
@ -96,7 +96,6 @@
|
||||
#include "clutter/clutter-build-config.h"
|
||||
|
||||
#include "clutter/clutter-timeline.h"
|
||||
#include "clutter/deprecated/clutter-timeline.h"
|
||||
|
||||
#include "clutter/clutter-actor-private.h"
|
||||
#include "clutter/clutter-debug.h"
|
||||
@ -1555,23 +1554,6 @@ clutter_timeline_is_playing (ClutterTimeline *timeline)
|
||||
return timeline->priv->is_playing;
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_timeline_new:
|
||||
* @duration_ms: Duration of the timeline in milliseconds
|
||||
*
|
||||
* Creates a new #ClutterTimeline with a duration of @duration_ms milli seconds.
|
||||
*
|
||||
* Return value: the newly created #ClutterTimeline instance. Use
|
||||
* [method@GObject.Object.unref] when done using it
|
||||
*/
|
||||
ClutterTimeline *
|
||||
clutter_timeline_new (guint duration_ms)
|
||||
{
|
||||
return g_object_new (CLUTTER_TYPE_TIMELINE,
|
||||
"duration", duration_ms,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_timeline_new_for_actor:
|
||||
* @actor: The #ClutterActor the timeline is associated with
|
||||
@ -2195,7 +2177,7 @@ clutter_timeline_has_marker (ClutterTimeline *timeline,
|
||||
* clutter_timeline_set_direction (timeline, dir);
|
||||
* }
|
||||
* ...
|
||||
* timeline = clutter_timeline_new (1000);
|
||||
* timeline = clutter_timeline_new_for_actor (some_actor, 1000);
|
||||
* clutter_timeline_set_repeat_count (timeline, -1);
|
||||
* g_signal_connect (timeline, "completed",
|
||||
* G_CALLBACK (reverse_timeline),
|
||||
@ -2205,7 +2187,7 @@ clutter_timeline_has_marker (ClutterTimeline *timeline,
|
||||
* can be effectively replaced by:
|
||||
*
|
||||
* ```c
|
||||
* timeline = clutter_timeline_new (1000);
|
||||
* timeline = clutter_timeline_new_for_actor (some_actor, 1000);
|
||||
* clutter_timeline_set_repeat_count (timeline, -1);
|
||||
* clutter_timeline_set_auto_reverse (timeline);
|
||||
* ```
|
||||
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Clutter.
|
||||
*
|
||||
* An OpenGL based 'interactive canvas' library.
|
||||
*
|
||||
* Copyright (C) 2012 Intel Corp
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "clutter/clutter-timeline.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
CLUTTER_DEPRECATED_FOR(clutter_timeline_new_for_actor)
|
||||
ClutterTimeline * clutter_timeline_new (guint duration_ms);
|
||||
|
||||
G_END_DECLS
|
@ -229,7 +229,6 @@ clutter_nonintrospected_sources = [
|
||||
|
||||
clutter_deprecated_headers = [
|
||||
'deprecated/clutter-container.h',
|
||||
'deprecated/clutter-timeline.h',
|
||||
]
|
||||
|
||||
clutter_backend_private_headers = []
|
||||
|
Loading…
Reference in New Issue
Block a user