summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/ugtk2.pm6
1 files 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) {