From: nalin Date: Mon, 17 Nov 2003 21:46:49 +0000 (+0000) Subject: - fix newtCheckboxGetValue not working correctly if newtCheckbox was created X-Git-Tag: r0-51-7-1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30e1ef5b4ec2a00e9715f66090b7031e4cfb65e1;p=thirdparty%2Fnewt.git - fix newtCheckboxGetValue not working correctly if newtCheckbox was created with a non-NULL result parameter (so cb->value is never changed, but we were returning its value here anyway) --- diff --git a/checkbox.c b/checkbox.c index ff49b65..780abc1 100644 --- a/checkbox.c +++ b/checkbox.c @@ -79,7 +79,7 @@ newtComponent newtRadioGetCurrent(newtComponent setMember) { char newtCheckboxGetValue(newtComponent co) { struct checkbox * cb = co->data; - return cb->value; + return *cb->result; } void newtCheckboxSetValue(newtComponent co, char value) { diff --git a/config.h.in b/config.h.in index 9fbcdf4..41718dd 100644 --- a/config.h.in +++ b/config.h.in @@ -1,11 +1,55 @@ -/* config.h.in. Generated automatically from configure.in by autoheader. */ +/* config.h.in. Generated from configure.in by autoheader. */ -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_ALLOCA_H -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ #undef HAVE_SYS_SELECT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + /* Define to 1 if GPM support is enabled */ #undef USE_GPM - diff --git a/newt.spec b/newt.spec index 902c7ac..88360f6 100644 --- a/newt.spec +++ b/newt.spec @@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.so %changelog +* Mon Nov 17 2003 Nalin Dahyabhai +- fix newtCheckboxGetValue not working if checkbox created with non-NULL result + * Thu Nov 6 2003 Jeremy Katz 0.51.6-2 - rebuild for python 2.3