]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- fix newtCheckboxGetValue not working correctly if newtCheckbox was created
authornalin <nalin>
Mon, 17 Nov 2003 21:46:49 +0000 (21:46 +0000)
committernalin <nalin>
Mon, 17 Nov 2003 21:46:49 +0000 (21:46 +0000)
  with a non-NULL result parameter (so cb->value is never changed, but we were
  returning its value here anyway)

checkbox.c
config.h.in
newt.spec

index ff49b65c3b876a1505a07cc26e378087b0e02aa8..780abc14044093a3123202b09fe6149ccee794d4 100644 (file)
@@ -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) {
index 9fbcdf44c7e0fac9a757427dd282eef8411d44fa..41718dd3d3558d3d320e7e034874b578c4bbad82 100644 (file)
@@ -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 <alloca.h> header file.  */
+/* Define to 1 if you have the <alloca.h> header file. */
 #undef HAVE_ALLOCA_H
 
-/* Define if you have the <sys/select.h> header file.  */
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/select.h> header file. */
 #undef HAVE_SYS_SELECT_H
 
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> 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
-
index 902c7ac9fede4d24cf16c23a838179f443bbedc6..88360f678c3eb32c5b8cabc690038d0e301f036d 100644 (file)
--- 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 <nalin@redhat.com>
+- fix newtCheckboxGetValue not working if checkbox created with non-NULL result
+
 * Thu Nov  6 2003 Jeremy Katz <katzj@redhat.com> 0.51.6-2
 - rebuild for python 2.3