popover: Fix an oversight in gap coord computation
authorTimm Bäder <mail@baedert.org>
Mon, 27 Jan 2020 12:01:37 +0000 (13:01 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 27 Jan 2020 12:37:50 +0000 (13:37 +0100)
This caused a border to show up between the popover arrow and the
contents.

gtk/gtkpopover.c

index 24e154e8a998f4569853abe9f8f4899bf8e87b18..5a75e1156c5888a4fd59f5807c6cfa07fcec06b9 100644 (file)
@@ -798,7 +798,7 @@ gtk_popover_get_gap_coords (GtkPopover *popover,
 
   pos = priv->final_position;
 
-  style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
+  style = gtk_css_node_get_style (gtk_widget_get_css_node (priv->contents_widget));
   border_radius = _gtk_css_number_value_get (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_BORDER_TOP_LEFT_RADIUS), 100);
   border_top = _gtk_css_number_value_get (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_BORDER_TOP_WIDTH), 100);
   border_right = _gtk_css_number_value_get (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_BORDER_RIGHT_WIDTH), 100);