From 3db73c37a01a6e1668a3e5433f8739b2e6f414cf Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Mon, 11 May 2009 21:49:19 +0200 Subject: [PATCH] Reset the colors by passing undef --- bindings/perl/Champlain/examples/capitals.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bindings/perl/Champlain/examples/capitals.pl b/bindings/perl/Champlain/examples/capitals.pl index 8fc5447..1a7f7ed 100755 --- a/bindings/perl/Champlain/examples/capitals.pl +++ b/bindings/perl/Champlain/examples/capitals.pl @@ -158,10 +158,8 @@ sub capital_callback { if (@markers) { # Reset the color of the previous marker my $marker = $markers[-1]; - my $white = Clutter::Color->new(0xff, 0xff, 0xff, 0xff); - my $black = Clutter::Color->new(0x00, 0x00, 0x00, 0xff); - $marker->set_text_color($white); - $marker->set_color($black); + $marker->set_text_color(undef); + $marker->set_color(undef); } $data->{markers} = \@markers; -- 2.39.5