st: Don't use deprecated API

clutter_actor_set_parent and clutter_actor_unparent are both
deprecated, and come from a time before a well-thought API
was introduced.

https://bugzilla.gnome.org/show_bug.cgi?id=670034
This commit is contained in:
Jasper St. Pierre
2012-02-13 15:22:53 -05:00
parent f9e456bb47
commit 92ee17493c
6 changed files with 15 additions and 26 deletions

View File

@ -852,8 +852,8 @@ st_scroll_view_init (StScrollView *self)
"vertical", TRUE,
NULL);
clutter_actor_set_parent (priv->hscroll, CLUTTER_ACTOR (self));
clutter_actor_set_parent (priv->vscroll, CLUTTER_ACTOR (self));
clutter_actor_add_child (CLUTTER_ACTOR (self), priv->hscroll);
clutter_actor_add_child (CLUTTER_ACTOR (self), priv->vscroll);
/* mouse scroll is enabled by default, so we also need to be reactive */
priv->mouse_scroll = TRUE;
@ -915,7 +915,7 @@ st_scroll_view_remove (ClutterContainer *container,
else
g_assert ("Unknown child removed from StScrollView");
clutter_actor_unparent (actor);
clutter_actor_remove_child (CLUTTER_ACTOR (container), actor);
}
}