[gtk/present-toplevel-2: 27/59] surface: Stop using surface types



commit 27ce08340f6213073d99460cc84b379837284c60
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 9 13:00:08 2020 -0700

    surface: Stop using surface types

 gdk/gdksurface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 28f782f197..15bc3a6292 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -267,7 +267,7 @@ gdk_surface_layout_popup_helper (GdkSurface     *surface,
   gboolean flipped_y;
   int x, y;
 
-  g_return_if_fail (surface->surface_type == GDK_SURFACE_POPUP);
+  g_return_if_fail (GDK_IS_POPUP (surface));
 
   root_rect = *gdk_popup_layout_get_anchor_rect (layout);
   gdk_surface_get_root_coords (surface->parent,


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