aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-content.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-content.c')
-rw-r--r--shell/e-shell-content.c3
1 files changed, 3 insertions, 0 deletions
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);