aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--AdminPanel/Rpmdragora/gui.pm13
-rwxr-xr-xmodules/rpmdragora/rpmdragora2
2 files changed, 12 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);
diff --git a/modules/rpmdragora/rpmdragora b/modules/rpmdragora/rpmdragora
index 3fdeccb..f0a8ede 100755
--- a/modules/rpmdragora/rpmdragora
+++ b/modules/rpmdragora/rpmdragora
@@ -411,6 +411,8 @@ sub run_treeview_dialog {
#$col_sel->set_sizing('fixed');
#$col_sel->set_sort_column_id($pkg_columns{selected});
+ $detail_list_header->addColumn('');
+
my $display_arch_col = to_bool(arch() =~ /64/);
my @columns = (qw(name version release), if_($display_arch_col, 'arch'));