diff --git a/clutter/clutter-device-manager-private.h b/clutter/clutter-device-manager-private.h index 4ae594008..eb8fb1230 100644 --- a/clutter/clutter-device-manager-private.h +++ b/clutter/clutter-device-manager-private.h @@ -136,6 +136,7 @@ void _clutter_input_device_set_time (ClutterInputDev guint32 time_); void _clutter_input_device_set_stage (ClutterInputDevice *device, ClutterStage *stage); +ClutterStage * _clutter_input_device_get_stage (ClutterInputDevice *device); void _clutter_input_device_set_actor (ClutterInputDevice *device, ClutterActor *actor, gboolean emit_crossing); diff --git a/clutter/clutter-input-device.c b/clutter/clutter-input-device.c index fd6efc233..e9a42185b 100644 --- a/clutter/clutter-input-device.c +++ b/clutter/clutter-input-device.c @@ -458,6 +458,20 @@ _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; +} + /*< private > * clutter_input_device_set_actor: * @device: a #ClutterInputDevice