summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrol-center8
1 files changed, 4 insertions, 4 deletions
diff --git a/control-center b/control-center
index bf439985..4082d1f3 100755
--- a/control-center
+++ b/control-center
@@ -387,7 +387,7 @@ $window_global->add(
0, new Gtk::Label(_("Please wait...")),
1, new Gtk::HBox(0, 0),
0, gtkadd(gtkset_layout(gtkset_border_width(new Gtk::HButtonBox, 10), 'end'),
- gtksignal_connect(new Gtk::Button(_("Cancel")), clicked => sub { kill('USR1', $$) }),
+ gtksignal_connect(new Gtk::Button(_("Cancel")), clicked => sub { Gtk->timeout_remove($timeout) if $timeout; kill('USR1', $$) }),
)
)
),
@@ -594,9 +594,9 @@ sub compute_exec_string {
}
$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);
+ $run_counter_add = -10;
+ Gtk->timeout_remove($timeout) if $timeout;
+ $timeout = Gtk->timeout_add(70, sub { $run_darea->draw(undef); 1 });
$left_locked = 1;
$pending_app = 1;
my $pid;