aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-06-18 13:50:48 +0000
committerThierry Vignaud <tv@mandriva.org>2008-06-18 13:50:48 +0000
commitedfc2469956da350f3ea8c196b5d07d46dcdf2d2 (patch)
tree25edf618280faf925caf4096dcedb98e94965f91 /MandrivaUpdate
parent4040cbdff0639cb6766389c223a18b61f210bcda (diff)
downloadrpmdrake-edfc2469956da350f3ea8c196b5d07d46dcdf2d2.tar
rpmdrake-edfc2469956da350f3ea8c196b5d07d46dcdf2d2.tar.gz
rpmdrake-edfc2469956da350f3ea8c196b5d07d46dcdf2d2.tar.bz2
rpmdrake-edfc2469956da350f3ea8c196b5d07d46dcdf2d2.tar.xz
rpmdrake-edfc2469956da350f3ea8c196b5d07d46dcdf2d2.zip
(toggle) do not hardcode columns IDs (needed for next commit)
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate4
1 files changed, 2 insertions, 2 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index b3dc7120..c2443d51 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -99,11 +99,11 @@ sub toggle {
toggle_nodes($w->{real_window}->window, $list->get_model, sub {
my ($leaf, $state, $model) = @_;
$done = 1;
- $list->{data}[$data{$leaf}][0] = $pkgs->{$name}{selected};
+ $list->{data}[$data{$leaf}][$pkg_columns{selected}] = $pkgs->{$name}{selected};
},
$old_status, @names);
# handle canceling:
- $list->{data}[$data{$name}][0] = !$list->{data}[$data{$name}][0] if !$done;
+ $list->{data}[$data{$name}][$pkg_columns{selected}] = !$list->{data}[$data{$name}][$pkg_columns{selected}] if !$done;
}
$w = ugtk2->new(N("Software Management"));