[gtk/matthiasc/for-master] headerbar: Don't clean up other widget children
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] headerbar: Don't clean up other widget children
- Date: Mon, 11 May 2020 18:27:49 +0000 (UTC)
commit 495b9caf63326b5fb0b458e4f501b07dd15ccbcb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 11 14:25:57 2020 -0400
headerbar: Don't clean up other widget children
The parent of the title_widget is the center box,
it needs to call gtk_widget_unparent on it.
gtk/gtkheaderbar.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 25fb6d7e75..eee669e2c8 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -318,7 +318,8 @@ gtk_header_bar_set_title_widget (GtkHeaderBar *bar,
if (priv->title_widget == title_widget)
return;
- g_clear_pointer (&priv->title_widget, gtk_widget_unparent);
+ gtk_center_box_set_center_widget (GTK_CENTER_BOX (priv->center_box), NULL);
+ priv->title_widget = NULL;
if (title_widget != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]