[gnome-control-center] shell: Destroy the page instead of removing it



commit 835a09e1f84315ffc49552462f88282ebadd645a
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 16 13:13:43 2012 +0100

    shell: Destroy the page instead of removing it
    
    Because we don't actually need the child simply removed.
    Works-around run-time warnings with clutter-gtk.

 shell/cc-notebook.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index bc2025f..dbbbc0c 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -439,8 +439,7 @@ remove_on_complete (ClutterTimeline *timeline,
 		    RemoveData      *data)
 {
 	data->notebook->priv->removed_pages = g_list_remove (data->notebook->priv->removed_pages, data);
-	clutter_actor_remove_child (data->notebook->priv->bin,
-				    data->frame);
+	clutter_actor_destroy (data->frame);
 	g_free (data);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]