aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-13 15:28:41 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-13 15:28:41 +0000
commitda175dfbcb3000129cba572559b8ca602432f449 (patch)
tree55a20668347229c47dad8d08d47bea91fbe849aa
parent2c1b1e2ed63c05e674e9752961881f1e5285cee3 (diff)
downloadrpmdrake-da175dfbcb3000129cba572559b8ca602432f449.tar
rpmdrake-da175dfbcb3000129cba572559b8ca602432f449.tar.gz
rpmdrake-da175dfbcb3000129cba572559b8ca602432f449.tar.bz2
rpmdrake-da175dfbcb3000129cba572559b8ca602432f449.tar.xz
rpmdrake-da175dfbcb3000129cba572559b8ca602432f449.zip
(downwards_callback, upwards_callback) refresh button states after moving a
row (so that eg "up" button is disabled once top of list is reached)
-rwxr-xr-xRpmdrake/edit_urpm_sources.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 1c41ce55..c6903ce1 100755
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -393,6 +393,7 @@ sub upwards_callback() {
my $model = $list_tv->get_model;
my $prev = $model->get_iter_from_string($rows[0] - 1);
defined $prev and renum_media($model, $model->get_iter_from_string($rows[0]), $prev);
+ $list_tv->get_selection->signal_emit('changed');
}
sub downwards_callback() {
@@ -402,6 +403,7 @@ sub downwards_callback() {
my $iter = $model->get_iter_from_string($rows[0]);
my $next = $model->iter_next($iter);
defined $next and renum_media($model, $iter, $next);
+ $list_tv->get_selection->signal_emit('changed');
}
#- returns the name of the media for which edition failed, or undef on success