From edfc2469956da350f3ea8c196b5d07d46dcdf2d2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 18 Jun 2008 13:50:48 +0000 Subject: (toggle) do not hardcode columns IDs (needed for next commit) --- MandrivaUpdate | 4 ++-- 1 file 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")); -- cgit v1.2.1