widget: Don't access highlight_resize in non-debug builds

The GtkWidgetPrivate struct only contains that member if G_ENABLE_DEBUG
is defined.
This commit is contained in:
Timm Bäder 2017-07-28 21:28:32 +02:00
parent b71f644cf5
commit 2cbcee8549

View File

@ -15118,6 +15118,7 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget *widget,
}
}
#ifdef G_ENABLE_DEBUG
if (GTK_DISPLAY_DEBUG_CHECK (display, RESIZE) &&
priv->highlight_resize)
{
@ -15135,6 +15136,7 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget *widget,
priv->highlight_resize = FALSE;
gtk_widget_queue_draw (widget);
}
#endif
if (GTK_DISPLAY_DEBUG_CHECK (display, GEOMETRY))
{