clutter-wayland-surface: Remove the pick method
The pick method doesn't do anything special over the default pick method provided by ClutterActor so there's no need to implement it. Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
560f92b698
commit
6cc58f7d7d
@ -334,18 +334,6 @@ clutter_wayland_surface_paint (ClutterActor *self)
|
|||||||
cogl_rectangle (0, 0, box.x2 - box.x1, box.y2 - box.y1);
|
cogl_rectangle (0, 0, box.x2 - box.x1, box.y2 - box.y1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
clutter_wayland_surface_pick (ClutterActor *self,
|
|
||||||
const ClutterColor *color)
|
|
||||||
{
|
|
||||||
ClutterActorBox box;
|
|
||||||
|
|
||||||
cogl_set_source_color4ub (color->red, color->green, color->blue,
|
|
||||||
color->alpha);
|
|
||||||
clutter_actor_get_allocation_box (self, &box);
|
|
||||||
cogl_rectangle (0, 0, box.x2 - box.x1, box.y2 - box.y1);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_wayland_surface_get_preferred_width (ClutterActor *self,
|
clutter_wayland_surface_get_preferred_width (ClutterActor *self,
|
||||||
gfloat for_height,
|
gfloat for_height,
|
||||||
@ -403,7 +391,6 @@ clutter_wayland_surface_class_init (ClutterWaylandSurfaceClass *klass)
|
|||||||
|
|
||||||
actor_class->get_paint_volume = clutter_wayland_surface_get_paint_volume;
|
actor_class->get_paint_volume = clutter_wayland_surface_get_paint_volume;
|
||||||
actor_class->paint = clutter_wayland_surface_paint;
|
actor_class->paint = clutter_wayland_surface_paint;
|
||||||
actor_class->pick = clutter_wayland_surface_pick;
|
|
||||||
actor_class->get_preferred_width =
|
actor_class->get_preferred_width =
|
||||||
clutter_wayland_surface_get_preferred_width;
|
clutter_wayland_surface_get_preferred_width;
|
||||||
actor_class->get_preferred_height =
|
actor_class->get_preferred_height =
|
||||||
|
Loading…
Reference in New Issue
Block a user