summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-01-27 14:57:17 +0000
committerThierry Vignaud <tv@mandriva.org>2009-01-27 14:57:17 +0000
commit224d8204ed5f0003f14dd1ddf67476946f5c12a4 (patch)
tree6b1b9ee3d07fa5ecea83652b2ea4245edc747904 /perl-install/interactive
parentd95a8ec330d6597b07e75adc3882c623a9290849 (diff)
downloaddrakx-224d8204ed5f0003f14dd1ddf67476946f5c12a4.tar
drakx-224d8204ed5f0003f14dd1ddf67476946f5c12a4.tar.gz
drakx-224d8204ed5f0003f14dd1ddf67476946f5c12a4.tar.bz2
drakx-224d8204ed5f0003f14dd1ddf67476946f5c12a4.tar.xz
drakx-224d8204ed5f0003f14dd1ddf67476946f5c12a4.zip
simplify through first()/second()
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index c4967e4f6..c5ab6c96d 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -500,7 +500,7 @@ sub create_widget {
if ($e->{not_edit}) {
$real_w = $w = Gtk2::ComboBox->new_text;
# FIXME: the following causes Gtk-CRITICAL but not solvable at realize time:
- ($w->child->get_cell_renderers)[0]->set_property('ellipsize', 'end') if !$e->{do_not_ellipsize};
+ first($w->child->get_cell_renderers)->set_property('ellipsize', 'end') if !$e->{do_not_ellipsize};
$w->set_wrap_width($e->{gtk}{wrap_width}) if exists $e->{gtk}{wrap_width};
} else {
$w = Gtk2::ComboBoxEntry->new_text;