diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-01-27 14:57:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-01-27 14:57:17 +0000 |
commit | 224d8204ed5f0003f14dd1ddf67476946f5c12a4 (patch) | |
tree | 6b1b9ee3d07fa5ecea83652b2ea4245edc747904 /perl-install/interactive/gtk.pm | |
parent | d95a8ec330d6597b07e75adc3882c623a9290849 (diff) | |
download | drakx-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/gtk.pm')
-rw-r--r-- | perl-install/interactive/gtk.pm | 2 |
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; |