diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-10-11 15:35:29 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-12-14 00:58:32 +0100 |
commit | b9db0b55cb68985185feff891146beef6456c427 (patch) | |
tree | 25b21f1ea5ce6637e92a0567ad511168c58fc96a /gtk/a11y | |
parent | 9aba77e31b9f825bd1d67b28c1c887d350f7affc (diff) | |
download | gtk+-b9db0b55cb68985185feff891146beef6456c427.tar.gz |
gdk: Refurbish GdkEvent struct hierarchy
Make all specific event structs contain a GdkEventAny, so the base
struct can be extended without modifying structs all over the place.
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/gtkentryaccessible.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c index 88f39171f0..282f305e63 100644 --- a/gtk/a11y/gtkentryaccessible.c +++ b/gtk/a11y/gtkentryaccessible.c @@ -242,10 +242,10 @@ gtk_entry_icon_accessible_do_action (AtkAction *action, gtk_entry_get_icon_area (gtk_entry, icon->pos, &icon_area); memset (&event, 0, sizeof (event)); - event.button.type = GDK_BUTTON_PRESS; - event.button.window = gtk_widget_get_window (widget); + event.any.type = GDK_BUTTON_PRESS; + event.any.window = gtk_widget_get_window (widget); event.button.button = 1; - event.button.send_event = TRUE; + event.any.send_event = TRUE; event.button.time = GDK_CURRENT_TIME; event.button.x = icon_area.x; event.button.y = icon_area.y; |