aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:12:11 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:12:11 +0000
commit28c17748e12d90613a80f56a879336715c7f440a (patch)
tree61e57a5452c92a6c5709f9a172022c48db2ef0f6
parent90883740c6e315521b6e45563758f06b0fe39891 (diff)
downloadrpmdrake-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-xrpmdrake10
1 files changed, 10 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 807a2e76..672163ef 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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) = @_;