summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMystery Man 580 <uid580@mandriva.org>2002-12-04 07:49:24 +0000
committerMystery Man 580 <uid580@mandriva.org>2002-12-04 07:49:24 +0000
commit0163846519fe8ac3da5aca709d5aaef951033822 (patch)
treecb55a2bda050f36bce6a636540b4011698336a6c
parent03ba5ce7445814ad2e72549bfa10af30a7da5d9d (diff)
downloaddrakx-backup-do-not-use-0163846519fe8ac3da5aca709d5aaef951033822.tar
drakx-backup-do-not-use-0163846519fe8ac3da5aca709d5aaef951033822.tar.gz
drakx-backup-do-not-use-0163846519fe8ac3da5aca709d5aaef951033822.tar.bz2
drakx-backup-do-not-use-0163846519fe8ac3da5aca709d5aaef951033822.tar.xz
drakx-backup-do-not-use-0163846519fe8ac3da5aca709d5aaef951033822.zip
clean up
-rw-r--r--perl-install/ugtk2.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 00b44ab1c..ea06998ed 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -842,11 +842,11 @@ sub _create_window($$) {
if ($::o->{mouse}{unsafe}) {
$w->add_events('pointer-motion-mask');
- my $signal; #- don't make this line part of next one, signal_disconnect won't be able to access $signal value
- $signal = $w->signal_connect(motion_notify_event => sub {
+ my $signal = $w->signal_connect(motion_notify_event => sub {
+ my ($sig) = @_;
delete $::o->{mouse}{unsafe};
log::l("unsetting unsafe mouse");
- $w->signal_disconnect($signal);
+ $w->signal_disconnect($sig);
});
}
$w->signal_connect(key_press_event => sub {