Skip Menu |

This queue is for tickets about the Clutter CPAN distribution.

Report information
The Basics
Id: 49444
Status: new
Priority: 0/
Queue: Clutter

People
Owner: Nobody in particular
Requestors: potyl [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.002
Fixed in: (no value)



Subject: examples/gtk-clutter.pl is not ported to Clutter 1.0
The example examples/gtk-clutter.pl is still using the Clutter 0.8 API. This patch ports the example to the new version of Clutter.
Subject: 0001-Port-to-Clutter-1.0.patch
From 88868d4bc7dd9096b8963c153144e214e486c268 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez <emmanuel.rodriguez@gmail.com> Date: Sat, 5 Sep 2009 09:13:57 +0200 Subject: [PATCH] Port to Clutter 1.0. Clutter::Color->parse() is now Clutter::Color->from_string(). --- examples/gtk-clutter.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gtk-clutter.pl b/examples/gtk-clutter.pl index de1a051..d2d43c1 100644 --- a/examples/gtk-clutter.pl +++ b/examples/gtk-clutter.pl @@ -17,10 +17,10 @@ $vbox->pack_start($embed, TRUE, FALSE, 0); my $stage = $embed->get_stage(); $embed->set_size_request(300, 200); -$stage->set_color(Clutter::Color->parse('DarkBlue')); +$stage->set_color(Clutter::Color->from_string('DarkBlue')); $embed->realize(); -my $rect = Clutter::Rectangle->new(Clutter::Color->parse('Yellow')); +my $rect = Clutter::Rectangle->new(Clutter::Color->from_string('Yellow')); $rect->set_size(100, 100); $rect->set_anchor_point(50, 50); $stage->add($rect); -- 1.6.0.4