[gtk+] widget accessible: Use GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget accessible: Use GdkEvent API
- Date: Tue, 19 Sep 2017 17:16:15 +0000 (UTC)
commit 16781c85984e303d40dc380d690165a14741b496
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 26 10:50:34 2017 -0400
widget accessible: Use GdkEvent API
gtk/a11y/gtkwidgetaccessible.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c
index e3b9ee8..499976f 100644
--- a/gtk/a11y/gtkwidgetaccessible.c
+++ b/gtk/a11y/gtkwidgetaccessible.c
@@ -49,10 +49,12 @@ focus_cb (GtkWidget *widget,
GdkEventFocus *event)
{
AtkObject *obj;
+ gboolean in;
obj = gtk_widget_get_accessible (widget);
- g_signal_emit_by_name (obj, "focus-event", event->in);
+ gdk_event_get_focus_in ((GdkEvent *)event, &in);
+ g_signal_emit_by_name (obj, "focus-event", in);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]