[gtk/present-toplevel-2: 9/79] a11y: Stop using gdk_surface_get_state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 9/79] a11y: Stop using gdk_surface_get_state
- Date: Mon, 9 Mar 2020 15:32:20 +0000 (UTC)
commit 828876a7c24e1d16a36674fcc419f544097132d5
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 29 20:44:02 2020 -0500
a11y: Stop using gdk_surface_get_state
gtk/a11y/gtkwindowaccessible.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c
index f5407d4812..134820a7ec 100644
--- a/gtk/a11y/gtkwindowaccessible.c
+++ b/gtk/a11y/gtkwindowaccessible.c
@@ -229,9 +229,9 @@ gtk_window_accessible_ref_state_set (AtkObject *accessible)
atk_state_set_add_state (state_set, ATK_STATE_ACTIVE);
gdk_surface = gtk_native_get_surface (GTK_NATIVE (window));
- if (gdk_surface)
+ if (GDK_IS_TOPLEVEL (gdk_surface))
{
- state = gdk_surface_get_state (gdk_surface);
+ state = gdk_toplevel_get_state (GDK_TOPLEVEL (gdk_surface));
if (state & GDK_SURFACE_STATE_MINIMIZED)
atk_state_set_add_state (state_set, ATK_STATE_ICONIFIED);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]