[gtk+] window accessible: Use GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window accessible: Use GdkEvent API
- Date: Tue, 19 Sep 2017 17:16:20 +0000 (UTC)
commit 9794dc5628573ec595122d563e45324b88930345
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 26 10:50:50 2017 -0400
window accessible: Use GdkEvent API
gtk/a11y/gtkwindowaccessible.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c
index 3941b38..572ee74 100644
--- a/gtk/a11y/gtkwindowaccessible.c
+++ b/gtk/a11y/gtkwindowaccessible.c
@@ -77,10 +77,12 @@ window_state_event_cb (GtkWidget *widget,
GdkEventWindowState *event)
{
AtkObject* obj;
+ GdkWindowState changed, new_state;
+ gdk_event_get_window_state ((GdkEvent *)event, &changed, &new_state);
obj = gtk_widget_get_accessible (widget);
atk_object_notify_state_change (obj, ATK_STATE_ICONIFIED,
- (event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) != 0);
+ (new_state & GDK_WINDOW_STATE_ICONIFIED) != 0);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]