[2568] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH] Correctly maintain the doubly linked list in owl_widnow

daemon@ATHENA.MIT.EDU (David Benjamin)
Sun Aug 1 17:18:07 2010

From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Sun,  1 Aug 2010 14:17:59 -0700

Oops. This must have only barely worked because we've been deleting
things in the right order.
---
 window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/window.c b/window.c
index a31805c..221b42f 100644
--- a/window.c
+++ b/window.c
@@ -200,6 +200,8 @@ static void _owl_window_link(owl_window *w, owl_window *parent)
   if (parent) {
     w->parent = parent;
     w->next = parent->child;
+    if (w->next)
+      w->next->prev = w;
     parent->child = w;
     g_object_ref (w);
   }
-- 
1.7.2.1.7.gf50fd


home help back first fref pref prev next nref lref last post