aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-06 09:16:45 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-06 09:16:45 +0000
commit943df8d431e2759fbcf22020d986b2789ade44c6 (patch)
tree577e161850ba811e4f233a41cac3cb6540d01ab6
parentc9825f186b80714ed7e7bfa89fd969ed5c72e721 (diff)
downloadrpmdrake-943df8d431e2759fbcf22020d986b2789ade44c6.tar
rpmdrake-943df8d431e2759fbcf22020d986b2789ade44c6.tar.gz
rpmdrake-943df8d431e2759fbcf22020d986b2789ade44c6.tar.bz2
rpmdrake-943df8d431e2759fbcf22020d986b2789ade44c6.tar.xz
rpmdrake-943df8d431e2759fbcf22020d986b2789ade44c6.zip
(run_treeview_dialog) set ellipsize for package name column
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 727a0c68..f379cfc7 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -186,11 +186,12 @@ sub run_treeview_dialog {
$rdr->set_fixed_size(34, 24);
$pixcolumn->set_fixed_width(34); # w/o this the pixbuf cells is empty
$pixcolumn->set_sizing('fixed');
- $detail_list->append_column(my $col_nm = Gtk2::TreeViewColumn->new_with_attributes(N("Package"), Gtk2::CellRendererText->new, 'text' => $pkg_columns{short_name}));
+ $detail_list->append_column(my $col_nm = Gtk2::TreeViewColumn->new_with_attributes(N("Package"), my $nm_rdr = Gtk2::CellRendererText->new, 'text' => $pkg_columns{short_name}));
$detail_list->append_column(my $col_ver = Gtk2::TreeViewColumn->new_with_attributes(N("Version"), Gtk2::CellRendererText->new, 'text' => $pkg_columns{version}));
$detail_list->append_column(my $col_arch = Gtk2::TreeViewColumn->new_with_attributes(N("Arch"), Gtk2::CellRendererText->new, 'text' => $pkg_columns{arch}));
$_->set_sizing('autosize') foreach $col_nm, $col_ver, $col_arch;
$nm_rdr->set_property('width-chars', '20');
+ $nm_rdr->set_property('ellipsize', 'end');
$detail_list_model->set_sort_column_id(0, 'ascending');
$detail_list->set_rules_hint(1);
#$detail_list->set_fixed_height_mode(1);