summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-29 17:54:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-29 17:54:17 +0000
commit55bafeda94d7a52a1a4984bbb6974d20715520f4 (patch)
treec52d533328663c8c8b27faac3a89b470c486aa47
parentec0af4adedb519550959b0063d452142d9f6eb38 (diff)
downloaddrakx-backup-do-not-use-55bafeda94d7a52a1a4984bbb6974d20715520f4.tar
drakx-backup-do-not-use-55bafeda94d7a52a1a4984bbb6974d20715520f4.tar.gz
drakx-backup-do-not-use-55bafeda94d7a52a1a4984bbb6974d20715520f4.tar.bz2
drakx-backup-do-not-use-55bafeda94d7a52a1a4984bbb6974d20715520f4.tar.xz
drakx-backup-do-not-use-55bafeda94d7a52a1a4984bbb6974d20715520f4.zip
disallow big_help (when pressing F1) when testing mouse
-rw-r--r--perl-install/mouse.pm2
-rw-r--r--perl-install/my_gtk.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index fe154592b..b9c8a89c7 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -377,7 +377,7 @@ sub test_mouse_install {
my ($mouse) = @_;
require my_gtk;
my_gtk->import(qw(:wrappers :helpers));
- my $w = my_gtk->new;
+ my $w = my_gtk->new('', disallow_big_help => 1);
my ($width, $height, $offset) = (210, round_up(min(350, $::windowheight - 150), 6), 25);
my $darea = new Gtk::DrawingArea;
$darea->set_events([ 'button_press_mask', 'button_release_mask' ]); #$darea must be unrealized.
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index 90433cc00..ad8c4ea9e 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -925,9 +925,9 @@ sub _create_window($$) {
0xffc9 => 'next',
0xffc8 => 'previous' }}{$_[1]{keyval}};
- if ($d eq "help") {
+ if ($d eq 'help') {
require install_gtk;
- install_gtk::create_big_help($::o);
+ install_gtk::create_big_help($::o) if !$o->{disallow_big_help};
} elsif ($::isInstall && $d eq 'screenshot') {
common::take_screenshot($o);
} elsif (chr($_[1]{keyval}) eq 'e' && $_[1]{state} & 8) {