[gtk+] Fix warnings in gdk_window_restack



commit 587bc97d9c88d2eae56cfef1a00e2933f8ea3502
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Sep 4 11:08:46 2009 +0200

    Fix warnings in gdk_window_restack

 gdk/gdkwindow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index bc0a505..a673be7 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6498,7 +6498,8 @@ gdk_window_restack (GdkWindow     *window,
 
   if (gdk_window_is_toplevel (private))
     {
-      g_return_if_fail (gdk_window_is_toplevel (sibling));
+      g_return_if_fail (gdk_window_is_toplevel (GDK_WINDOW_OBJECT (sibling)));
+      impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
       impl_iface->restack_toplevel (window, sibling, above);
       return;
     }



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