mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-21 06:20:29 +00:00
Docs: Clarify life cycle issue
gtk_gesture_get_last_event() wasn't very clear about how long it is safe to use the returned pointer.
This commit is contained in:
parent
358eec2972
commit
c891ceb31d
@ -1274,6 +1274,10 @@ gtk_gesture_get_last_updated_sequence (GtkGesture *gesture)
|
||||
*
|
||||
* Returns the last event that was processed for @sequence.
|
||||
*
|
||||
* Note that the returned pointer is only valid as long as the @sequence
|
||||
* is still interpreted by the @gesture. If in doubt, you should make
|
||||
* a copy of the event.
|
||||
*
|
||||
* Returns: (transfer none) (nullable): The last event from @sequence
|
||||
**/
|
||||
const GdkEvent *
|
||||
|
Loading…
Reference in New Issue
Block a user