[gtk+] a11y: Partially update to using GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Partially update to using GdkEvent API
- Date: Tue, 19 Sep 2017 17:14:54 +0000 (UTC)
commit e5a3e95b8c64b1e61ccb5f7a5cc5390053c36bd2
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 25 16:58:20 2017 +0200
a11y: Partially update to using GdkEvent API
gtk/a11y/gtkaccessibility.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/a11y/gtkaccessibility.c b/gtk/a11y/gtkaccessibility.c
index bad3cd5..7f25442 100644
--- a/gtk/a11y/gtkaccessibility.c
+++ b/gtk/a11y/gtkaccessibility.c
@@ -147,14 +147,16 @@ gail_focus_watcher (GSignalInvocationHint *ihint,
GObject *object;
GtkWidget *widget;
GdkEvent *event;
+ GdkEventType event_type;
object = g_value_get_object (param_values + 0);
g_return_val_if_fail (GTK_IS_WIDGET(object), FALSE);
event = g_value_get_boxed (param_values + 1);
widget = GTK_WIDGET (object);
+ event_type = gdk_event_get_event_type (event);
- if (event->type == GDK_FOCUS_CHANGE)
+ if (event_type == GDK_FOCUS_CHANGE)
{
if (event->focus_change.in)
{
@@ -239,7 +241,7 @@ gail_focus_watcher (GSignalInvocationHint *ihint,
}
else
{
- if (event->type == GDK_MOTION_NOTIFY && gtk_widget_has_focus (widget))
+ if (event_type == GDK_MOTION_NOTIFY && gtk_widget_has_focus (widget))
{
if (widget == _focus_widget)
{
@@ -808,7 +810,7 @@ state_event_watcher (GSignalInvocationHint *hint,
return FALSE;
event = g_value_get_boxed (param_values + 1);
- if (event->type == GDK_WINDOW_STATE)
+ if (gdk_event_get_event_type ((GdkEvent *) event) == GDK_WINDOW_STATE)
return FALSE;
widget = GTK_WIDGET (object);
@@ -853,7 +855,7 @@ configure_event_watcher (GSignalInvocationHint *hint,
return FALSE;
event = g_value_get_boxed (param_values + 1);
- if (event->type != GDK_CONFIGURE)
+ if (gdk_event_get_event_type (event) != GDK_CONFIGURE)
return FALSE;
widget = GTK_WIDGET (object);
gtk_widget_get_allocation (widget, &allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]