diff options
-rwxr-xr-x | control-center | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/control-center b/control-center index 22f10d0a..bf439985 100755 --- a/control-center +++ b/control-center @@ -464,7 +464,6 @@ $darea_title->signal_connect(expose_event => sub { $dbl_area, $dim[0], $dim[1], $dim[0], $dim[1], $dim[2], $dim[3]); }); -my $right_back_pixbuf = gtkcreate_png_pixbuf('mcc-core-back'); my $pix_dbl; $notebook_global->append_page(my $summary_darea = new Gtk::DrawingArea); @@ -498,11 +497,16 @@ $summary_darea->signal_connect(expose_event => sub { 0; }); -my ($run_pixbuf, $run_counter); +my ($run_pixbuf, $run_counter, $run_counter_add); +my $right_back_pixbuf = gtkcreate_png_pixbuf('mcc-core-back'); $run_darea->signal_connect(expose_event => sub { - $run_pixbuf->render_to_drawable($run_darea->window, $run_darea->style->fg_gc('normal'), 0, 0, 0, 0, - $run_pixbuf->get_width, $run_pixbuf->get_height, 'normal', 0, 0); + my $pixbuf = compose_pixbufs($run_pixbuf, $right_back_pixbuf, $run_counter); + $pixbuf->render_to_drawable($run_darea->window, $run_darea->style->fg_gc('normal'), 0, 0, 0, 0, + $pixbuf->get_width, $pixbuf->get_height, 'normal', 0, 0); + $run_counter += $run_counter_add; + $run_counter_add = -$run_counter_add if $run_counter < 100; + $run_counter_add = -$run_counter_add if 245 < $run_counter; }); @@ -585,7 +589,12 @@ sub compute_exec_string { } if ($gtkplug > 0) { $emb_wait->show; + if ($run_pixbuf) { + undef $run_pixbuf;#->unref; + } $run_pixbuf = gtkcreate_png_pixbuf($icon . "_128"); + $run_counter = 255; + $run_counter_add = -15; $timeout = Gtk->timeout_add(100, sub { $run_darea->draw(undef); 1 }); # Gtk->timeout_remove($timeout); $left_locked = 1; |