[gtk+] Don't use g_slist_next in the windows backend



commit 364d1a574bc38f33f3580a645e74e7502f845076
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 19 20:30:33 2015 -0400

    Don't use g_slist_next in the windows backend
    
    We generally use ->next directly.

 gdk/win32/gdkevents-win32.c |    8 ++++----
 gdk/win32/gdkwindow-win32.c |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 82e9368..0390a1e 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -1034,7 +1034,7 @@ show_window_recurse (GdkWindow *window, gboolean hide_window)
              child = children->data;
              show_window_recurse (child, hide_window);
 
-             children = g_slist_next (children);
+             children = children->next;
            }
        }
 
@@ -1181,8 +1181,8 @@ find_common_ancestor (GdkWindow *win1,
   while (list1 && list2 && (list1->data == list2->data))
     {
       tmp = (GdkWindow *)list1->data;
-      list1 = g_list_next (list1);
-      list2 = g_list_next (list2);
+      list1 = list1->next;
+      list2 = list2->next;
     }
   g_list_free (path1);
   g_list_free (path2);
@@ -1280,7 +1280,7 @@ synthesize_crossing_events (GdkDisplay                 *display,
          while (list)
            {
              win = (GdkWindow *)list->data;
-             list = g_list_next (list);
+             list = list->next;
              if (list)
                next = (GdkWindow *)list->data;
              else
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 67519aa..85bdb1f 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -826,7 +826,7 @@ gdk_win32_window_destroy (GdkWindow *window,
       GdkWindowImplWin32 *child_impl = GDK_WINDOW_IMPL_WIN32 (GDK_WINDOW (child)->impl);
 
       child_impl->transient_owner = NULL;
-      tmp = g_slist_next (tmp);
+      tmp = tmp->next;
     }
   g_slist_free (window_impl->transient_children);
   window_impl->transient_children = NULL;
@@ -2299,7 +2299,7 @@ gdk_win32_window_set_icon_list (GdkWindow *window,
          small_diff = diff;
        }
 
-      pixbufs = g_list_next (pixbufs);
+      pixbufs = pixbufs->next;
     }
 
   /* Create the icons */


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