[gnome-shell/wip/clutter-deprecation-fixes: 6/27] st-scroll-bar: Use clutter_actor_destroy in dispose
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/clutter-deprecation-fixes: 6/27] st-scroll-bar: Use clutter_actor_destroy in dispose
- Date: Tue, 14 Feb 2012 16:48:26 +0000 (UTC)
commit d11b9361f30885c60415c95c5780b22b32e7820a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 14 10:48:00 2012 -0500
st-scroll-bar: Use clutter_actor_destroy in dispose
src/st/st-scroll-bar.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c
index 80aa48a..6fe185d 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]