aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-11-17 17:58:44 +0000
committerThierry Vignaud <tv@mandriva.org>2008-11-17 17:58:44 +0000
commit506673095bbaef50974de6352535239739ba3b04 (patch)
tree6ecfef53860c112a38fceb08e6f44ee2eb0f2898 /Rpmdrake
parent6b8c4683ca8b6c87ca4f654925c03699c024c66e (diff)
downloadrpmdrake-506673095bbaef50974de6352535239739ba3b04.tar
rpmdrake-506673095bbaef50974de6352535239739ba3b04.tar.gz
rpmdrake-506673095bbaef50974de6352535239739ba3b04.tar.bz2
rpmdrake-506673095bbaef50974de6352535239739ba3b04.tar.xz
rpmdrake-506673095bbaef50974de6352535239739ba3b04.zip
(add_callback) there's no point in enabling one to tag media as update
media when adding whole distro media
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 8789883e..82d9316b 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -228,7 +228,12 @@ sub add_callback() {
$url_entry->() ],
if_($info->{loginpass}, $loginpass_entries->()),
sub {
- [ $info->{distrib_check} = $cb1 = gtknew('CheckButton', text => N("Create media for a whole distribution"))
+ [ $info->{distrib_check} = $cb1 = gtknew('CheckButton', text => N("Create media for a whole distribution"),
+ toggled => sub {
+ return if !$cb2;
+ my ($w) = @_;
+ $info->{update_check}->set_sensitive(!$w->get_active);
+ })
];
}->(),
sub {