diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-02 18:51:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-02 18:51:19 +0000 |
commit | d8ce481a7397742a4518f347a9810474f52de112 (patch) | |
tree | 6a1ce043a280042ebdd86fe6e1652cb79ccf9ddf /perl-install/ugtk2.pm | |
parent | 9fb6ab32e9cca926548d09aee2befafa31493077 (diff) | |
download | drakx-d8ce481a7397742a4518f347a9810474f52de112.tar drakx-d8ce481a7397742a4518f347a9810474f52de112.tar.gz drakx-d8ce481a7397742a4518f347a9810474f52de112.tar.bz2 drakx-d8ce481a7397742a4518f347a9810474f52de112.tar.xz drakx-d8ce481a7397742a4518f347a9810474f52de112.zip |
use wrapped labels in various places
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 260d3e597..1d84b6c50 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -100,7 +100,7 @@ sub gtkset_line_wrap { $_[0]->set_line_wrap($_[1]); $_[0] } sub gtkadd { my $w = shift; foreach my $l (@_) { - ref $l or $l = Gtk2::Label->new($l); + ref $l or $l = Gtk2::WrappedLabel->new($l); $w->add(gtkshow($l)); } $w @@ -110,7 +110,7 @@ sub gtkadd_widget { my $sg = shift; map { my $l = $_; - ref $l or $l = Gtk2::Label->new($l); + ref $l or $l = Gtk2::WrappedLabel->new($l); $sg->add_widget($l); $l; } @_; @@ -119,7 +119,7 @@ sub gtkadd_widget { sub gtkappend { my $w = shift; foreach my $l (@_) { - ref $l or $l = Gtk2::Label->new($l); + ref $l or $l = Gtk2::WrappedLabel->new($l); $w->append(gtkshow($l)); } $w @@ -235,7 +235,7 @@ sub gtkpowerpack { } } #- Get and pack the widget (create it if necessary to a label...) - my $widget = ref($_[0]) ? shift : Gtk2::Label->new(shift); + my $widget = ref($_[0]) ? shift : Gtk2::WrappedLabel->new(shift); my $pack_call = 'pack_'.($attr{pack_end} ? 'end' : 'start'); $box->$pack_call($widget, $attr{expand}, $attr{fill}, $attr{padding}); $widget->show; |