[cluttermm] Group: Deprecate this.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Group: Deprecate this.
- Date: Mon, 24 Mar 2014 09:31:56 +0000 (UTC)
commit ddf4c23ab867154ee73270fdddeb81e13c4f5028
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Mar 24 10:30:13 2014 +0100
Group: Deprecate this.
People should use the Group-like methods just added in the previous
Actor commit.
clutter/src/group.hg | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/clutter/src/group.hg b/clutter/src/group.hg
index 6337ca3..53a5fb7 100644
--- a/clutter/src/group.hg
+++ b/clutter/src/group.hg
@@ -22,16 +22,23 @@ _DEFS(cluttermm,clutter)
_PINCLUDE(cluttermm/private/actor_p.h)
_PINCLUDE(cluttermm/private/container_p.h)
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
namespace Clutter
{
+/**
+ * @deprecated Use Actor instead.
+ */
class Group :
public Actor,
public Container
{
_CLASS_GOBJECT(Group, ClutterGroup, CLUTTER_GROUP, Actor, ClutterActor)
_IMPLEMENTS_INTERFACE(Container)
+ _IS_DEPRECATED
protected:
_CTOR_DEFAULT()
@@ -39,10 +46,10 @@ protected:
public:
_WRAP_CREATE()
- _WRAP_METHOD(void remove_all(), clutter_group_remove_all)
- _WRAP_METHOD(int get_n_children() const, clutter_group_get_n_children)
- _WRAP_METHOD(Glib::RefPtr<Actor> get_nth_child(int index), clutter_group_get_nth_child, refreturn)
- _WRAP_METHOD(Glib::RefPtr<const Actor> get_nth_child(int index) const, clutter_group_get_nth_child,
constversion)
+ _WRAP_METHOD(void remove_all(), clutter_group_remove_all, deprecated "Use Actor::remove_all_children()
instead.")
+ _WRAP_METHOD(int get_n_children() const, clutter_group_get_n_children, deprecated "Use
Actor::get_n_children() instead.")
+ _WRAP_METHOD(Glib::RefPtr<Actor> get_nth_child(int index), clutter_group_get_nth_child, refreturn,
deprecated "Use Actor::get_child_at_index() instead.")
+ _WRAP_METHOD(Glib::RefPtr<const Actor> get_nth_child(int index) const, clutter_group_get_nth_child,
constversion, deprecated "Use Actor::get_child_at_index() instead.")
// these functions were deprecated in favor of their Container counterparts
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]