[libgd] GdHeaderBar: unparent instead of calling container remove
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] GdHeaderBar: unparent instead of calling container remove
- Date: Sun, 17 Feb 2013 18:19:47 +0000 (UTC)
commit 15cb6fe80c59195902c3af50514ca90bd7486131
Author: William Jon McCann <jmccann redhat com>
Date: Sun Feb 17 13:18:51 2013 -0500
GdHeaderBar: unparent instead of calling container remove
libgd/gd-header-bar.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libgd/gd-header-bar.c b/libgd/gd-header-bar.c
index db100b8..31a9f60 100644
--- a/libgd/gd-header-bar.c
+++ b/libgd/gd-header-bar.c
@@ -591,12 +591,9 @@ gd_header_bar_set_custom_title (GdHeaderBar *bar,
if (priv->custom_title)
{
GtkWidget *custom = priv->custom_title;
- /* Note: We must reset tooltip->custom_widget first,
- * since gtk_container_remove() will recurse into
- * gtk_tooltip_set_custom()
- */
+
priv->custom_title = NULL;
- gtk_container_remove (GTK_CONTAINER (bar), custom);
+ gtk_widget_unparent (custom);
g_object_unref (custom);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]