[gtk/wip/baedert/for-master: 23/27] window: Add automatic titlebar before content widget
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 23/27] window: Add automatic titlebar before content widget
- Date: Fri, 12 Jun 2020 03:51:46 +0000 (UTC)
commit 7ad90d04026347bc9e83fe92bc886ebd7ed72c43
Author: Timm Bäder <mail baedert org>
Date: Sun Jun 7 09:36:56 2020 +0200
window: Add automatic titlebar before content widget
Just like we do with explicitly set titlebars
gtk/gtkwindow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e6a1151ca3..206def4e89 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4312,7 +4312,7 @@ gtk_window_realize (GtkWidget *widget)
gtk_widget_add_css_class (priv->titlebar, GTK_STYLE_CLASS_TITLEBAR);
gtk_widget_add_css_class (priv->titlebar, "default-decoration");
- gtk_widget_set_parent (priv->titlebar, widget);
+ gtk_widget_insert_after (priv->titlebar, widget, NULL);
priv->title_box = priv->titlebar;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]