From 6e953d396fa194effd5e082816ca9dae0215b194 Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 3 Jul 2011 20:39:13 +0000 Subject: [PATCH] * small fix that forces type of gtrue to longint. This makes lazarus compatible with both boolean32 based gboolean type (in FPC/trunk since r17923) while keeping compat with the old (longbool, which will remain in 2.4.x) git-svn-id: trunk@31546 - --- lcl/interfaces/gtk2/gtk2wsstdctrls.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/gtk2/gtk2wsstdctrls.pp b/lcl/interfaces/gtk2/gtk2wsstdctrls.pp index a40cae9754..c3da31df13 100644 --- a/lcl/interfaces/gtk2/gtk2wsstdctrls.pp +++ b/lcl/interfaces/gtk2/gtk2wsstdctrls.pp @@ -1564,7 +1564,7 @@ begin (csDesigning in AWinControl.ComponentState) then Exit; Value.g_type := G_TYPE_BOOLEAN; - Value.data[0].v_int := gTRUE; + Value.data[0].v_int := longint(gTRUE); g_object_set_property(PGObject(AWidget), 'button-sensitivity', @Value); end;