[gtk/present-toplevel-2: 7/59] 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: 7/59] demo: stop using gdk_surface_get_state
- Date: Thu, 12 Mar 2020 18:58:00 +0000 (UTC)
commit 703d69692f1199555297d9bed32e8aba8fd871b0
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]