[gtk/present-toplevel-2: 10/79] demo: stop using gdk_surface_get_state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 10/79] demo: stop using gdk_surface_get_state
- Date: Mon, 9 Mar 2020 15:32:25 +0000 (UTC)
commit 524ad661ee3f6f5c1ba5956ae6ba3fa94cd331ab
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]