summaryrefslogtreecommitdiff
path: root/gtk/gtkcsswidgetnode.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-25 21:03:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-25 21:03:57 -0400
commit637890517b40e060322222101cf4eb1f53fe318c (patch)
tree79bde2c33a612bbeb4f2f2ad874b139b34a58b43 /gtk/gtkcsswidgetnode.c
parentae7fd6f12984e579464d276abe085e5ba3ce6f98 (diff)
downloadgtk+-637890517b40e060322222101cf4eb1f53fe318c.tar.gz
Move the idle sizer to the gtkroot.c
This is needed since we already have a second GtkRoot implementation with GtkDragIcon, and DND is causing critical warnings due to this.
Diffstat (limited to 'gtk/gtkcsswidgetnode.c')
-rw-r--r--gtk/gtkcsswidgetnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c
index b8aaf45302..ec49fbeea7 100644
--- a/gtk/gtkcsswidgetnode.c
+++ b/gtk/gtkcsswidgetnode.c
@@ -46,7 +46,7 @@ gtk_css_widget_node_queue_callback (GtkWidget *widget,
GtkCssNode *node = user_data;
gtk_css_node_invalidate_frame_clock (node, TRUE);
- gtk_window_queue_restyle (GTK_WINDOW (widget));
+ gtk_root_queue_restyle (GTK_ROOT (widget));
return G_SOURCE_CONTINUE;
}
@@ -56,7 +56,7 @@ gtk_css_widget_node_queue_validate (GtkCssNode *node)
{
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
- if (widget_node->widget && GTK_IS_ROOT (widget_node->widget))
+ if (GTK_IS_ROOT (widget_node->widget))
widget_node->validate_cb_id = gtk_widget_add_tick_callback (widget_node->widget,
gtk_css_widget_node_queue_callback,
node,