diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-12 12:36:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-12 12:36:22 +0000 |
commit | 6af4eaa570b24e5fb20a1c176a49cce5ddad49a9 (patch) | |
tree | 3202b36e8dd1e46e90689b52684e577184bb3fac /perl-install/mygtk2.pm | |
parent | 212c6f3f817a03ef6e18d991aa6d821902a04d55 (diff) | |
download | drakx-6af4eaa570b24e5fb20a1c176a49cce5ddad49a9.tar drakx-6af4eaa570b24e5fb20a1c176a49cce5ddad49a9.tar.gz drakx-6af4eaa570b24e5fb20a1c176a49cce5ddad49a9.tar.bz2 drakx-6af4eaa570b24e5fb20a1c176a49cce5ddad49a9.tar.xz drakx-6af4eaa570b24e5fb20a1c176a49cce5ddad49a9.zip |
- fix gtkadd()
- fix displaying banner
- no banner if no ::Wizard_title (as used to be)
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r-- | perl-install/mygtk2.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 763f55bf7..64e5c216a 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -66,7 +66,7 @@ sub gtkadd { my %opts = @_; $class =~ s/^Gtk2::(Gdk::)?// or internal_error("gtkadd unknown class $class"); - _gtk('gtkadd', $w, $class, \%opts); + _gtk($w, $class, 'gtkadd', \%opts); } @@ -458,7 +458,7 @@ sub _gtk__MagicWindow { if (!$::WizardWindow) { my $banner; - if (!$::isEmbedded && !$::isInstall) { + if (!$::isEmbedded && !$::isInstall && $::Wizard_title) { $banner = Gtk2::Banner->new($opts->{icon_no_error}, $::Wizard_title) or log::l("ERROR: missing wizard banner"); } $::WizardTable = gtknew('VBox', if_($banner, children_tight => [ $banner ])); @@ -481,7 +481,7 @@ sub _gtk__MagicWindow { %$opts = (); } - gtkset($::WizardTable, children_loose => [ $sub_child ]); + gtkadd($::WizardTable, children_loose => [ $sub_child ]); $w = $::WizardWindow; } $w; |