StIcon: remove implementation of ::map and ::unmap

They're not needed since Clutter 1.5.8, which internally
keeps a list of children, used by the default implementations of
::map and ::unmap.

https://bugzilla.gnome.org/show_bug.cgi?id=634814
This commit is contained in:
Giovanni Campagna 2010-12-09 17:59:58 +01:00
parent a70f1f449b
commit 2332e2b0c5

View File

@ -272,28 +272,6 @@ st_icon_paint (ClutterActor *actor)
}
}
static void
st_icon_map (ClutterActor *actor)
{
StIconPrivate *priv = ST_ICON (actor)->priv;
CLUTTER_ACTOR_CLASS (st_icon_parent_class)->map (actor);
if (priv->icon_texture)
clutter_actor_map (priv->icon_texture);
}
static void
st_icon_unmap (ClutterActor *actor)
{
StIconPrivate *priv = ST_ICON (actor)->priv;
CLUTTER_ACTOR_CLASS (st_icon_parent_class)->unmap (actor);
if (priv->icon_texture)
clutter_actor_unmap (priv->icon_texture);
}
static void
st_icon_style_changed (StWidget *widget)
{
@ -325,8 +303,6 @@ st_icon_class_init (StIconClass *klass)
actor_class->get_preferred_width = st_icon_get_preferred_width;
actor_class->allocate = st_icon_allocate;
actor_class->paint = st_icon_paint;
actor_class->map = st_icon_map;
actor_class->unmap = st_icon_unmap;
widget_class->style_changed = st_icon_style_changed;