diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-01-27 08:24:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-01-27 08:24:38 +0000 |
commit | 436ad56eb121f77442da6bf64e80249e7dabd73b (patch) | |
tree | 4f202bb672cbd08bcac740e411332f2c39e71d25 | |
parent | 06a6ee4755be4cea8e572bd5a31d0ed2275e6e02 (diff) | |
download | control-center-436ad56eb121f77442da6bf64e80249e7dabd73b.tar control-center-436ad56eb121f77442da6bf64e80249e7dabd73b.tar.gz control-center-436ad56eb121f77442da6bf64e80249e7dabd73b.tar.bz2 control-center-436ad56eb121f77442da6bf64e80249e7dabd73b.tar.xz control-center-436ad56eb121f77442da6bf64e80249e7dabd73b.zip |
a function call has less overhead (no context switches)
than sending ourself a signal that call this very true function ...
-rwxr-xr-x | control-center | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/control-center b/control-center index 9d87a1ec..c0296c10 100755 --- a/control-center +++ b/control-center @@ -335,7 +335,7 @@ gtkadd($window_global, 0, Gtk2::Label->new(N("Please wait...")), 1, Gtk2::HBox->new(0, 0), 0, gtkadd(gtkset_layout(gtkset_border_width(Gtk2::HButtonBox->new, 10), 'end'), - gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { Gtk2->timeout_remove($timeout) if $timeout; kill('USR1', $$) }), + gtksignal_connect(Gtk2::Button->new(N("Cancel")), clicked => sub { Gtk2->timeout_remove($timeout) if $timeout; &sig_usr1() }), ) ) ), |