From 8b014b80cec1e493d1deadcb4c696d12f174e912 Mon Sep 17 00:00:00 2001 From: Matteo Pasotti Date: Fri, 11 Jan 2013 16:52:39 +0000 Subject: - fixed detail_list columns --- AdminPanel/Rpmdragora/gui.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'AdminPanel/Rpmdragora') 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 ]); -- cgit v1.2.1