From 15fd2e7b186c835ed0a0d8137458f74ec4597645 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 28 Jun 2004 02:26:44 +0000 Subject: catch missing wizard pixmap, otherwise we end up with WizardWindow being non shown and error messages can't pop up --- perl-install/ugtk2.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index c29e5cb02..3ae9e50ca 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -945,7 +945,8 @@ sub new { }); } elsif (!$o->{isEmbedded}) { $::WizardWindow->set_position('center_always') if !$::isStandalone; - gtkpack__($::WizardTable, Gtk2::Banner->new($::Wizard_pix_up || "wiz_default_up.png", $::Wizard_title)); + eval { gtkpack__($::WizardTable, Gtk2::Banner->new($::Wizard_pix_up || "wiz_default_up.png", $::Wizard_title)) }; + $@ and log::l("ERROR: missing wizard banner"); may_set_icon($::WizardWindow, $o->{wm_icon}); } $::WizardWindow->show; -- cgit v1.2.1