forked from AuroraMiddleware/gtk
csswidgetnode: Don't check for container
The conditions to queue and dequeue a CSS validation are different; while queueing checks if the widget is a root, dequeueing checks that AND if the widget is a container. GtkWindow is not a GtkContainer anymore, and that is causing validations to be queued, but never dequeued. Don't require the widget to be a GtkContainer for dequeuing.
This commit is contained in:
parent
42ca760f9c
commit
2cc6c4d2d1
@ -68,9 +68,7 @@ gtk_css_widget_node_dequeue_validate (GtkCssNode *node)
|
||||
{
|
||||
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
|
||||
|
||||
if (widget_node->widget &&
|
||||
GTK_IS_ROOT (widget_node->widget) &&
|
||||
GTK_IS_CONTAINER (widget_node->widget))
|
||||
if (widget_node->widget && GTK_IS_ROOT (widget_node->widget))
|
||||
gtk_widget_remove_tick_callback (widget_node->widget,
|
||||
widget_node->validate_cb_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user