diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-06-18 13:50:48 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-06-18 13:50:48 +0000 |
commit | edfc2469956da350f3ea8c196b5d07d46dcdf2d2 (patch) | |
tree | 25edf618280faf925caf4096dcedb98e94965f91 | |
parent | 4040cbdff0639cb6766389c223a18b61f210bcda (diff) | |
download | rpmdrake-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)
-rwxr-xr-x | MandrivaUpdate | 4 |
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")); |