diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-11-17 17:58:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-11-17 17:58:44 +0000 |
commit | 506673095bbaef50974de6352535239739ba3b04 (patch) | |
tree | 6ecfef53860c112a38fceb08e6f44ee2eb0f2898 | |
parent | 6b8c4683ca8b6c87ca4f654925c03699c024c66e (diff) | |
download | rpmdrake-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
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,7 @@ - drop diagnostics, strict, vars and warnings pragmas (should help #45361) +- edit_urpm_sources: + o prevent enabling one to tag media as update media when adding + whole distro media - rpmdrake: o update GUI package list 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 { |