Merge branch 'wip/otte/for-master' into 'master'

popover: Do not validate the css node on show()

See merge request GNOME/gtk!1363
This commit is contained in:
Benjamin Otte 2020-01-28 16:43:33 +00:00
commit 12ec090a7b
2 changed files with 2 additions and 1 deletions

View File

@ -1353,6 +1353,8 @@ gtk_css_node_validate (GtkCssNode *cssnode)
gint64 timestamp;
gint64 before = g_get_monotonic_time ();
g_assert (cssnode->parent == NULL);
timestamp = gtk_css_node_get_timestamp (cssnode);
gtk_css_node_validate_internal (cssnode, &filter, timestamp);

View File

@ -647,7 +647,6 @@ gtk_popover_show (GtkWidget *widget)
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
_gtk_widget_set_visible_flag (widget, TRUE);
gtk_css_node_validate (gtk_widget_get_css_node (widget));
gtk_widget_realize (widget);
gtk_popover_native_check_resize (GTK_NATIVE (widget));
gtk_widget_map (widget);