From da175dfbcb3000129cba572559b8ca602432f449 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 13 Mar 2007 15:28:41 +0000 Subject: (downwards_callback, upwards_callback) refresh button states after moving a row (so that eg "up" button is disabled once top of list is reached) --- Rpmdrake/edit_urpm_sources.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Rpmdrake/edit_urpm_sources.pm') 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 -- cgit v1.2.1