diff options
author | damien <damien@mandriva.com> | 2001-10-30 20:11:31 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-10-30 20:11:31 +0000 |
commit | 22d58ed5438fde649c05c3397e577c98e9b8e0c5 (patch) | |
tree | 36ebf3e101943920fdeb1541c17f99b818893630 /perl-install/standalone/mousedrake | |
parent | 72cdfb169816a60385535eceb9f40292e7e383e7 (diff) | |
download | drakx-22d58ed5438fde649c05c3397e577c98e9b8e0c5.tar drakx-22d58ed5438fde649c05c3397e577c98e9b8e0c5.tar.gz drakx-22d58ed5438fde649c05c3397e577c98e9b8e0c5.tar.bz2 drakx-22d58ed5438fde649c05c3397e577c98e9b8e0c5.tar.xz drakx-22d58ed5438fde649c05c3397e577c98e9b8e0c5.zip |
corrected ref($in) =~ /gtk/
Diffstat (limited to 'perl-install/standalone/mousedrake')
-rwxr-xr-x | perl-install/standalone/mousedrake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake index 177f7489a..f3609b936 100755 --- a/perl-install/standalone/mousedrake +++ b/perl-install/standalone/mousedrake @@ -37,7 +37,7 @@ $mouse->{XMOUSETYPE} eq $curr_env->{mouse}{XMOUSETYPE} || $::isEmbedded and kill USR2, $::CCPID; if (!$mouse || !$::auto) { $mouse ||= mouse::fullname2mouse("serial|Generic 2 Button Mouse"); - if ($::isEmbedded && ref($in) =~ /gtk/) { + if ($::isEmbedded && $in->isa('interactive_gtk')) { require my_gtk; my $time_tag = Gtk->timeout_add(100, sub { defined $::Plug && defined $::Plug->child or return 1; @@ -49,7 +49,7 @@ if (!$mouse || !$::auto) { sub { join '|', map { translate($_) } split '\|', $_[0] }, [ mouse::fullnames ], $mouse->{type} . '|' . $mouse->{name}); - Gtk->timeout_remove($time_tag2) if $::isEmbedded && ref($in) =~ /gtk/; + Gtk->timeout_remove($time_tag2) if $::isEmbedded && $in->isa('interactive_gtk'); $name or $::isEmbedded ? do { kill(USR1, $::CCPID); goto begin } : $in->exit(0); my $mouse_chosen = mouse::fullname2mouse($name); $mouse->{type} eq $mouse_chosen->{type} && $mouse->{name} eq $mouse_chosen->{name} or $mouse = $mouse_chosen; |