summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-19 09:40:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-19 09:40:04 +0000
commitc5640e09feb5bba961cbf9327ef8ada79aff010e (patch)
treeeb5b401370b1c5fc35aa4a54d8035934ab17a3d8 /perl-install/interactive/gtk.pm
parent52379a3b8272c9d2f3bf8959841bdb318c517aa6 (diff)
downloaddrakx-c5640e09feb5bba961cbf9327ef8ada79aff010e.tar
drakx-c5640e09feb5bba961cbf9327ef8ada79aff010e.tar.gz
drakx-c5640e09feb5bba961cbf9327ef8ada79aff010e.tar.bz2
drakx-c5640e09feb5bba961cbf9327ef8ada79aff010e.tar.xz
drakx-c5640e09feb5bba961cbf9327ef8ada79aff010e.zip
drop special case for non-editable combo boxes with large labels.
at least the special case for diskdrake "Create" is not needed anymore (cf #43611)
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-rw-r--r--perl-install/interactive/gtk.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 2dea19599..9b7797c9c 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -496,11 +496,8 @@ sub create_widget {
my @formatted_list = map { may_apply($e->{format}, $_) } @{$e->{list}};
$e->{formatted_list} = \@formatted_list;
- my @l = sort { $b <=> $a } map { length } @formatted_list;
- my $width = $l[@l / 16]; # take the third octile (think quartile)
-
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)
+ if ($e->{not_edit}) {
$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};
@@ -508,7 +505,7 @@ sub create_widget {
} else {
$w = Gtk2::Combo->new;
$w->set_use_arrows_always(1);
- $w->entry->set_editable(!$e->{not_edit});
+ $w->entry->set_editable(1);
$w->disable_activate;
}
$w->set_popdown_strings(@formatted_list);