summaryrefslogtreecommitdiff
path: root/iup/src/iup_zbox.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/src/iup_zbox.c
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/src/iup_zbox.c')
-rwxr-xr-xiup/src/iup_zbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iup/src/iup_zbox.c b/iup/src/iup_zbox.c
index 3f79892..dd4a0e4 100755
--- a/iup/src/iup_zbox.c
+++ b/iup/src/iup_zbox.c
@@ -210,7 +210,7 @@ static int iZboxSetVisibleAttrib(Ihandle* ih, const char* value)
{
if (iupObjectCheck(ih->data->value_handle))
IupSetAttribute(ih->data->value_handle, "VISIBLE", (char*)value);
- return 0;
+ return 1; /* must be 1 to mark when set at the element */
}
static void iZboxComputeNaturalSizeMethod(Ihandle* ih, int *w, int *h, int *expand)
@@ -368,8 +368,8 @@ Iclass* iupZboxGetClass(void)
iupClassRegisterAttribute(ic, "VALUEPOS", iZboxGetValuePosAttrib, iZboxSetValuePosAttrib, NULL, NULL, IUPAF_NOT_MAPPED|IUPAF_NO_INHERIT);
iupClassRegisterAttribute(ic, "VALUE_HANDLE", NULL, iZboxSetValueHandleAttrib, NULL, NULL, IUPAF_NOT_MAPPED|IUPAF_NO_INHERIT|IUPAF_NO_STRING);
- /* Intercept VISIBLE since ZBOX works showing and hidding its children */
- iupClassRegisterAttribute(ic, "VISIBLE", NULL, iZboxSetVisibleAttrib, IUPAF_SAMEASSYSTEM, "YES", IUPAF_NOT_MAPPED|IUPAF_NO_INHERIT);
+ /* Intercept VISIBLE since ZBOX works by showing and hidding its children */
+ iupClassRegisterAttribute(ic, "VISIBLE", NULL, iZboxSetVisibleAttrib, IUPAF_SAMEASSYSTEM, "YES", IUPAF_NOT_MAPPED);
return ic;
}