ShellOverflowList: Implement pick

This gives us the correct event behavior.
This commit is contained in:
Colin Walters 2009-07-04 19:50:55 -04:00
parent 15e862f974
commit 7a0ce6c57b

View File

@ -169,6 +169,21 @@ shell_overflow_list_paint (ClutterActor *actor)
g_list_free (children); g_list_free (children);
} }
static void
shell_overflow_list_pick (ClutterActor *actor,
const ClutterColor *color)
{
ShellOverflowList *self = SHELL_OVERFLOW_LIST (actor);
ShellOverflowListPrivate *priv = self->priv;
GList *children, *iter;
int i;
(CLUTTER_ACTOR_CLASS (g_type_class_peek (clutter_actor_get_type ())))->pick (actor, color);
shell_overflow_list_paint (self);
}
static void static void
shell_overflow_list_get_preferred_height (ClutterActor *actor, shell_overflow_list_get_preferred_height (ClutterActor *actor,
gfloat for_width, gfloat for_width,
@ -256,6 +271,7 @@ shell_overflow_list_class_init (ShellOverflowListClass *klass)
actor_class->get_preferred_height = shell_overflow_list_get_preferred_height; actor_class->get_preferred_height = shell_overflow_list_get_preferred_height;
actor_class->allocate = shell_overflow_list_allocate; actor_class->allocate = shell_overflow_list_allocate;
actor_class->paint = shell_overflow_list_paint; actor_class->paint = shell_overflow_list_paint;
actor_class->pick = shell_overflow_list_pick;
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_SPACING, PROP_SPACING,