mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
clutter: Drop clutter_input_device_get_[pointer_]stage()
Input devices are not related to the stage in any way. Drop all the users that relied on it being so. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
This commit is contained in:
parent
b97519bb6e
commit
0fbbeb0c82
@ -178,8 +178,6 @@ CLUTTER_EXPORT
|
|||||||
void clutter_input_device_update_from_tool (ClutterInputDevice *device,
|
void clutter_input_device_update_from_tool (ClutterInputDevice *device,
|
||||||
ClutterInputDeviceTool *tool);
|
ClutterInputDeviceTool *tool);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterStage * _clutter_input_device_get_stage (ClutterInputDevice *device);
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
void _clutter_input_device_set_stage (ClutterInputDevice *device,
|
void _clutter_input_device_set_stage (ClutterInputDevice *device,
|
||||||
ClutterStage *stage);
|
ClutterStage *stage);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
|
@ -655,20 +655,6 @@ _clutter_input_device_set_stage (ClutterInputDevice *device,
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/*< private >
|
|
||||||
* clutter_input_device_get_stage:
|
|
||||||
* @device: a #ClutterInputDevice
|
|
||||||
*
|
|
||||||
* Retrieves the stage currently associated with @device.
|
|
||||||
*
|
|
||||||
* Return value: The stage currently associated with @device.
|
|
||||||
*/
|
|
||||||
ClutterStage *
|
|
||||||
_clutter_input_device_get_stage (ClutterInputDevice *device)
|
|
||||||
{
|
|
||||||
return device->stage;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_clutter_input_device_free_touch_info (gpointer data)
|
_clutter_input_device_free_touch_info (gpointer data)
|
||||||
{
|
{
|
||||||
@ -1086,25 +1072,6 @@ clutter_input_device_get_actor (ClutterInputDevice *device,
|
|||||||
return info->actor;
|
return info->actor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_input_device_get_pointer_stage:
|
|
||||||
* @device: a #ClutterInputDevice of type %CLUTTER_POINTER_DEVICE
|
|
||||||
*
|
|
||||||
* Retrieves the #ClutterStage underneath the pointer of @device
|
|
||||||
*
|
|
||||||
* Return value: (transfer none): a pointer to the #ClutterStage or %NULL
|
|
||||||
*
|
|
||||||
* Since: 1.2
|
|
||||||
*/
|
|
||||||
ClutterStage *
|
|
||||||
clutter_input_device_get_pointer_stage (ClutterInputDevice *device)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (CLUTTER_IS_INPUT_DEVICE (device), NULL);
|
|
||||||
g_return_val_if_fail (device->device_type == CLUTTER_POINTER_DEVICE, NULL);
|
|
||||||
|
|
||||||
return device->stage;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_input_device_get_device_name:
|
* clutter_input_device_get_device_name:
|
||||||
* @device: a #ClutterInputDevice
|
* @device: a #ClutterInputDevice
|
||||||
|
@ -95,8 +95,6 @@ CLUTTER_EXPORT
|
|||||||
ClutterActor * clutter_input_device_get_actor (ClutterInputDevice *device,
|
ClutterActor * clutter_input_device_get_actor (ClutterInputDevice *device,
|
||||||
ClutterEventSequence *sequence);
|
ClutterEventSequence *sequence);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterStage * clutter_input_device_get_pointer_stage (ClutterInputDevice *device);
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
const gchar * clutter_input_device_get_device_name (ClutterInputDevice *device);
|
const gchar * clutter_input_device_get_device_name (ClutterInputDevice *device);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterInputMode clutter_input_device_get_device_mode (ClutterInputDevice *device);
|
ClutterInputMode clutter_input_device_get_device_mode (ClutterInputDevice *device);
|
||||||
|
Loading…
Reference in New Issue
Block a user