diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-18 03:00:14 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-10-31 18:02:46 +0100 |
commit | 73e984026a37808868e8105718a6cac95ffec5fe (patch) | |
tree | a5aa2159b8ad7c44cb60b34e3556093e30a0e0a9 | |
parent | 4d25009fcabfe79872a14866193984128e001748 (diff) | |
download | control-center-73e984026a37808868e8105718a6cac95ffec5fe.tar control-center-73e984026a37808868e8105718a6cac95ffec5fe.tar.gz control-center-73e984026a37808868e8105718a6cac95ffec5fe.tar.bz2 control-center-73e984026a37808868e8105718a6cac95ffec5fe.tar.xz control-center-73e984026a37808868e8105718a6cac95ffec5fe.zip |
draw: kill no more available gc & the like
-rwxr-xr-x | control-center | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/control-center b/control-center index 6ef59255..5fd50fdd 100755 --- a/control-center +++ b/control-center @@ -1254,34 +1254,13 @@ sub run_tool { $run_pixbuf = eval { gtkcreate_pixbuf($icon . "_128") }; $run_counter = 255; $run_counter_add = -5; - undef $wait_darea->{color}; undef $wait_darea->{size}; undef $wait_darea->{first_expose}; - $wait_darea->{not_yet_complete} = 1; $timeout = Glib::Timeout->add(35, sub { return; $wait_darea->{size} ||= $wait_darea->get_allocation; - my $style = $wait_darea->{style} ||= $wait_darea->get_style; - my $bg = $wait_darea->{bg} ||= $style->bg('normal'); - my $base = $wait_darea->{base} ||= $style->base('normal'); - my $color = $wait_darea->{color} ||= $base; - # $base -> $bg - my @colors = ([ $color->red, $bg->red ], - [ $color->green, $bg->green ], - [ $color->blue, $bg->blue ]); - if ($wait_darea->{not_yet_complete} && any { $_->[0] != $_->[1] } @colors) { - $wait_darea->get_window->set_background($color); - $wait_darea->{color} = gtkcolor(map { $_->[0] - min(300, $_->[0] - $_->[1]) } @colors); - $wait_darea->queue_draw; - } elsif ($wait_darea->{not_yet_complete}) { - # set exact color - $wait_darea->get_window->set_background($bg); - $wait_darea->queue_draw; - $wait_darea->{not_yet_complete} = 0; - } else { my $w = $wait_darea; $w->queue_draw_area($w->{pix_yy}, $w->{pix_xx}, $w->{pix_width}, $w->{pix_height}); - } 1; }); $left_locked = 1; |