[perl-Clutter] Use Clutter::Color::get_static()



commit db4c7dc59693d77f53a08010b4661335965eb527
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri May 4 17:52:09 2012 +0100

    Use Clutter::Color::get_static()
    
    The static class method is correctly introspected.

 examples/basic-actor.pl |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/examples/basic-actor.pl b/examples/basic-actor.pl
index df6a773..f61aa5e 100644
--- a/examples/basic-actor.pl
+++ b/examples/basic-actor.pl
@@ -10,7 +10,7 @@ $stage->set_user_resizable(TRUE);
 
 my $vase = Clutter::Actor->new();
 $vase->set_layout_manager(Clutter::BoxLayout->new());
-$vase->set_background_color(Clutter::color_get_static('sky-blue-light'));
+$vase->set_background_color(Clutter::Color::get_static('sky-blue-light'));
 $vase->add_constraint(Clutter::AlignConstraint->new($stage, 'both', 0.5));
 $stage->add_child($vase);
 
@@ -20,7 +20,7 @@ $flowers{'red'} = Clutter::Actor->new();
 $flowers{'red'}->set_name('flowers.1');
 $flowers{'red'}->set_size(128, 128);
 $flowers{'red'}->set_margin_left(12);
-$flowers{'red'}->set_background_color(Clutter::color_get_static('red'));
+$flowers{'red'}->set_background_color(Clutter::Color::get_static('red'));
 $flowers{'red'}->set_reactive(TRUE);
 $flowers{'red'}->signal_connect(button_press_event => sub {
     $flowers{'red'}->save_easing_state();
@@ -28,10 +28,10 @@ $flowers{'red'}->signal_connect(button_press_event => sub {
     $flowers{'red'}->set_easing_mode('linear');
 
     if ($flowers{'red'}->{'toggled'}) {
-        $flowers{'red'}->set_background_color(Clutter::color_get_static('red'));
+        $flowers{'red'}->set_background_color(Clutter::Color::get_static('red'));
         $flowers{'red'}->{'toggled'} = FALSE;
     } else {
-        $flowers{'red'}->set_background_color(Clutter::color_get_static('blue'));
+        $flowers{'red'}->set_background_color(Clutter::Color::get_static('blue'));
         $flowers{'red'}->{'toggled'} = TRUE;
     }
 
@@ -48,7 +48,7 @@ $flowers{'yellow'}->set_margin_left(6);
 $flowers{'yellow'}->set_margin_top(12);
 $flowers{'yellow'}->set_margin_bottom(12);
 $flowers{'yellow'}->set_margin_right(6);
-$flowers{'yellow'}->set_background_color(Clutter::color_get_static('yellow'));
+$flowers{'yellow'}->set_background_color(Clutter::Color::get_static('yellow'));
 $flowers{'yellow'}->set_reactive(TRUE);
 $flowers{'yellow'}->signal_connect(enter_event => sub {
     my ($self, $event) = @_;
@@ -82,7 +82,7 @@ $flowers{'green'} = Clutter::Actor->new();
 $flowers{'green'}->set_name('flowers.2');
 $flowers{'green'}->set_size(128, 128);
 $flowers{'green'}->set_margin_right(12);
-$flowers{'green'}->set_background_color(Clutter::color_get_static('green'));
+$flowers{'green'}->set_background_color(Clutter::Color::get_static('green'));
 $flowers{'green'}->set_reactive(TRUE);
 $flowers{'green'}->signal_connect(button_press_event => sub {
     my ($self, $event) = @_;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]