summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-17 09:44:09 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-17 09:44:09 +0000
commitd9563ea3ff8b2b8aa326dfad8220df139620772a (patch)
treed1f51f5dda885f1b2915a6eabc2f1ccf99f4c566 /perl-install/interactive/gtk.pm
parentc6022ccdaa53d5a35ecdcce0e33da825e186611c (diff)
downloaddrakx-d9563ea3ff8b2b8aa326dfad8220df139620772a.tar
drakx-d9563ea3ff8b2b8aa326dfad8220df139620772a.tar.gz
drakx-d9563ea3ff8b2b8aa326dfad8220df139620772a.tar.bz2
drakx-d9563ea3ff8b2b8aa326dfad8220df139620772a.tar.xz
drakx-d9563ea3ff8b2b8aa326dfad8220df139620772a.zip
(create_treeview_list) use ellipsis in order to prevent horizontal scroll bar
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-rw-r--r--perl-install/interactive/gtk.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 2ba674a88..6044273d6 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -81,8 +81,9 @@ sub create_treeview_list {
my $list_tv = Gtk2::TreeView->new_with_model($list);
$list_tv->set_headers_visible(0);
$list_tv->get_selection->set_mode('browse');
- my $textcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 0);
+ my $textcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, my $renderer = Gtk2::CellRendererText->new, 'text' => 0);
$list_tv->append_column($textcolumn);
+ $renderer->set_property('ellipsize', 'end');
my $select = sub {
my ($path) = @_;