diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-12-22 20:07:36 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-12-22 20:07:36 +0000 |
commit | e1922243bd426cc4af43aa806027d3c8e1c2a810 (patch) | |
tree | a86284d78d0b3f165d5b224d4cfebcd5a899d55d /perl-install/my_gtk.pm | |
parent | 780e03f8220980809fa187aa442978dd2ab7cc33 (diff) | |
download | drakx-e1922243bd426cc4af43aa806027d3c8e1c2a810.tar drakx-e1922243bd426cc4af43aa806027d3c8e1c2a810.tar.gz drakx-e1922243bd426cc4af43aa806027d3c8e1c2a810.tar.bz2 drakx-e1922243bd426cc4af43aa806027d3c8e1c2a810.tar.xz drakx-e1922243bd426cc4af43aa806027d3c8e1c2a810.zip |
no_comment
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 56e186e70..84f285ba0 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -197,15 +197,17 @@ sub create_okcancel($;$$) { sub create_box_with_title($@) { my $o = shift; - @_ = map { ref $_ ? $_ : warp_text($_) } @_; - $o->{box} = gtkpack_(new Gtk::VBox(0,0), - (map{ - my $w = ref $_ ? $_ : new Gtk::Label($_); - $w->set_name("Title"); - 0, $w; - } @_), - 0, new Gtk::HSeparator, - ) + $o->{box} = (@_ <= 2 && (map { split "\n" } @_) > 6) ? + gtkpack(new Gtk::VBox(0,0), + gtkset_usize(createScrolledWindow(gtktext_insert(new Gtk::Text, join "\n", @_)), 400, 250)) : + gtkpack_(new Gtk::VBox(0,0), + (map { + my $w = ref $_ ? $_ : new Gtk::Label($_); + $w->set_name("Title"); + 0, $w; + } map { ref $_ ? $_ : warp_text($_) } @_), + 0, new Gtk::HSeparator, + ); } sub createScrolledWindow($) { |