Commit 659a6f3a authored by Lionel Landwerlin's avatar Lionel Landwerlin

gdk: event: add get_window() method

https://bugzilla.gnome.org/show_bug.cgi?id=707844
parent 6c0769a4
......@@ -798,6 +798,24 @@ gdk_event_free (GdkEvent *event)
g_slice_free (GdkEventPrivate, (GdkEventPrivate*) event);
}
/**
* gdk_event_get_window:
* @event: a #GdkEvent
*
* Extracts the #GdkWindow associated with an event.
*
* Return value: (transfer none): The #GdkWindow associated with the event
*
* Since: 3.10
*/
GdkWindow *
gdk_event_get_window (const GdkEvent *event)
{
g_return_val_if_fail (event != NULL, NULL);
return event->any.window;
}
/**
* gdk_event_get_time:
* @event: a #GdkEvent
......
......@@ -1209,6 +1209,9 @@ GdkEvent* gdk_event_copy (const GdkEvent *event);
GDK_AVAILABLE_IN_ALL
void gdk_event_free (GdkEvent *event);
GDK_AVAILABLE_IN_3_10
GdkWindow *gdk_event_get_window (const GdkEvent *event);
GDK_AVAILABLE_IN_ALL
guint32 gdk_event_get_time (const GdkEvent *event);
GDK_AVAILABLE_IN_ALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment