forked from AuroraMiddleware/gtk
gdk: event: add get_window() method
https://bugzilla.gnome.org/show_bug.cgi?id=707844
This commit is contained in:
parent
6c0769a47c
commit
659a6f3a2f
@ -798,6 +798,24 @@ gdk_event_free (GdkEvent *event)
|
|||||||
g_slice_free (GdkEventPrivate, (GdkEventPrivate*) 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:
|
* gdk_event_get_time:
|
||||||
* @event: a #GdkEvent
|
* @event: a #GdkEvent
|
||||||
|
@ -1209,6 +1209,9 @@ GdkEvent* gdk_event_copy (const GdkEvent *event);
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
void gdk_event_free (GdkEvent *event);
|
void gdk_event_free (GdkEvent *event);
|
||||||
|
|
||||||
|
GDK_AVAILABLE_IN_3_10
|
||||||
|
GdkWindow *gdk_event_get_window (const GdkEvent *event);
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
guint32 gdk_event_get_time (const GdkEvent *event);
|
guint32 gdk_event_get_time (const GdkEvent *event);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
Loading…
Reference in New Issue
Block a user