summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorMystery Man 580 <uid580@mandriva.org>2002-12-04 10:38:20 +0000
committerMystery Man 580 <uid580@mandriva.org>2002-12-04 10:38:20 +0000
commite61c4d55d27253c200bd30f1ac6369f96d73756d (patch)
tree6afa678b959ec37610c4bdc52d0b68d1bbae8d3f /perl-install/ugtk2.pm
parent73eacc0b2542d1f383635b7ab7dbdd8d576edcc4 (diff)
downloaddrakx-e61c4d55d27253c200bd30f1ac6369f96d73756d.tar
drakx-e61c4d55d27253c200bd30f1ac6369f96d73756d.tar.gz
drakx-e61c4d55d27253c200bd30f1ac6369f96d73756d.tar.bz2
drakx-e61c4d55d27253c200bd30f1ac6369f96d73756d.tar.xz
drakx-e61c4d55d27253c200bd30f1ac6369f96d73756d.zip
reverse
Diffstat (limited to 'perl-install/ugtk2.pm')
-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 ea06998ed..00b44ab1c 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 = $w->signal_connect(motion_notify_event => sub {
- my ($sig) = @_;
+ 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 {
delete $::o->{mouse}{unsafe};
log::l("unsetting unsafe mouse");
- $w->signal_disconnect($sig);
+ $w->signal_disconnect($signal);
});
}
$w->signal_connect(key_press_event => sub {