summaryrefslogtreecommitdiffstats
path: root/perl-install/my_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-12-12 18:48:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-12-12 18:48:00 +0000
commit2db498ee242e3170dad946885815f8cb064a3cf0 (patch)
tree5533b1722073eb16a56b42c4da5d3fab63b54b5d /perl-install/my_gtk.pm
parentd5a25feeae9a96b7cbae02104321124ed3fda591 (diff)
downloaddrakx-2db498ee242e3170dad946885815f8cb064a3cf0.tar
drakx-2db498ee242e3170dad946885815f8cb064a3cf0.tar.gz
drakx-2db498ee242e3170dad946885815f8cb064a3cf0.tar.bz2
drakx-2db498ee242e3170dad946885815f8cb064a3cf0.tar.xz
drakx-2db498ee242e3170dad946885815f8cb064a3cf0.zip
enable easy screenshot'ing
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r--perl-install/my_gtk.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm
index b13d88a24..6679a1ba0 100644
--- a/perl-install/my_gtk.pm
+++ b/perl-install/my_gtk.pm
@@ -680,13 +680,16 @@ sub _create_window($$) {
});
}
$w->signal_connect(key_press_event => sub {
- my $d = ${{ 65470 => 'help',
- 65481 => 'next',
- 65480 => 'previous' }}{$_[1]{keyval}};
+ my $d = ${{ 0xffbe => 'help',
+ 0xffbf => 'screenshot',
+ 0xffc9 => 'next',
+ 0xffc8 => 'previous' }}{$_[1]{keyval}};
if ($d eq "help") {
require install_gtk;
install_gtk::create_big_help($::o);
+ } elsif ($::isInstall && $d eq 'screenshot') {
+ common::take_screenshot($o);
} elsif (chr($_[1]{keyval}) eq 'e' && $_[1]{state} & 8) {
log::l("Switching to " . ($::expert ? "beginner" : "expert"));
$::expert = !$::expert;