[gnome-builder] tabs: remove the first link, not link as data.



commit e22c91832ce7113b0e7f55ff162829668be0f843
Author: Christian Hergert <christian hergert me>
Date:   Wed Sep 10 15:13:24 2014 -0700

    tabs: remove the first link, not link as data.

 src/tabs/gb-multi-notebook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tabs/gb-multi-notebook.c b/src/tabs/gb-multi-notebook.c
index 28a0721..1bbc888 100644
--- a/src/tabs/gb-multi-notebook.c
+++ b/src/tabs/gb-multi-notebook.c
@@ -334,7 +334,7 @@ remove_unused_notebooks (GbMultiNotebook *mnb)
       g_assert (list);
 
       g_object_unref (list->data);
-      list = g_slist_remove (list, list);
+      list = g_slist_remove_link (list, list);
     }
 
   has_unused = !!list;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]