diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-01 16:01:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-01 16:01:25 +0000 |
commit | 67d1dc672a5a8440c4471b47e724c571a3d0eca7 (patch) | |
tree | 259f83a0e81ee555552b1e417e48f68c852c4a83 /perl-install/interactive | |
parent | 4a1b8734460c8a675f5c3622ae6c03a02e9e140e (diff) | |
download | drakx-backup-do-not-use-67d1dc672a5a8440c4471b47e724c571a3d0eca7.tar drakx-backup-do-not-use-67d1dc672a5a8440c4471b47e724c571a3d0eca7.tar.gz drakx-backup-do-not-use-67d1dc672a5a8440c4471b47e724c571a3d0eca7.tar.bz2 drakx-backup-do-not-use-67d1dc672a5a8440c4471b47e724c571a3d0eca7.tar.xz drakx-backup-do-not-use-67d1dc672a5a8440c4471b47e724c571a3d0eca7.zip |
(create_widget) prevent big combo boxes to cause an horizontall
scrollbar to appear by using the "ellipsize" property
Diffstat (limited to 'perl-install/interactive')
-rw-r--r-- | perl-install/interactive/gtk.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 0cff3dda7..85e503d4b 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -492,6 +492,7 @@ sub create_widget { if (!$e->{separator}) { if ($e->{not_edit} && $width < 160) { #- ComboBoxes do not have an horizontal scroll-bar. This can cause havoc for long strings (eg: diskdrake Create dialog box in expert mode) $w = Gtk2::ComboBox->new_text; + ($w->child->get_cell_renderers)[0]->set_property('ellipsize', 'end'); $w->set_wrap_width($e->{gtk}{wrap_width}) if exists $e->{gtk}{wrap_width}; } else { $w = Gtk2::Combo->new; |