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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user