From bae54d952aea78b56b504799ca7f63ec2bae4ad4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 29 Aug 2008 16:42:35 +0000 Subject: (gtkradio) wrap the child label --- perl-install/ugtk2.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 175b4b658..4eb39660c 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -146,7 +146,11 @@ sub gtksetstyle { sub gtkradio { my $def = shift; my $radio; - map { gtkset_active($radio = Gtk2::RadioButton->new_with_label($radio ? $radio->get_group : undef, $_), $_ eq $def) } @_; + map { + my $w = gtkset_active($radio = Gtk2::RadioButton->new_with_label($radio ? $radio->get_group : undef, $_), $_ eq $def); + $w->get_child->set_line_wrap(1); + $w; + } @_; } sub gtkroot() { mygtk2::root_window() } -- cgit v1.2.1