[clutter-box2dmm] Wrapped the is-fixed-rotation property that is provided in latest clutter-box2d
- From: Aidan Delaney <adelaney src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-box2dmm] Wrapped the is-fixed-rotation property that is provided in latest clutter-box2d
- Date: Mon, 7 May 2012 20:28:41 +0000 (UTC)
commit 5e013e9477b3e7792c0f7e0057f3d1a914d759ce
Author: Aidan Delaney <aidan phoric eu>
Date: Mon May 7 21:27:52 2012 +0100
Wrapped the is-fixed-rotation property that is provided in latest clutter-box2d
INSTALL | 9 +++++++--
clutter-box2d/src/box2d.ccg | 12 ++++++++++++
clutter-box2d/src/box2d.hg | 3 +++
configure.ac | 2 +-
4 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/INSTALL b/INSTALL
index 7d1c323..a1e89e1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,8 +1,8 @@
Installation Instructions
*************************
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
+Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
@@ -226,6 +226,11 @@ order to use an ANSI C compiler:
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+ HP-UX `make' updates targets which have the same time stamps as
+their prerequisites, which makes it generally unusable when shipped
+generated files such as `configure' are involved. Use GNU `make'
+instead.
+
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
a workaround. If GNU CC is not installed, it is therefore recommended
diff --git a/clutter-box2d/src/box2d.ccg b/clutter-box2d/src/box2d.ccg
index 22ffaf4..40f8859 100644
--- a/clutter-box2d/src/box2d.ccg
+++ b/clutter-box2d/src/box2d.ccg
@@ -70,6 +70,18 @@ bool Box2D::get_child_is_bullet(const Glib::RefPtr<const Clutter::Actor>& actor)
return is_bullet;
}
+void Box2D::set_child_is_fixed_rotation(const Glib::RefPtr<Clutter::Actor>& actor, bool is_fixed_rotation)
+{
+ set_child_property(actor, "is-fixed-rotation", is_fixed_rotation);
+}
+
+bool Box2D::get_child_is_fixed_rotation(const Glib::RefPtr<const Clutter::Actor>& actor) const
+{
+ bool is_fixed_rotation = false;
+ get_child_property(actor, "is-fixed-rotation", is_fixed_rotation);
+ return is_fixed_rotation;
+}
+
void Box2D::set_child_mode(const Glib::RefPtr<Clutter::Actor>& actor, Type mode)
{
set_child_property(actor, "mode", (int)mode); //TODO: Avoid the need for the int cast.
diff --git a/clutter-box2d/src/box2d.hg b/clutter-box2d/src/box2d.hg
index 09fc27e..35145a3 100644
--- a/clutter-box2d/src/box2d.hg
+++ b/clutter-box2d/src/box2d.hg
@@ -122,6 +122,9 @@ public:
void set_child_is_bullet(const Glib::RefPtr<Clutter::Actor>& actor, bool is_bullet = true);
bool get_child_is_bullet(const Glib::RefPtr<const Clutter::Actor>& actor) const;
+ void set_child_is_fixed_rotation(const Glib::RefPtr<Clutter::Actor>& actor, bool is_fixed_rotation = false);
+ bool get_child_is_fixed_rotation(const Glib::RefPtr<const Clutter::Actor>& actor) const;
+
void set_child_mode(const Glib::RefPtr<Clutter::Actor>& actor, Type mode);
Type get_child_mode(const Glib::RefPtr<const Clutter::Actor>& actor) const;
diff --git a/configure.ac b/configure.ac
index ce75de4..b3a379e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ AC_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
-AC_SUBST([CLUTTER_BOX2DMM_MODULES], ['clutter-box2d-0.12 >= 0.12.0 cluttermm-1.0 >= 1.0.0'])
+AC_SUBST([CLUTTER_BOX2DMM_MODULES], ['clutter-box2d-0.12 >= 0.12.2 cluttermm-1.0 >= 1.0.0'])
PKG_CHECK_MODULES([CLUTTER_BOX2DMM], [$CLUTTER_BOX2DMM_MODULES])
MM_PKG_CONFIG_SUBST([GMMPROC_DIR], [--variable=gmmprocdir glibmm-2.4])
MM_PKG_CONFIG_SUBST([GMMPROC_EXTRA_M4_DIR], [--variable=gmmprocm4dir pangomm-1.4 atkmm-1.6 cluttermm-1.0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]