mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
Override ClutterActor::pick
Override the default ClutterActor::pick method, by calling a full paint of the box actor like ClutterGroup does.
This commit is contained in:
parent
699297ad64
commit
450ac94e49
@ -160,6 +160,14 @@ clutter_box_paint (ClutterActor *actor)
|
||||
cogl_pop_matrix ();
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_box_pick (ClutterActor *actor,
|
||||
const ClutterColor *color)
|
||||
{
|
||||
/* just repaint; in the future we might enter in a "focused" status here */
|
||||
clutter_actor_paint (actor);
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_box_dispose (GObject *gobject)
|
||||
{
|
||||
@ -249,6 +257,7 @@ clutter_box_class_init (ClutterBoxClass *klass)
|
||||
actor_class->show_all = clutter_box_show_all;
|
||||
actor_class->hide_all = clutter_box_hide_all;
|
||||
actor_class->paint = clutter_box_paint;
|
||||
actor_class->pick = clutter_box_pick;
|
||||
|
||||
klass->pack_child = clutter_box_pack_child_unimplemented;
|
||||
klass->unpack_child = clutter_box_unpack_child_unimplemented;
|
||||
|
Loading…
Reference in New Issue
Block a user