From: Emmanuel Rodriguez Date: Mon, 11 May 2009 19:49:19 +0000 (+0200) Subject: Reset the colors by passing undef X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db73c37a01a6e1668a3e5433f8739b2e6f414cf;p=libchamplain Reset the colors by passing undef --- 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;