From 084081f2d1051e6fd37bea4028c100535b48ac35 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Jan 2005 17:20:15 +0000 Subject: more installing special install shortcuts in _create_window() (there is no reason for not having the shortcuts when the window has pop_it) --- perl-install/ugtk2.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 3984ebb63..a182a7539 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -873,10 +873,7 @@ sub new { if_(!$::isInstall && !$::isStandalone, position_policy => 'center_always'), ); - if ($::isInstall) { - require install_gtk; #- for perl_checker - $::WizardWindow->signal_connect(key_press_event => \&install_gtk::special_shortcuts); - } else { + if (!$::isInstall) { eval { gtkpack__($::WizardTable, Gtk2::Banner->new(wm_icon(), $::Wizard_title)) }; $@ and log::l("ERROR: missing wizard banner"); } @@ -966,6 +963,7 @@ sub _create_window { if ($::isInstall) { require install_gtk; #- for perl_checker install_gtk::handle_unsafe_mouse($::o, $w); + $w->signal_connect(key_press_event => \&install_gtk::special_shortcuts); } if ($force_center_at_pos) { -- cgit v1.2.1