aboutsummaryrefslogtreecommitdiffstats
path: root/AdminPanel/Rpmdragora
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo@mageia.org>2013-01-18 12:20:28 +0000
committerMatteo Pasotti <matteo@mageia.org>2013-01-18 12:20:28 +0000
commit08adb26fd0bf8cec4845cf4e46b4f13dda369444 (patch)
treed3bac38d3a6630bfb3fc277bfb43b7d356271d02 /AdminPanel/Rpmdragora
parent838eadb41d00bfed20a63de72fa27db908782e9c (diff)
downloadcolin-keep-08adb26fd0bf8cec4845cf4e46b4f13dda369444.tar
colin-keep-08adb26fd0bf8cec4845cf4e46b4f13dda369444.tar.gz
colin-keep-08adb26fd0bf8cec4845cf4e46b4f13dda369444.tar.bz2
colin-keep-08adb26fd0bf8cec4845cf4e46b4f13dda369444.tar.xz
colin-keep-08adb26fd0bf8cec4845cf4e46b4f13dda369444.zip
added missing pkg status column to detail_list
Diffstat (limited to 'AdminPanel/Rpmdragora')
-rw-r--r--AdminPanel/Rpmdragora/gui.pm13
1 files changed, 10 insertions, 3 deletions
diff --git a/AdminPanel/Rpmdragora/gui.pm b/AdminPanel/Rpmdragora/gui.pm
index 2e940c8..dd25235 100644
--- a/AdminPanel/Rpmdragora/gui.pm
+++ b/AdminPanel/Rpmdragora/gui.pm
@@ -408,8 +408,14 @@ sub set_node_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($state,"/usr/share/rpmdrake/icons/state_$state.png");
- $iter->addCell("".to_bool(member($state, qw(base installed to_install))),'');
- $iter->addCell("".to_bool($state ne 'base'),'');
+ if(to_bool(member($state, qw(base installed to_install)))){
+ $iter->cell(0)->setLabel('x');
+ }else{
+ $iter->cell(0)->setLabel('');
+ }
+ if(!to_bool($state ne 'base')){
+ $iter->cell(0)->setLabel('-');
+ }
}
sub set_leaf_state {
@@ -473,7 +479,8 @@ sub add_node {
$release = "" if(!defined($release));
$arch = "" if(!defined($arch));
#my $newTableItem = new yui::YTableItem(format_name_n_summary($name, get_summary($leaf)),
- my $newTableItem = new yui::YTableItem($name."\n".get_summary($leaf),
+ my $newTableItem = new yui::YTableItem($state,
+ $name."\n".get_summary($leaf),
$version,
$release,
$arch);