aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-27 14:00:23 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-27 14:00:23 +0000
commitcfe74ef9cbf9abe3828cee37149e206b90f4e74e (patch)
treee50c9cdd1dbad5e99ba4a069eea4438d8489c266 /Rpmdrake
parenta36cb2315aa1cee9d7e3ffad3d0014e4b22b5e0c (diff)
downloadrpmdrake-cfe74ef9cbf9abe3828cee37149e206b90f4e74e.tar
rpmdrake-cfe74ef9cbf9abe3828cee37149e206b90f4e74e.tar.gz
rpmdrake-cfe74ef9cbf9abe3828cee37149e206b90f4e74e.tar.bz2
rpmdrake-cfe74ef9cbf9abe3828cee37149e206b90f4e74e.tar.xz
rpmdrake-cfe74ef9cbf9abe3828cee37149e206b90f4e74e.zip
make select checkbox not activatable for base packages instead of popup an explanation about not possible
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 3725860c..debd54d9 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -63,6 +63,7 @@ our %pkg_columns = (
version => 5,
release => 6,
'arch' => 7,
+ selectable => 8,
);
@@ -253,6 +254,7 @@ sub set_node_state {
$model->set($iter, $pkg_columns{state_icon} => $pix{$state});
$model->set($iter, $pkg_columns{state} => $state);
$model->set($iter, $pkg_columns{selected} => to_bool(member($state, qw(base installed to_install)))); #$pkg->{selected}));
+ $model->set($iter, $pkg_columns{selectable} => to_bool($state ne 'base'));
}
sub set_leaf_state {