From 44686bac3e7cdaa7c1a4b3462ccaa89037a7fcb7 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 14 Feb 2012 10:48:00 -0500 Subject: [PATCH] st-scroll-bar: Use clutter_actor_destroy in dispose https://bugzilla.gnome.org/show_bug.cgi?id=670034 --- src/st/st-scroll-bar.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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; }