[gtk/present-toplevel-2: 30/70] testgtk: Stop using gdk_surface_get_state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 30/70] testgtk: Stop using gdk_surface_get_state
- Date: Wed, 4 Mar 2020 00:08:00 +0000 (UTC)
commit 3a09dec60a86599ec928299c82c5b91759252de4
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 1 12:41:25 2020 -0500
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", ", ",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]