[gnome-color-manager] gcm-hull-widget.c: Replace use of deprecated clutter api
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] gcm-hull-widget.c: Replace use of deprecated clutter api
- Date: Thu, 16 Feb 2012 21:05:13 +0000 (UTC)
commit 572dbf66b57d51d50acf118cd2c23ef8075df504
Author: Javier JardÃn <jjardon gnome org>
Date: Thu Feb 16 17:26:03 2012 +0000
gcm-hull-widget.c: Replace use of deprecated clutter api
Replace clutter_stage_set_color () with clutter_actor_set_background_color()
Also bump required clutter version to 1.9.11
configure.ac | 4 ++--
src/gcm-hull-widget.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 38e443f..a082669 100644
--- a/configure.ac
+++ b/configure.ac
@@ -100,12 +100,12 @@ AC_ARG_ENABLE(clutter, AS_HELP_STRING([--enable-clutter],[Enable clutter for 3D
if test x$enable_clutter != xno; then
# test for new mash
PKG_CHECK_MODULES(CLUTTER,
- clutter-1.0 >= 1.9.4 clutter-gtk-1.0 mash-0.2,
+ clutter-1.0 >= 1.9.11 clutter-gtk-1.0 mash-0.2,
has_clutter=yes, has_clutter=no)
if test x$has_clutter == xno; then
# test for old mash
PKG_CHECK_MODULES(CLUTTER,
- clutter-1.0 >= 1.9.4 clutter-gtk-1.0 mash-0.1,
+ clutter-1.0 >= 1.9.11 clutter-gtk-1.0 mash-0.1,
has_clutter=yes, has_clutter=no)
fi
else
diff --git a/src/gcm-hull-widget.c b/src/gcm-hull-widget.c
index ec7c7c4..466145a 100644
--- a/src/gcm-hull-widget.c
+++ b/src/gcm-hull-widget.c
@@ -328,7 +328,7 @@ gcm_hull_widget_init (GcmHullWidget *hull_widget)
color.green = 120;
color.blue = 120;
color.alpha = 0;
- clutter_stage_set_color (CLUTTER_STAGE (hull_widget->priv->stage), &color);
+ clutter_actor_set_background_color (CLUTTER_ACTOR (hull_widget->priv->stage), &color);
g_signal_connect (hull_widget->priv->stage, "allocation-changed",
G_CALLBACK (gcm_hull_widget_stage_allocation_changed_cb),
hull_widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]