diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-07-05 15:43:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-07-05 15:43:19 +0000 |
commit | 4ac9bf13117dd59a86e4054ff52365902593cbdb (patch) | |
tree | d4a6fc60f51814e4fe912fd62d41a3b1bba4cfb0 /Rpmdrake | |
parent | 0d7a4d39d6ff05a853aba5dd2c6884a378f66ec3 (diff) | |
download | rpmdrake-4ac9bf13117dd59a86e4054ff52365902593cbdb.tar rpmdrake-4ac9bf13117dd59a86e4054ff52365902593cbdb.tar.gz rpmdrake-4ac9bf13117dd59a86e4054ff52365902593cbdb.tar.bz2 rpmdrake-4ac9bf13117dd59a86e4054ff52365902593cbdb.tar.xz rpmdrake-4ac9bf13117dd59a86e4054ff52365902593cbdb.zip |
(add_parent,set_node_state_tree) clean used model
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 61573bff..08391c89 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -184,7 +184,6 @@ sub set_node_state { my ($iter, $state, $model) = @_; ($state eq 'XXX' || !$state) and return; $pix{$state} ||= gtkcreate_pixbuf('state_' . $state); - $model ||= $w->{tree_model}; $model->set($iter, $pkg_columns{state_icon} => $pix{$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})); @@ -211,7 +210,7 @@ sub add_parent { }; $s = $s2; } - set_node_state($wtree{$s}, $state); #- use this state by default as tree is building. + set_node_state($wtree{$s}, $state, $w->{tree_model}); #- use this state by default as tree is building. # $wtree{$s}; } |