diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-18 15:09:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-18 15:09:06 +0000 |
commit | 4676e0c59f32e2224fb7365a413e34e6f6519922 (patch) | |
tree | 2e3aa10adc822bc651bc1e0b5a30e629e2648048 /MandrivaUpdate | |
parent | 193c77ec7637d18fcd6275f8431dd7e08172c07c (diff) | |
download | rpmdrake-4676e0c59f32e2224fb7365a413e34e6f6519922.tar rpmdrake-4676e0c59f32e2224fb7365a413e34e6f6519922.tar.gz rpmdrake-4676e0c59f32e2224fb7365a413e34e6f6519922.tar.bz2 rpmdrake-4676e0c59f32e2224fb7365a413e34e6f6519922.tar.xz rpmdrake-4676e0c59f32e2224fb7365a413e34e6f6519922.zip |
(run_treeview_dialog) do not harcode column id and fix it (in
'toggled' signal handler too) ;
this means we got the right cell renderer and thus the 'toggled'
signal handler does be connected ;
this means we stop ignoring selected/unselected packages (embarassing
bug #29835)
(this regression was introduced in r242980 on 2008-06-18:
"(refresh_packages_list, run_treeview_dialog) show type of update in
mandrivaupdate: fix, security, ... (spec 216)")
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-x | MandrivaUpdate | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate index e84ecb90..65d8b43b 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -212,7 +212,7 @@ sub run_treeview_dialog { $list->set_rules_hint(1); - my $bool_col = $list->get_column(0); + my $bool_col = $list->get_column($pkg_columns{selected}); $bool_col->set_fixed_width(24); $bool_col->set_sizing('fixed'); $bool_col->set_sort_column_id($pkg_columns{selected}); @@ -259,7 +259,7 @@ sub run_treeview_dialog { my $cell = ($bool_col->get_cell_renderers)[0]; $cell->signal_connect(toggled => sub { my ($_cell, $text_path) = @_; - my ($_val, $name) = @{$list->{data}[$text_path]}; + my $name = @{$list->{data}[$text_path]}[$pkg_columns{text}]; gtkset_mousecursor_wait($w->{real_window}->window); my $_guard = before_leaving(sub { gtkset_mousecursor_normal($w->{real_window}->window) }); toggle($list, $name); |