summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrol-center21
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;