st-scroll-bar: Use clutter_actor_destroy in dispose

https://bugzilla.gnome.org/show_bug.cgi?id=670034
This commit is contained in:
Jasper St. Pierre 2012-02-14 10:48:00 -05:00
parent ca575ef0ae
commit 44686bac3e

View File

@ -181,28 +181,25 @@ st_scroll_bar_dispose (GObject *gobject)
if (priv->handle) if (priv->handle)
{ {
g_signal_handlers_disconnect_by_func (priv->handle, clutter_actor_destroy (priv->handle);
G_CALLBACK (handle_button_press_event_cb),
bar);
clutter_actor_unparent (priv->handle);
priv->handle = NULL; priv->handle = NULL;
} }
if (priv->bw_stepper) if (priv->bw_stepper)
{ {
clutter_actor_unparent (priv->bw_stepper); clutter_actor_destroy (priv->bw_stepper);
priv->bw_stepper = NULL; priv->bw_stepper = NULL;
} }
if (priv->fw_stepper) if (priv->fw_stepper)
{ {
clutter_actor_unparent (priv->fw_stepper); clutter_actor_destroy (priv->fw_stepper);
priv->fw_stepper = NULL; priv->fw_stepper = NULL;
} }
if (priv->trough) if (priv->trough)
{ {
clutter_actor_unparent (priv->trough); clutter_actor_destroy (priv->trough);
priv->trough = NULL; priv->trough = NULL;
} }