aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel/Rpmdragora
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo@mageia.org>2013-01-11 16:52:39 +0000
committerMatteo Pasotti <matteo@mageia.org>2013-01-11 16:52:39 +0000
commit8b014b80cec1e493d1deadcb4c696d12f174e912 (patch)
treed2d1d7c67dab2cc6d7f6ac5fd29a98c02f2aa883 /AdminPanel/Rpmdragora
parent96eb75a0db4fd879415f21b2b38a2c2927e50d43 (diff)
downloadcolin-keep-8b014b80cec1e493d1deadcb4c696d12f174e912.tar
colin-keep-8b014b80cec1e493d1deadcb4c696d12f174e912.tar.gz
colin-keep-8b014b80cec1e493d1deadcb4c696d12f174e912.tar.bz2
colin-keep-8b014b80cec1e493d1deadcb4c696d12f174e912.tar.xz
colin-keep-8b014b80cec1e493d1deadcb4c696d12f174e912.zip
- fixed detail_list columns
Diffstat (limited to 'AdminPanel/Rpmdragora')
-rw-r--r--AdminPanel/Rpmdragora/gui.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/AdminPanel/Rpmdragora/gui.pm b/AdminPanel/Rpmdragora/gui.pm
index b5f0300..3731871 100644
--- a/AdminPanel/Rpmdragora/gui.pm
+++ b/AdminPanel/Rpmdragora/gui.pm
@@ -412,8 +412,7 @@ sub set_node_state {
#$model->set($iter, $pkg_columns{state} => $state);
#$model->set($iter, $pkg_columns{selected} => to_bool(member($state, qw(base installed to_install)))); #$pkg->{selected}));
#$model->set($iter, $pkg_columns{selectable} => to_bool($state ne 'base'));
- $iter->addCell('',"/home/matteo/workspace/AdminPanel/trunk/modules/rpmdragora/icons/state_$state.png");
- $iter->addCell($state,'');
+ $iter->addCell($state,"/home/matteo/workspace/AdminPanel/trunk/modules/rpmdragora/icons/state_$state.png");
$iter->addCell("".to_bool(member($state, qw(base installed to_install))),'');
$iter->addCell("".to_bool($state ne 'base'),'');
}
@@ -477,13 +476,12 @@ sub add_node {
$version = "" if(!defined($version));
$release = "" if(!defined($release));
$arch = "" if(!defined($arch));
- my $newTableItem = new yui::YTableItem($leaf,
- format_name_n_summary($name, get_summary($leaf)),
+ my $newTableItem = new yui::YTableItem(format_name_n_summary($name, get_summary($leaf)),
$version,
$release,
$arch);
$w->{detail_list}->addItem($newTableItem);
- set_node_state($newTableItem, $state, $w->{detail_list_model});
+ set_node_state($newTableItem, $state, $w->{detail_list});
$ptree{$leaf} = [ $newTableItem->label() ];
} else {
$iter = $w->{tree_model}->append_set(add_parent($w->{tree},$root, $state), [ $grp_columns{label} => $leaf ]);