[gtk+] widget: Don't access highlight_resize in non-debug builds
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Don't access highlight_resize in non-debug builds
- Date: Fri, 28 Jul 2017 19:26:33 +0000 (UTC)
commit 2cbcee854920c2b6a80a6e45da7a9469f4496f2f
Author: Timm Bäder <mail baedert org>
Date: Fri Jul 28 21:28:32 2017 +0200
widget: Don't access highlight_resize in non-debug builds
The GtkWidgetPrivate struct only contains that member if G_ENABLE_DEBUG
is defined.
gtk/gtkwidget.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a0da34d..76971de 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]