[gtk+] Don't use g_slist_next in gtkstock.c



commit a863b0657686698ecb7d83683ffba4507d602e34
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 19 20:34:58 2015 -0400

    Don't use g_slist_next in gtkstock.c
    
    We generally use ->next directly.

 gtk/deprecated/gtkstock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/deprecated/gtkstock.c b/gtk/deprecated/gtkstock.c
index 71f3c69..bfc75e7 100644
--- a/gtk/deprecated/gtkstock.c
+++ b/gtk/deprecated/gtkstock.c
@@ -255,7 +255,7 @@ gtk_stock_list_ids (void)
     {
       GList *next;
 
-      next = g_list_next (ids);
+      next = ids->next;
 
       if (last_id && strcmp (ids->data, last_id) == 0)
         {
@@ -268,7 +268,7 @@ gtk_stock_list_ids (void)
         }
 
       g_list_free_1 (ids);
-      
+
       ids = next;
     }
 


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