Avoid type checking overhead for resize-mode
This commit is contained in:
@ -101,7 +101,7 @@ gtk_css_widget_node_queue_validate (GtkCssNode *node)
|
||||
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
if (GTK_IS_RESIZE_CONTAINER (widget_node->widget))
|
||||
if (_GTK_IS_RESIZE_CONTAINER (widget_node->widget))
|
||||
widget_node->validate_cb_id = gtk_widget_add_tick_callback (widget_node->widget,
|
||||
gtk_css_widget_node_queue_callback,
|
||||
node,
|
||||
@ -115,7 +115,7 @@ gtk_css_widget_node_dequeue_validate (GtkCssNode *node)
|
||||
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
if (GTK_IS_RESIZE_CONTAINER (widget_node->widget))
|
||||
if (_GTK_IS_RESIZE_CONTAINER (widget_node->widget))
|
||||
gtk_widget_remove_tick_callback (widget_node->widget,
|
||||
widget_node->validate_cb_id);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
Reference in New Issue
Block a user