summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-09-06 08:15:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-09-06 08:15:44 +0000
commit3bee5d02ca7d6daa873357d567fc30b5cc8c6dc4 (patch)
tree1500f8b340ca7405b680743fdd71a0de643ab99a
parent90437864396c98e56bdb0b64c6dc0ec01d2c9d5c (diff)
downloadcontrol-center-3bee5d02ca7d6daa873357d567fc30b5cc8c6dc4.tar
control-center-3bee5d02ca7d6daa873357d567fc30b5cc8c6dc4.tar.gz
control-center-3bee5d02ca7d6daa873357d567fc30b5cc8c6dc4.tar.bz2
control-center-3bee5d02ca7d6daa873357d567fc30b5cc8c6dc4.tar.xz
control-center-3bee5d02ca7d6daa873357d567fc30b5cc8c6dc4.zip
- tune animation
- cancel -> kill timer - kill timer before resetting it (or maybe better is to not restart it in that case ?)
-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;