summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-05-25 11:06:33 (GMT)
committerAlexander Larsson <alexl@redhat.com>2012-05-25 12:15:00 (GMT)
commit7ece2dfcb594c971ec18f819e54c32c6a7759ec8 (patch)
treee178d9371a74bb742984294f12db9ce5c846cec9
parent4f369213e334cbfaf74a57d2ae90745f9a7d483c (diff)
downloadegg-list-box-7ece2dfcb594c971ec18f819e54c32c6a7759ec8.tar.gz
egg-list-box-7ece2dfcb594c971ec18f819e54c32c6a7759ec8.tar.xz
Fix child_changed update_separator code
When we move a child, three childrens separators may be affected. The moved child, the one after the new position, and the one *after* the previous position (as it got a new before). However, we were looking at the one before the previous location => bug.
-rw-r--r--egg-list-box.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/egg-list-box.vala b/egg-list-box.vala
index 373a75f..21d1340 100644
--- a/egg-list-box.vala
+++ b/egg-list-box.vala
@@ -139,7 +139,7 @@ public class Egg.ListBox : Container {
if (info == null)
return;
- var prev_next = get_previous_visible (info.iter);
+ var prev_next = get_next_visible (info.iter);
if (sort_func != null) {
children.sort_changed (info.iter, do_sort);