From 0d06b1dced4fedb5d1b43396bcc86e4b7d5511f5 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 30 Sep 2013 21:04:43 +0100 Subject: [PATCH] Change true for TRUE The second parameter of gtk_widget_set_realized is of type gboolean (gint). This is to ensure compatibility on alternative compilers and platforms. --- modules/highgui/src/window_gtk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/window_gtk.cpp b/modules/highgui/src/window_gtk.cpp index c467155a37..79ae638cfc 100644 --- a/modules/highgui/src/window_gtk.cpp +++ b/modules/highgui/src/window_gtk.cpp @@ -154,7 +154,7 @@ cvImageWidget_realize (GtkWidget *widget) g_return_if_fail (widget != NULL); g_return_if_fail (CV_IS_IMAGE_WIDGET (widget)); - gtk_widget_set_realized(widget, true); + gtk_widget_set_realized(widget, TRUE); attributes.x = widget->allocation.x; attributes.y = widget->allocation.y;