diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-13 15:28:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-13 15:28:41 +0000 |
commit | da175dfbcb3000129cba572559b8ca602432f449 (patch) | |
tree | 55a20668347229c47dad8d08d47bea91fbe849aa | |
parent | 2c1b1e2ed63c05e674e9752961881f1e5285cee3 (diff) | |
download | rpmdrake-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-x | Rpmdrake/edit_urpm_sources.pm | 2 |
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 |