mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
clutter: Drop Event.get_source
It was marked as deprecated for ~5 years and nothing uses it nowadays so drop it Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3181>
This commit is contained in:
parent
9374f259a4
commit
6032be04a0
@ -509,27 +509,6 @@ clutter_event_get_position (const ClutterEvent *event,
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_event_get_source:
|
||||
* @event: a #ClutterEvent
|
||||
*
|
||||
* Retrieves the source #ClutterActor the event originated from, or
|
||||
* NULL if the event has no source.
|
||||
*
|
||||
* Return value: (transfer none): a #ClutterActor
|
||||
*/
|
||||
ClutterActor *
|
||||
clutter_event_get_source (const ClutterEvent *event)
|
||||
{
|
||||
g_return_val_if_fail (event != NULL, NULL);
|
||||
|
||||
if (event->type == CLUTTER_ENTER ||
|
||||
event->type == CLUTTER_LEAVE)
|
||||
return event->crossing.source;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_event_get_flags:
|
||||
* @event: a #ClutterEvent
|
||||
|
@ -172,8 +172,6 @@ ClutterInputDevice * clutter_event_get_source_device (const ClutterEv
|
||||
CLUTTER_EXPORT
|
||||
ClutterInputDeviceTool *clutter_event_get_device_tool (const ClutterEvent *event);
|
||||
|
||||
CLUTTER_DEPRECATED
|
||||
ClutterActor * clutter_event_get_source (const ClutterEvent *event);
|
||||
CLUTTER_EXPORT
|
||||
ClutterInputDeviceType clutter_event_get_device_type (const ClutterEvent *event);
|
||||
CLUTTER_EXPORT
|
||||
|
Loading…
Reference in New Issue
Block a user