From c95a226217a68703c48397c23ea8accc491d44e4 Mon Sep 17 00:00:00 2001
From: Matthew Barnes <mbarnes@redhat.com>
Date: Fri, 4 Sep 2009 16:15:04 -0400
Subject: EShell cleanup + rework my previous crasher fix.

---
 shell/e-shell-content.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'shell/e-shell-content.c')

diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c
index 9e28bc8075..0d787749f8 100644
--- a/shell/e-shell-content.c
+++ b/shell/e-shell-content.c
@@ -587,6 +587,9 @@ shell_content_destroy (GtkObject *gtk_object)
 
 	priv = E_SHELL_CONTENT_GET_PRIVATE (gtk_object);
 
+	/* Unparent the widget before destroying it to avoid
+	 * writing a custom GtkContainer::remove() method. */
+
 	if (priv->search_bar != NULL) {
 		gtk_widget_unparent (priv->search_bar);
 		gtk_widget_destroy (priv->search_bar);
-- 
cgit