diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c index 80aa48a7b..6fe185db1 100644 --- a/src/st/st-scroll-bar.c +++ b/src/st/st-scroll-bar.c @@ -181,28 +181,25 @@ st_scroll_bar_dispose (GObject *gobject) if (priv->handle) { - g_signal_handlers_disconnect_by_func (priv->handle, - G_CALLBACK (handle_button_press_event_cb), - bar); - clutter_actor_unparent (priv->handle); + clutter_actor_destroy (priv->handle); priv->handle = NULL; } if (priv->bw_stepper) { - clutter_actor_unparent (priv->bw_stepper); + clutter_actor_destroy (priv->bw_stepper); priv->bw_stepper = NULL; } if (priv->fw_stepper) { - clutter_actor_unparent (priv->fw_stepper); + clutter_actor_destroy (priv->fw_stepper); priv->fw_stepper = NULL; } if (priv->trough) { - clutter_actor_unparent (priv->trough); + clutter_actor_destroy (priv->trough); priv->trough = NULL; }