mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
clutter/actor: Remove '_paint' suffix from clutter_actor_should_pick_paint
We're not using paint to pick anymore. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1509
This commit is contained in:
parent
05b6b6a88d
commit
8d47f79b2c
@ -2311,7 +2311,7 @@ static void
|
|||||||
clutter_actor_real_pick (ClutterActor *self,
|
clutter_actor_real_pick (ClutterActor *self,
|
||||||
ClutterPickContext *pick_context)
|
ClutterPickContext *pick_context)
|
||||||
{
|
{
|
||||||
if (clutter_actor_should_pick_paint (self, pick_context))
|
if (clutter_actor_should_pick (self, pick_context))
|
||||||
{
|
{
|
||||||
ClutterActorBox box = {
|
ClutterActorBox box = {
|
||||||
.x1 = 0,
|
.x1 = 0,
|
||||||
@ -2342,22 +2342,21 @@ clutter_actor_real_pick (ClutterActor *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clutter_actor_should_pick_paint:
|
* clutter_actor_should_pick:
|
||||||
* @self: A #ClutterActor
|
* @self: A #ClutterActor
|
||||||
* @pick_context: a #ClutterPickContext
|
* @pick_context: a #ClutterPickContext
|
||||||
*
|
*
|
||||||
* Should be called inside the implementation of the
|
* Should be called inside the implementation of the
|
||||||
* #ClutterActor::pick virtual function in order to check whether
|
* #ClutterActor::pick virtual function in order to check whether
|
||||||
* the actor should paint itself in pick mode or not.
|
* the actor should be picked or not.
|
||||||
*
|
*
|
||||||
* This function should never be called directly by applications.
|
* This function should never be called directly by applications.
|
||||||
*
|
*
|
||||||
* Return value: %TRUE if the actor should paint its silhouette,
|
* Return value: %TRUE if the actor should be picked, %FALSE otherwise
|
||||||
* %FALSE otherwise
|
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
clutter_actor_should_pick_paint (ClutterActor *self,
|
clutter_actor_should_pick (ClutterActor *self,
|
||||||
ClutterPickContext *pick_context)
|
ClutterPickContext *pick_context)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
|
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
|
||||||
|
|
||||||
|
@ -591,7 +591,7 @@ void clutter_actor_set_offscreen_redirect
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterOffscreenRedirect clutter_actor_get_offscreen_redirect (ClutterActor *self);
|
ClutterOffscreenRedirect clutter_actor_get_offscreen_redirect (ClutterActor *self);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
gboolean clutter_actor_should_pick_paint (ClutterActor *self,
|
gboolean clutter_actor_should_pick (ClutterActor *self,
|
||||||
ClutterPickContext *pick_context);
|
ClutterPickContext *pick_context);
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
gboolean clutter_actor_is_in_clone_paint (ClutterActor *self);
|
gboolean clutter_actor_is_in_clone_paint (ClutterActor *self);
|
||||||
|
@ -184,7 +184,7 @@ meta_surface_actor_pick (ClutterActor *actor,
|
|||||||
ClutterActorIter iter;
|
ClutterActorIter iter;
|
||||||
ClutterActor *child;
|
ClutterActor *child;
|
||||||
|
|
||||||
if (!clutter_actor_should_pick_paint (actor, pick_context))
|
if (!clutter_actor_should_pick (actor, pick_context))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* If there is no region then use the regular pick */
|
/* If there is no region then use the regular pick */
|
||||||
|
Loading…
Reference in New Issue
Block a user