From 8e0ad728756740d570db8be83478ccf4bd337d33 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 1 Mar 2020 12:41:25 -0500 Subject: [PATCH] testgtk: Stop using gdk_surface_get_state --- tests/testgtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testgtk.c b/tests/testgtk.c index 77fa65e7f0..d160d68073 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -4736,7 +4736,7 @@ surface_state_callback (GdkSurface *window, gchar *msg; GdkSurfaceState new_state; - new_state = gdk_surface_get_state (window); + new_state = gdk_toplevel_get_state (GDK_TOPLEVEL (window)); msg = g_strconcat ((const char *)g_object_get_data (G_OBJECT (label), "title"), ": ", (new_state & GDK_SURFACE_STATE_WITHDRAWN) ? "withdrawn" : "not withdrawn", ", ",