From 4ac9bf13117dd59a86e4054ff52365902593cbdb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 5 Jul 2007 15:43:19 +0000 Subject: (add_parent,set_node_state_tree) clean used model --- Rpmdrake/gui.pm | 3 +-- 1 file changed, 1 insertion(+), 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}; } -- cgit v1.2.1