[gtk+/wip/carlosg/private-event-structs] window accessible: Use GdkEvent API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/private-event-structs] window accessible: Use GdkEvent API
- Date: Sat, 26 Aug 2017 14:59:10 +0000 (UTC)
commit 903646259d63854921a0c72db58f01120bb4a036
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]