diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:12:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:12:11 +0000 |
commit | 28c17748e12d90613a80f56a879336715c7f440a (patch) | |
tree | 61e57a5452c92a6c5709f9a172022c48db2ef0f6 | |
parent | 90883740c6e315521b6e45563758f06b0fe39891 (diff) | |
download | rpmdrake-28c17748e12d90613a80f56a879336715c7f440a.tar rpmdrake-28c17748e12d90613a80f56a879336715c7f440a.tar.gz rpmdrake-28c17748e12d90613a80f56a879336715c7f440a.tar.bz2 rpmdrake-28c17748e12d90613a80f56a879336715c7f440a.tar.xz rpmdrake-28c17748e12d90613a80f56a879336715c7f440a.zip |
(run_treeview_dialog) when a group is selected, fill in the packages list
-rwxr-xr-x | rpmdrake | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -978,6 +978,16 @@ or you already installed all of them.")); undef $cursor_to_restore; }, ) foreach $tree, $detail_tree; + $tree->get_selection->signal_connect(changed => sub { + my ($model, $iter) = $_[0]->get_selected; + $model && $iter or return; + my $group = $model->get($iter, 0); + my $parent = $iter; + while ($parent = $model->iter_parent($parent)) { + $group = join('|', $model->get($parent, 0), $group); + } + $options->{add_nodes}->(@{$elems{$group}}); + }); $tree->signal_connect( row_expanded => sub { my ($tree, $iter, $path) = @_; |