aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-01 15:46:39 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-01 15:46:39 +0000
commit1a1257453ed71d17df91031922c462073a4848e7 (patch)
tree3d3cbb202ee3b1daeadafef14f409fe44ddb052c /Rpmdrake/edit_urpm_sources.pm
parent67025e7bfe767d0943245f4395666af296b3bf74 (diff)
downloadrpmdrake-1a1257453ed71d17df91031922c462073a4848e7.tar
rpmdrake-1a1257453ed71d17df91031922c462073a4848e7.tar.gz
rpmdrake-1a1257453ed71d17df91031922c462073a4848e7.tar.bz2
rpmdrake-1a1257453ed71d17df91031922c462073a4848e7.tar.xz
rpmdrake-1a1257453ed71d17df91031922c462073a4848e7.zip
(selected_rows) introduce it to (based on selrow template)
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-rwxr-xr-xRpmdrake/edit_urpm_sources.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index e0c4fb7e..4af06bdc 100755
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -54,6 +54,14 @@ sub selrow {
return $row;
}
+sub selected_rows {
+ my ($o_list_tv) = @_;
+ defined $o_list_tv or $o_list_tv = $list_tv;
+ my (@rows) = $o_list_tv->get_selection->get_selected_rows;
+ return -1 if $#rows == -1;
+ map { $_->to_string } @rows;
+}
+
sub remove_row {
my ($model, $path_str) = @_;
my $iter = $model->get_iter_from_string($path_str);