[gtk/present-toplevel-2: 73/178] demo: stop using gdk_surface_get_state



commit 59e44a26d5231fe5da83c46263a4565d10abad17
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 29 20:44:19 2020 -0500

    demo: stop using gdk_surface_get_state

 demos/gtk-demo/application.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c
index d556e6d3ca..e8cac106f3 100644
--- a/demos/gtk-demo/application.c
+++ b/demos/gtk-demo/application.c
@@ -477,7 +477,7 @@ surface_state_changed (GtkWidget *widget)
   DemoApplicationWindow *window = (DemoApplicationWindow *)widget;
   GdkSurfaceState new_state;
 
-  new_state = gdk_surface_get_state (gtk_native_get_surface (GTK_NATIVE (widget)));
+  new_state = gdk_toplevel_get_state (GDK_TOPLEVEL (gtk_native_get_surface (GTK_NATIVE (widget))));
   window->maximized = (new_state & GDK_SURFACE_STATE_MAXIMIZED) != 0;
   window->fullscreen = (new_state & GDK_SURFACE_STATE_FULLSCREEN) != 0;
 }


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