[gtk/wip/otte/matthiasc/popup2: 57/92] popover: Explicitly set css parent
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/matthiasc/popup2: 57/92] popover: Explicitly set css parent
- Date: Fri, 19 Apr 2019 16:10:04 +0000 (UTC)
commit 62a2de8f67554a74b5257338baaa5390de53d58c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 23 13:52:33 2019 -0400
popover: Explicitly set css parent
This fixes a critical warning when attaching a popover
to a treeview, as the file chooser is doing.
gtk/gtkpopover.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index f30a274cea..b62784c039 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -37,6 +37,7 @@
#include "gtkmenusectionbox.h"
#include "gdk/gdkeventsprivate.h"
#include "gtkpointerfocusprivate.h"
+#include "gtkcssnodeprivate.h"
static GListStore *popover_list = NULL;
@@ -1306,6 +1307,8 @@ gtk_popover_set_relative_to (GtkPopover *popover,
{
g_signal_connect (priv->relative_to, "size-allocate", G_CALLBACK (size_changed), popover);
priv->display = gtk_widget_get_display (relative_to);
+ gtk_css_node_set_parent (gtk_widget_get_css_node (GTK_WIDGET (popover)),
+ gtk_widget_get_css_node (relative_to));
gtk_widget_set_parent (GTK_WIDGET (popover), relative_to);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]