aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-26 17:16:43 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-26 17:16:43 +0000
commit89fa9b7989604c548090dd74017c8a0a532c829d (patch)
tree296808f9e6f11b43f0ee0dec67aba0490f682d25
parentdb53dea6368ee53b6f0cf5077310ab7b4ad85aee (diff)
downloadrpmdrake-89fa9b7989604c548090dd74017c8a0a532c829d.tar
rpmdrake-89fa9b7989604c548090dd74017c8a0a532c829d.tar.gz
rpmdrake-89fa9b7989604c548090dd74017c8a0a532c829d.tar.bz2
rpmdrake-89fa9b7989604c548090dd74017c8a0a532c829d.tar.xz
rpmdrake-89fa9b7989604c548090dd74017c8a0a532c829d.zip
- properly size new columns
- make pretty column use all availlable space, else ellipsize
-rwxr-xr-xMandrivaUpdate13
1 files changed, 13 insertions, 0 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index dfeaa68d..10dbed0a 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -184,6 +184,19 @@ sub run_treeview_dialog {
$list->set_rules_hint(1);
$list->get_column(0)->set_fixed_width(24);
$list->get_column(0)->set_sizing('fixed');
+
+ # -1 because actual widget count differs from TreeModel one due to the hidden column:
+ foreach (@pkg_columns{qw(short_name version arch)}) {
+ my $col = $list->get_column($_-1);
+ ($col->get_cell_renderers)[0]->set_property('xpad', '6');
+ $col->set_sizing('autosize');
+ }
+
+ my $pretty_column = $list->get_column($pkg_columns{short_name}-1);
+ $pretty_column->set_resizable(1);
+ ($pretty_column->get_cell_renderers)[0]->set_property('ellipsize', 'end');
+ $pretty_column->set_property('expand', '1');
+
$list->get_selection->signal_connect(changed => sub {
my ($model, $iter) = $_[0]->get_selected;
$model && $iter or return;