[gtk+] gdkwindow: Fix list_insert_link_before
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkwindow: Fix list_insert_link_before
- Date: Mon, 21 Sep 2015 15:00:09 +0000 (UTC)
commit ee883a2ef57f675ad70ddee94355157e48ddfb89
Author: Alexander Larsson <alexl redhat com>
Date: Mon Sep 21 16:58:41 2015 +0200
gdkwindow: Fix list_insert_link_before
We forgot to set prev->next to the new link
gdk/gdkwindow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 89ed898..2f7ee2d 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -267,6 +267,9 @@ list_insert_link_before (GList *list,
link->prev = sibling->prev;
sibling->prev = link;
+ if (link->prev)
+ link->prev->next = link;
+
return list;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]