Author: nwhitehorn
Date: Sun Oct 21 18:18:09 2012
New Revision: 241816
URL: http://svn.freebsd.org/changeset/base/241816

Log:
  Import dialog-1.1-20120706

Added:
  vendor/dialog/dist/samples/dft-cancel   (contents, props changed)
  vendor/dialog/dist/samples/dft-extra   (contents, props changed)
  vendor/dialog/dist/samples/dft-help   (contents, props changed)
  vendor/dialog/dist/samples/dft-no   (contents, props changed)
  vendor/dialog/dist/samples/fselect0   (contents, props changed)
  vendor/dialog/dist/samples/with-dquotes   (contents, props changed)
  vendor/dialog/dist/samples/with-squotes   (contents, props changed)
Deleted:
  vendor/dialog/dist/samples/dselect
  vendor/dialog/dist/samples/valgrind.log
Modified:
  vendor/dialog/dist/CHANGES
  vendor/dialog/dist/VERSION
  vendor/dialog/dist/aclocal.m4
  vendor/dialog/dist/arrows.c
  vendor/dialog/dist/buttons.c
  vendor/dialog/dist/calendar.c
  vendor/dialog/dist/checklist.c
  vendor/dialog/dist/columns.c
  vendor/dialog/dist/configure
  vendor/dialog/dist/configure.in
  vendor/dialog/dist/dialog.1
  vendor/dialog/dist/dialog.3
  vendor/dialog/dist/dialog.c
  vendor/dialog/dist/dialog.h
  vendor/dialog/dist/dlg_colors.h
  vendor/dialog/dist/dlg_keys.c
  vendor/dialog/dist/dlg_keys.h
  vendor/dialog/dist/editbox.c
  vendor/dialog/dist/formbox.c
  vendor/dialog/dist/fselect.c
  vendor/dialog/dist/guage.c
  vendor/dialog/dist/headers-sh.in
  vendor/dialog/dist/inputbox.c
  vendor/dialog/dist/inputstr.c
  vendor/dialog/dist/makefile.in
  vendor/dialog/dist/menubox.c
  vendor/dialog/dist/mixedform.c
  vendor/dialog/dist/mixedgauge.c
  vendor/dialog/dist/msgbox.c
  vendor/dialog/dist/package/debian/changelog
  vendor/dialog/dist/package/dialog.spec
  vendor/dialog/dist/pause.c
  vendor/dialog/dist/po/cs.po
  vendor/dialog/dist/po/el.po
  vendor/dialog/dist/po/hr.po
  vendor/dialog/dist/po/sr.po
  vendor/dialog/dist/prgbox.c
  vendor/dialog/dist/progressbox.c
  vendor/dialog/dist/rc.c
  vendor/dialog/dist/samples/copifuncs/admin.funcs
  vendor/dialog/dist/samples/copifuncs/common.funcs
  vendor/dialog/dist/samples/copifuncs/copi.funcs
  vendor/dialog/dist/samples/copifuncs/copi.ifman2
  vendor/dialog/dist/samples/copifuncs/copi.ifpoll2
  vendor/dialog/dist/samples/copifuncs/copi.ifreq2
  vendor/dialog/dist/samples/copifuncs/copi.sendifm1
  vendor/dialog/dist/samples/copifuncs/copi.wheel
  vendor/dialog/dist/samples/copismall
  vendor/dialog/dist/samples/debian.rc
  vendor/dialog/dist/samples/dialog.py
  vendor/dialog/dist/samples/form1
  vendor/dialog/dist/samples/inputmenu
  vendor/dialog/dist/samples/inputmenu-stdout
  vendor/dialog/dist/samples/inputmenu1
  vendor/dialog/dist/samples/inputmenu2
  vendor/dialog/dist/samples/inputmenu3
  vendor/dialog/dist/samples/inputmenu4
  vendor/dialog/dist/samples/killall
  vendor/dialog/dist/samples/prgbox
  vendor/dialog/dist/samples/prgbox2
  vendor/dialog/dist/samples/report-button
  vendor/dialog/dist/samples/report-edit
  vendor/dialog/dist/samples/report-string
  vendor/dialog/dist/samples/report-tempfile
  vendor/dialog/dist/samples/report-yesno
  vendor/dialog/dist/samples/setup-edit
  vendor/dialog/dist/samples/setup-tempfile
  vendor/dialog/dist/samples/setup-utf8
  vendor/dialog/dist/samples/setup-vars
  vendor/dialog/dist/samples/slackware.rc
  vendor/dialog/dist/samples/sourcemage.rc
  vendor/dialog/dist/samples/suse.rc
  vendor/dialog/dist/samples/tailboxbg
  vendor/dialog/dist/samples/tailboxbg1
  vendor/dialog/dist/samples/tailboxbg2
  vendor/dialog/dist/samples/testdata-8bit
  vendor/dialog/dist/samples/wheel
  vendor/dialog/dist/samples/whiptail.rc
  vendor/dialog/dist/tailbox.c
  vendor/dialog/dist/textbox.c
  vendor/dialog/dist/timebox.c
  vendor/dialog/dist/trace.c
  vendor/dialog/dist/ui_getc.c
  vendor/dialog/dist/util.c
  vendor/dialog/dist/yesno.c

Modified: vendor/dialog/dist/CHANGES
==============================================================================
--- vendor/dialog/dist/CHANGES  Sun Oct 21 13:42:38 2012        (r241815)
+++ vendor/dialog/dist/CHANGES  Sun Oct 21 18:18:09 2012        (r241816)
@@ -1,9 +1,172 @@
--- $Id: CHANGES,v 1.360 2011/07/07 23:35:10 tom Exp $
+-- $Id: CHANGES,v 1.419 2012/07/06 18:18:48 tom Exp $
 -- Thomas E. Dickey <dic...@invisible-island.net>
 
 This version of dialog was originally from a Debian snapshot.  I've done this
 to it:
 
+2012/07/06
+       + modify samples/setup-tempfile to work with Tru64's shell.
+       + modify inputmenu sample scripts to make them more portable:
+         + use "id" rather than "$GROUPS", use sed to work with Solaris.
+         + use sed to split-up the rename results to work with HPUX.
+       + fix regression in msgbox (ArchLinux #30574)
+
+2012/07/03
+       + modify prgbox widget to work with --extra-button, etc.
+       + add case values to several widgets to allow for mouse-clicks with
+       "--extra-button" and "--help-button" additions.
+       + correct timebox widget's exit code for "--extra-button" when handing
+         the "enter" key.
+       + modify msgbox widget to honor "--extra-button".
+       + corrected processing of "--trace" option, which did not update the
+         index into command-line to point past its value.
+       + add a check in dialog program for valid characters used in option,
+         e.g., to generate an error if a script attempts to add option value
+         using "=" rather than with whitespace.
+       + add new command-line option --default-button and library function
+         dlg_default_button() to retrieve the value set by the option
+         to provide a way to set the default button directly rather than
+         by combining --nook, etc. (patch by Zoltan Kelemen).
+       + amend include of unctrl.h to apply only to the case where curses.h
+         is included, to avoid conflict of ncurses' unctrl.h with a system
+         implementation (report by Martin Roedlach)
+       + add limit-check to dlg_toupper() in non-wide curses mode to work
+         when non-character values such as arrow-key codes are passed to
+         it (patch by Zoltan Kelemen).
+       + override timeout value, e.g., as set via --timeout command-line
+         option in pause widget because that interferes with pause's behavior
+         (report by Jan Spitalnik).
+       + modify samples/inputmenu* to allow ":" in renamed text (report by
+         Andreas Stoewing).
+       + modify double-quoting to make it more consistent, i.e., checklist
+         output is quoted only when needed.  This fixes the case where
+         single-quotes were used whether or not needed, but also modifies
+         older checklist behavior for double-quoting which always added those
+         (Debian #663664).
+       + correct exit-code used in inputmenu for "rename" button (Debian
+         #673041, forwarded from Ubuntu #333909, patch by Lebedev Vadim).
+       + update el.po and hr.po from
+               http://translationproject.org/latest/dialog/
+       + use checkbashisms to clean up sample scripts.
+
+2012/02/15
+       + modify menubox.c to use the same improvement as in checklist.c
+       + improve auto width computation for checklist widget by using
+         dlg_calc_list_width as in the non-auto case (Edho Arief).
+       + eliminate some bashisms in the sample scripts (Pedro Giffuni).
+       + makefile fixes from FreeBSD ports (Li-Wen Hsu):
+         + make --with-package option of configure script work.
+         + get LIBTOOL_VERSION from configure script, needed by
+           ${LIBTOOL_VERSION} in LIBTOOL_CREATE (LIB_CREATE in configure and
+           aclocal.m4)
+       + update cs.po and sr.po from
+               http://translationproject.org/latest/dialog/
+       + updated configure script macros, improving CF_XOPEN_SOURCE among
+         other fixes.
+
+2011/10/20
+       + fix --analyze warnings for clang versions 2.8, 2.9.
+       + add configure check for lint program.
+       + add check in dlg_getc() in case its window is freed as a side effect
+         of removing callbacks.
+       + fix logic in freeing subwindows (report by xDog Walker).
+       + fix a regression in logic distinguishing between inputmenu and menu
+         widgets (report by xDog Walker).
+       + minor fixes to library manpage.
+
+2011/10/18
+       + modify header-sh.in to work around limit on sed script length on
+         HPUX.
+       + add a special case of parameter parsing for "--trace" to the
+         initialization done before calling init_dialog(), to allow users to
+         capture the initial state of the parameter list before any options
+         are processed and removed.  This is only done if "--trace" is the
+         first option, otherwise it is handled in the common options as before
+         (report by xDog Walker).
+       + modify samples/testdata-8bit, discarding $1 from the parameter list
+         if it was used, so that the source'ing scripts can consistently use
+         "$@" to insert parameters before the widget, e.g., as an alternative
+         to using $DIALOGOPTS (report by xDog Walker).
+       + modify treatment of function pointers in menubox.c, make
+         dlg_renamed_menutext() and dlg_dummy_menutext() visible to library
+         users (request by xDog Walker).
+       + add dlg_count_real_columns(), use to modify centering for "--hline"
+         text to account for "\Z"s (report by xDog Walker).
+       + improve check in dlg_draw_arrows2() for conflict between the window
+         title and up-arrow marker to take into account that the given window
+         may not be the top-level window of the widget.
+       + change width of page up/down mouse areas in fselect panes to use the
+         full width of the panes rather than only the portion from the left
+         margin to the up/down arrow.
+       + add/use dlg_draw_box2() and dlg_draw_bottom_box2() to use the
+         secondary borders.
+       + modify rc-file read/write to accept/generate color values that refer
+         to previously-processed items in the color table.  This reduces the
+         number of distinct colors that must be specified to set up a color
+         scheme.
+       + add color table entries for secondary borders, i.e., the ones that
+         are normally drawn with the dialog's text-colors (Debian #641168).
+       + modify fselect.c to scan the current directory if the input field
+         happens to be empty (Debian #640905).
+       + repeated the discussion of environment variables that can override
+         the exit-status values in the manpage's return-codes section
+         (Debian #642105).
+       + add an example to the manpage showing how to override the form
+         widget's keys used for field/button traversal (Debian #642108).
+       + modify call to dlg_register_window() in formbox.c so that the editing
+         bindings are attached to the form sub-window rather than the
+         top-level dialog window.  Also change the name by which the editing
+         bindings are bound for editbox.c, fselect.c and inputbox.c, so that
+         the editing and navigation bindings can be different.
+       + correct logic in dlg_lookup_key() so that it matches the widget name
+         before using a binding from .dialogrc, allowing the inner/outer
+         windows of form and other editing widgets to have different bindings.
+       + modify dlg_register_window() to call dlg_dump_window_keys() after
+         its updates, via the --trace output, to supplement the manpage
+         description of key bindings (Debian #642108).
+       + add DLGK_FORM_PREV and DLGK_FORM_NEXT key-bindings to form.c, to
+         allow binding a single key to traverse both form-fields and buttons
+         (Debian #642108).
+       + modify dlg_parse_rc() to check for error return from
+         dlg_parse_bindkey().
+       + add function dlg_dump_window_keys(), to help with debugging widgets.
+       + add CR, LF, TAB, FF and ESC to table of curses names to help make
+         key bindings more readable.
+       + update table of dialog key-names so that helpfile and trace are
+         dumped properly.
+       + correct dlg_dump_keys(), which was showing only the first item in
+         the matched binding table.
+       + save/restore window current position in dlg_update_mixedgauge().
+       + pass return-code from pause_for_ok() from dlg_progressbox() when
+         pauseopt is set, rather than only DLG_OK.
+       + call setlocale() in init_dialog() rather than relying on on-demand
+         use within inputstr.c, since there are paths in textbox widget which
+         do not exercise the latter (report by xDog Walker).
+       + fix some places where checks for "\Z" were done without also checking
+         dialog_vars.colors (report by Moray Henderson).
+       + correct logic for DIALOGOPTS parsing so that the parse happens only
+         once unless memory leak checking is enabled (report by xDog Walker).
+       + remove an incorrect free() call in dlg_free_gauge() (report by xDog
+         Walker).
+       + modify dlg_trace_win() to log wide-characters (report by xDog Walker).
+       + make traces shorter by skipping repeated ERR's, but showing the
+         number skipped (report by xDog Walker).
+       + improve description in manpage to distinguish program box and
+         progress box from tailboxes (adapted from email by xDog Walker).
+       + modify dlg_trace_win() so that it looks for the topmost window in a
+         dialog.  Because subwindows share space with the top window, tracing
+         the latter shows the whole widget (report by xDog Walker).
+       + expand tracing so that each window is traced before soliciting input,
+         making the ^T feature to print a window on demand partly redundant
+         (suggested by xDog Walker).
+       + cosmetic change in dialog.h to avoid "*/*" strings from comments next
+         to "*" (report by xDog Walker).
+       + ensure result from dlg_align_columns() has trailing null on each
+         string.  Analysis was hindered by libc6's continuance of libc5's
+         early-1990s misfeature of clearing the result from malloc, noting
+         that libc6's documentation incorrectly claims that it does not do
+         this (report by xDog Walker).
+
 2011/07/07
        + modify util.c to work better with old versions of ncurses:
          + suppress use of wchgat() before fix in 20060715 which is needed
@@ -87,7 +250,7 @@ to it:
          + CF_XOPEN_SOURCE, workaround for cygwin to get ncurses' configure
            script to define _XOPEN_SOURCE_EXTENDED (cygwin's features.h
            doesn't do anything, so it needs a crutch).
-       + updated config.guess, config.sub
+       + update config.guess, config.sub
 
 2011/03/02
        + add --prgbox and --programbox (adapted from patch by David Boyd).
@@ -155,7 +318,7 @@ to it:
            CF_ADD_LIBDIR for the curses-directory here, from
            CF_NCURSES_CPPFLAGS and CF_NCURSES_LDFLAGS, so it will work even
            with the default checking, e.g., no --with-ncurses, etc.
-       + updated config.guess, config.sub
+       + update config.guess, config.sub
 
 2010/04/28
        + several improvements to configure script:
@@ -250,7 +413,7 @@ to it:
            libutf8 and libiconv.
        + update da.po, ru.po from
                http://translationproject.org/latest/dialog/
-       + updated config.guess, config.sub
+       + update config.guess, config.sub
 
 2008/08/19
        + amend changes to quoting; by default, the checklist widget quotes its
@@ -333,7 +496,7 @@ to it:
          ESC to be returned, quitting dialog (report by Reiner Huober).
        + add extern "C" declarations to dlg_keys.h so the corresponding
          function declarations are exported to C++ as C symbols.
-       + updated config.guess, config.sub
+       + update config.guess, config.sub
 
 2007/06/04
        + fix a memory leak in editbox.c
@@ -436,7 +599,7 @@ to it:
          CF_CURSES_LIBS, CF_INCLUDE_DIRS, CF_LARGEFILE, CF_MAKEFLAGS,
          CF_PATH_SYNTAX, CF_SUBDIR_PATH, CF_SUBST, CF_WITH_DBMALLOC,
          CF_WITH_DMALLOC, CF_WITH_LIBTOOL and CF_XOPEN_SOURCE.
-       + updated config.guess, config.sub
+       + update config.guess, config.sub
        > adapted fixes from SuSE package (Werner Fink):
          + add some limit-checks in dlg_draw_shadow().
          + make shadows resizable, using new dlg_move_window() in msgbox.c

Modified: vendor/dialog/dist/VERSION
==============================================================================
--- vendor/dialog/dist/VERSION  Sun Oct 21 13:42:38 2012        (r241815)
+++ vendor/dialog/dist/VERSION  Sun Oct 21 18:18:09 2012        (r241816)
@@ -1 +1 @@
-10:0:0 1.1     20110707
+10:4:0 1.1     20120706

Modified: vendor/dialog/dist/aclocal.m4
==============================================================================
--- vendor/dialog/dist/aclocal.m4       Sun Oct 21 13:42:38 2012        
(r241815)
+++ vendor/dialog/dist/aclocal.m4       Sun Oct 21 18:18:09 2012        
(r241816)
@@ -1,7 +1,7 @@
 dnl macros used for DIALOG configure script
-dnl $Id: aclocal.m4,v 1.82 2011/06/28 22:48:31 tom Exp $
+dnl $Id: aclocal.m4,v 1.87 2012/02/16 02:11:26 tom Exp $
 dnl ---------------------------------------------------------------------------
-dnl Copyright 1999-2010,2011 -- Thomas E. Dickey
+dnl Copyright 1999-2011,2012 -- Thomas E. Dickey
 dnl
 dnl Permission is hereby granted, free of charge, to any person obtaining a
 dnl copy of this software and associated documentation files (the
@@ -592,6 +592,31 @@ changequote([,])dnl
   AC_SUBST(GENCAT)
 ])dnl
 dnl ---------------------------------------------------------------------------
+dnl CF_ACVERSION_CHECK version: 2 updated: 2011/05/08 11:22:03
+dnl ------------------
+dnl Conditionally generate script according to whether we're using a given 
autoconf.
+dnl
+dnl $1 = version to compare against
+dnl $2 = code to use if AC_ACVERSION is at least as high as $1.
+dnl $3 = code to use if AC_ACVERSION is older than $1.
+define(CF_ACVERSION_CHECK,
+[
+ifdef([m4_version_compare],
+[m4_if(m4_version_compare(m4_defn([AC_ACVERSION]), [$1]), -1, [$3], [$2])],
+[CF_ACVERSION_COMPARE(
+AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])),
+AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)), AC_ACVERSION, [$2], 
[$3])])])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_ACVERSION_COMPARE version: 2 updated: 2011/04/14 20:56:50
+dnl --------------------
+dnl CF_ACVERSION_COMPARE(MAJOR1, MINOR1, TERNARY1,
+dnl                      MAJOR2, MINOR2, TERNARY2,
+dnl                      PRINTABLE2, not FOUND, FOUND)
+define(CF_ACVERSION_COMPARE,
+[ifelse(builtin([eval], [$2 < $5]), 1,
+[ifelse([$8], , ,[$8])],
+[ifelse([$9], , ,[$9])])])dnl
+dnl ---------------------------------------------------------------------------
 dnl CF_AC_PREREQ version: 2 updated: 1997/09/06 13:24:56
 dnl ------------
 dnl Conditionally generate script according to whether we're using the release
@@ -1227,7 +1252,7 @@ fi
 AC_CHECK_HEADERS($cf_cv_ncurses_header)
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_CURSES_LIBS version: 34 updated: 2011/04/09 14:51:08
+dnl CF_CURSES_LIBS version: 35 updated: 2011/08/09 21:06:37
 dnl --------------
 dnl Look for the curses libraries.  Older curses implementations may require
 dnl termcap/termlib to be linked as well.  Call CF_CURSES_CPPFLAGS first.
@@ -1307,7 +1332,7 @@ if test ".$ac_cv_func_initscr" != .yes ;
     # Check for library containing tgoto.  Do this before curses library
     # because it may be needed to link the test-case for initscr.
     AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
-        for cf_term_lib in $cf_check_list termcap termlib unknown
+        for cf_term_lib in $cf_check_list otermcap termcap termlib unknown
         do
             AC_CHECK_LIB($cf_term_lib,tgoto,[break])
         done
@@ -1533,6 +1558,30 @@ fi
 test "$cf_cv_curses_wacs_symbols" != no && AC_DEFINE(CURSES_WACS_SYMBOLS)
 ])dnl
 dnl ---------------------------------------------------------------------------
+dnl CF_CURSES_WGETPARENT version: 2 updated: 2011/10/17 20:12:04
+dnl --------------------
+dnl Check for curses support for directly determining the parent of a given
+dnl window.  Some implementations make this difficult, so we provide for
+dnl defining an application-specific function that gives this functionality.
+dnl
+dnl $1 = name of function to use if the feature is missing
+AC_DEFUN([CF_CURSES_WGETPARENT],[
+CF_CURSES_FUNCS(wgetparent)
+if test "x$cf_cv_func_wgetparent" != xyes
+then
+       AC_MSG_CHECKING(if WINDOW has _parent member)
+       AC_TRY_COMPILE([#include <${cf_cv_ncurses_header:-curses.h}>],
+               [WINDOW *p = stdscr->_parent],
+               [cf_window__parent=yes],
+               [cf_window__parent=no])
+       AC_MSG_RESULT($cf_window__parent)
+       if test "$cf_window__parent" = yes
+       then
+               AC_DEFINE(HAVE_WINDOW__PARENT)
+       fi
+fi
+])dnl
+dnl ---------------------------------------------------------------------------
 dnl CF_DIRNAME version: 4 updated: 2002/12/21 19:25:52
 dnl ----------
 dnl "dirname" is not portable, so we fake it with a shell script.
@@ -2337,7 +2386,7 @@ ifdef([AC_FUNC_FSEEKO],[
 ])
 ])
 dnl ---------------------------------------------------------------------------
-dnl CF_LD_RPATH_OPT version: 4 updated: 2011/06/04 20:09:13
+dnl CF_LD_RPATH_OPT version: 5 updated: 2011/07/17 14:48:41
 dnl ---------------
 dnl For the given system and compiler, find the compiler flags to pass to the
 dnl loader to use the "rpath" feature.
@@ -2361,7 +2410,7 @@ linux*|gnu*|k*bsd*-gnu) #(vi
 openbsd[[2-9]].*|mirbsd*) #(vi
        LD_RPATH_OPT="-Wl,-rpath,"
        ;;
-freebsd*) #(vi
+dragonfly*|freebsd*) #(vi
        LD_RPATH_OPT="-rpath "
        ;;
 netbsd*) #(vi
@@ -2420,11 +2469,11 @@ CF_SUBDIR_PATH($1,$2,lib)
 $1="$cf_library_path_list [$]$1"
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_LIB_PREFIX version: 8 updated: 2008/09/13 11:34:16
+dnl CF_LIB_PREFIX version: 9 updated: 2012/01/21 19:28:10
 dnl -------------
 dnl Compute the library-prefix for the given host system
 dnl $1 = variable to set
-AC_DEFUN([CF_LIB_PREFIX],
+define([CF_LIB_PREFIX],
 [
        case $cf_cv_system_name in #(vi
        OS/2*|os2*) #(vi
@@ -2645,7 +2694,7 @@ printf("old\n");
        ,[$1=no])
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_CONFIG version: 8 updated: 2010/07/08 05:17:30
+dnl CF_NCURSES_CONFIG version: 9 updated: 2011/11/26 15:42:05
 dnl -----------------
 dnl Tie together the configure-script macros for ncurses.
 dnl Prefer the "-config" script from ncurses 6.x, to simplify analysis.
@@ -2657,7 +2706,10 @@ AC_DEFUN([CF_NCURSES_CONFIG],
 cf_ncuconfig_root=ifelse($1,,ncurses,$1)
 
 echo "Looking for ${cf_ncuconfig_root}-config"
-AC_PATH_PROGS(NCURSES_CONFIG,${cf_ncuconfig_root}6-config 
${cf_ncuconfig_root}5-config,none)
+
+CF_ACVERSION_CHECK(2.52,
+       [AC_CHECK_TOOLS(NCURSES_CONFIG, ${cf_ncuconfig_root}6-config 
${cf_ncuconfig_root}5-config, none)],
+       [AC_PATH_PROGS(NCURSES_CONFIG, ${cf_ncuconfig_root}6-config 
${cf_ncuconfig_root}5-config, none)])
 
 if test "$NCURSES_CONFIG" != none ; then
 
@@ -3171,6 +3223,14 @@ AC_SUBST(PROG_EXT)
 test -n "$PROG_EXT" && AC_DEFINE_UNQUOTED(PROG_EXT,"$PROG_EXT")
 ])dnl
 dnl ---------------------------------------------------------------------------
+dnl CF_PROG_LINT version: 2 updated: 2009/08/12 04:43:14
+dnl ------------
+AC_DEFUN([CF_PROG_LINT],
+[
+AC_CHECK_PROGS(LINT, tdlint lint alint splint lclint)
+AC_SUBST(LINT_OPTS)
+])dnl
+dnl ---------------------------------------------------------------------------
 dnl CF_REMOVE_DEFINE version: 3 updated: 2010/01/09 11:05:50
 dnl ----------------
 dnl Remove all -U and -D options that refer to the given symbol from a list
@@ -3418,6 +3478,45 @@ ncursesw/term.h)
 esac
 ])dnl
 dnl ---------------------------------------------------------------------------
+dnl CF_TRY_XOPEN_SOURCE version: 1 updated: 2011/10/30 17:09:50
+dnl -------------------
+dnl If _XOPEN_SOURCE is not defined in the compile environment, check if we
+dnl can define it successfully.
+AC_DEFUN([CF_TRY_XOPEN_SOURCE],[
+AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[
+       AC_TRY_COMPILE([
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+],[
+#ifndef _XOPEN_SOURCE
+make an error
+#endif],
+       [cf_cv_xopen_source=no],
+       [cf_save="$CPPFLAGS"
+        CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
+        AC_TRY_COMPILE([
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+],[
+#ifdef _XOPEN_SOURCE
+make an error
+#endif],
+       [cf_cv_xopen_source=no],
+       [cf_cv_xopen_source=$cf_XOPEN_SOURCE])
+       CPPFLAGS="$cf_save"
+       ])
+])
+
+if test "$cf_cv_xopen_source" != no ; then
+       CF_REMOVE_DEFINE(CFLAGS,$CFLAGS,_XOPEN_SOURCE)
+       CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,_XOPEN_SOURCE)
+       cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
+       CF_ADD_CFLAGS($cf_temp_xopen_source)
+fi
+])
+dnl ---------------------------------------------------------------------------
 dnl CF_UNION_WAIT version: 5 updated: 1997/11/23 14:49:44
 dnl -------------
 dnl Check to see if the BSD-style union wait is declared.  Some platforms may
@@ -3680,7 +3779,7 @@ if test "$with_dmalloc" = yes ; then
 fi
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_WITH_LIBTOOL version: 27 updated: 2011/06/28 18:45:38
+dnl CF_WITH_LIBTOOL version: 28 updated: 2011/07/02 15:40:32
 dnl ---------------
 dnl Provide a configure option to incorporate libtool.  Define several useful
 dnl symbols for the makefile rules.
@@ -3781,7 +3880,7 @@ ifdef([AC_PROG_LIBTOOL],[
        # special hack to add -no-undefined (which libtool should do for itself)
        LT_UNDEF=
        case "$cf_cv_system_name" in #(vi
-       cygwin*|mingw32*|uwin*|aix[[456]]) #(vi
+       cygwin*|mingw32*|uwin*|aix[[4-7]]) #(vi
                LT_UNDEF=-no-undefined
                ;;
        esac
@@ -3950,7 +4049,7 @@ AC_TRY_LINK([
 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS 
-D_XOPEN_SOURCE_EXTENDED"
 ])dnl
 dnl ---------------------------------------------------------------------------
-dnl CF_XOPEN_SOURCE version: 35 updated: 2011/02/20 20:37:37
+dnl CF_XOPEN_SOURCE version: 42 updated: 2012/01/07 08:26:49
 dnl ---------------
 dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
 dnl or adapt to the vendor's definitions to get equivalent functionality,
@@ -3966,7 +4065,7 @@ cf_POSIX_C_SOURCE=ifelse([$2],,199506L,[
 cf_xopen_source=
 
 case $host_os in #(vi
-aix[[456]]*) #(vi
+aix[[4-7]]*) #(vi
        cf_xopen_source="-D_ALL_SOURCE"
        ;;
 cygwin) #(vi
@@ -3977,6 +4076,7 @@ darwin[[0-8]].*) #(vi
        ;;
 darwin*) #(vi
        cf_xopen_source="-D_DARWIN_C_SOURCE"
+       cf_XOPEN_SOURCE=
        ;;
 freebsd*|dragonfly*) #(vi
        # 5.x headers associate
@@ -3994,15 +4094,23 @@ hpux*) #(vi
        ;;
 irix[[56]].*) #(vi
        cf_xopen_source="-D_SGI_SOURCE"
+       cf_XOPEN_SOURCE=
        ;;
 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
        CF_GNU_SOURCE
        ;;
 mirbsd*) #(vi
-       # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
+       # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and 
other headers which use u_int / u_short types
+       cf_XOPEN_SOURCE=
+       CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
        ;;
 netbsd*) #(vi
-       # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks 
xterm, is not needed for ncursesw
+       cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 
for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
+       ;;
+openbsd[[4-9]]*) #(vi
+       # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, 
needed for ncursesw
+       cf_xopen_source="-D_BSD_SOURCE"
+       cf_XOPEN_SOURCE=600
        ;;
 openbsd*) #(vi
        # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for 
ncursesw
@@ -4016,36 +4124,11 @@ nto-qnx*) #(vi
 sco*) #(vi
        # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
        ;;
-solaris2.1[[0-9]]) #(vi
-       cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
-       ;;
-solaris2.[[1-9]]) #(vi
+solaris2.*) #(vi
        cf_xopen_source="-D__EXTENSIONS__"
        ;;
 *)
-       AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[
-       AC_TRY_COMPILE([#include <sys/types.h>],[
-#ifndef _XOPEN_SOURCE
-make an error
-#endif],
-       [cf_cv_xopen_source=no],
-       [cf_save="$CPPFLAGS"
-        CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
-        AC_TRY_COMPILE([#include <sys/types.h>],[
-#ifdef _XOPEN_SOURCE
-make an error
-#endif],
-       [cf_cv_xopen_source=no],
-       [cf_cv_xopen_source=$cf_XOPEN_SOURCE])
-       CPPFLAGS="$cf_save"
-       ])
-])
-       if test "$cf_cv_xopen_source" != no ; then
-               CF_REMOVE_DEFINE(CFLAGS,$CFLAGS,_XOPEN_SOURCE)
-               CF_REMOVE_DEFINE(CPPFLAGS,$CPPFLAGS,_XOPEN_SOURCE)
-               cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
-               CF_ADD_CFLAGS($cf_temp_xopen_source)
-       fi
+       CF_TRY_XOPEN_SOURCE
        CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
        ;;
 esac
@@ -4053,6 +4136,35 @@ esac
 if test -n "$cf_xopen_source" ; then
        CF_ADD_CFLAGS($cf_xopen_source)
 fi
+
+dnl In anything but the default case, we may have system-specific setting
+dnl which is still not guaranteed to provide all of the entrypoints that
+dnl _XOPEN_SOURCE would yield.
+if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
+       AC_MSG_CHECKING(if _XOPEN_SOURCE really is set)
+       AC_TRY_COMPILE([#include <stdlib.h>],[
+#ifndef _XOPEN_SOURCE
+make an error
+#endif],
+       [cf_XOPEN_SOURCE_set=yes],
+       [cf_XOPEN_SOURCE_set=no])
+       AC_MSG_RESULT($cf_XOPEN_SOURCE_set)
+       if test $cf_XOPEN_SOURCE_set = yes
+       then
+               AC_TRY_COMPILE([#include <stdlib.h>],[
+#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
+make an error
+#endif],
+               [cf_XOPEN_SOURCE_set_ok=yes],
+               [cf_XOPEN_SOURCE_set_ok=no])
+               if test $cf_XOPEN_SOURCE_set_ok = no
+               then
+                       AC_MSG_WARN(_XOPEN_SOURCE is lower than requested)
+               fi
+       else
+               CF_TRY_XOPEN_SOURCE
+       fi
+fi
 ])
 dnl ---------------------------------------------------------------------------
 dnl CF__CURSES_HEAD version: 2 updated: 2010/10/23 15:54:49

Modified: vendor/dialog/dist/arrows.c
==============================================================================
--- vendor/dialog/dist/arrows.c Sun Oct 21 13:42:38 2012        (r241815)
+++ vendor/dialog/dist/arrows.c Sun Oct 21 18:18:09 2012        (r241816)
@@ -1,5 +1,5 @@
 /*
- *  $Id: arrows.c,v 1.36 2011/06/27 09:13:56 tom Exp $
+ *  $Id: arrows.c,v 1.41 2011/10/20 23:37:17 tom Exp $
  *
  *  arrows.c -- draw arrows to indicate end-of-range for lists
  *
@@ -79,9 +79,9 @@ dlg_draw_helpline(WINDOW *win, bool deco
        const int *cols = dlg_index_columns(dialog_vars.help_line);
        int other = decorations ? (ON_LEFT + ON_RIGHT) : 0;
        int avail = (getmaxx(win) - other - 2);
-       int limit = dlg_limit_columns(dialog_vars.help_line, avail, 0);
+       int limit = dlg_count_real_columns(dialog_vars.help_line) + 2;
 
-       if (limit > 0) {
+       if (limit < avail) {
            getyx(win, cur_y, cur_x);
            other = decorations ? ON_LEFT : 0;
            (void) wmove(win, bottom, other + (avail - limit) / 2);
@@ -107,13 +107,14 @@ dlg_draw_arrows2(WINDOW *win,
     int cur_x, cur_y;
     int limit_x = getmaxx(win);
     bool draw_top = TRUE;
+    bool is_toplevel = (wgetparent(win) == stdscr);
 
     getyx(win, cur_y, cur_x);
 
     /*
      * If we're drawing a centered title, do not overwrite with the arrows.
      */
-    if (dialog_vars.title) {
+    if (dialog_vars.title && is_toplevel && (top - getbegy(win)) < MARGIN) {
        int have = (limit_x - dlg_count_columns(dialog_vars.title)) / 2;
        int need = x + 5;
        if (need > have)
@@ -123,11 +124,11 @@ dlg_draw_arrows2(WINDOW *win,
     if (draw_top) {
        (void) wmove(win, top, x);
        if (top_arrow) {
-           wattrset(win, merge_colors(uarrow_attr, attr));
+           (void) wattrset(win, merge_colors(uarrow_attr, attr));
            (void) add_acs(win, ACS_UARROW);
            (void) waddstr(win, "(-)");
        } else {
-           wattrset(win, attr);
+           (void) wattrset(win, attr);
            (void) whline(win, dlg_boxchar(ACS_HLINE), ON_LEFT);
        }
     }
@@ -135,11 +136,11 @@ dlg_draw_arrows2(WINDOW *win,
 
     (void) wmove(win, bottom, x);
     if (bottom_arrow) {
-       wattrset(win, merge_colors(darrow_attr, attr));
+       (void) wattrset(win, merge_colors(darrow_attr, attr));
        (void) add_acs(win, ACS_DARROW);
        (void) waddstr(win, "(+)");
     } else {
-       wattrset(win, borderattr);
+       (void) wattrset(win, borderattr);
        (void) whline(win, dlg_boxchar(ACS_HLINE), ON_LEFT);
     }
     mouse_mkbutton(bottom, x - 1, 6, KEY_NPAGE);
@@ -147,7 +148,7 @@ dlg_draw_arrows2(WINDOW *win,
     (void) wmove(win, cur_y, cur_x);
     wrefresh(win);
 
-    wattrset(win, save);
+    (void) wattrset(win, save);
 }
 
 void
@@ -166,14 +167,13 @@ dlg_draw_scrollbar(WINDOW *win,
     char buffer[80];
     int percent;
     int len;
-    int oldy, oldx, maxy, maxx;
+    int oldy, oldx;
 
     chtype save = dlg_get_attrs(win);
     int top_arrow = (first_data != 0);
     int bottom_arrow = (next_data < total_data);
 
     getyx(win, oldy, oldx);
-    getmaxyx(win, maxy, maxx);
 
     dlg_draw_helpline(win, TRUE);
     if (bottom_arrow || top_arrow || dialog_state.use_scrollbar) {
@@ -187,12 +187,12 @@ dlg_draw_scrollbar(WINDOW *win,
        else if (percent > 100)
            percent = 100;
 
-       wattrset(win, position_indicator_attr);
+       (void) wattrset(win, position_indicator_attr);
        (void) sprintf(buffer, "%d%%", percent);
        (void) wmove(win, bottom, right - 7);
        (void) waddstr(win, buffer);
        if ((len = dlg_count_columns(buffer)) < 4) {
-           wattrset(win, border_attr);
+           (void) wattrset(win, border_attr);
            whline(win, dlg_boxchar(ACS_HLINE), 4 - len);
        }
     }
@@ -212,7 +212,7 @@ dlg_draw_scrollbar(WINDOW *win,
            if (bar_high < all_high) {
                wmove(win, top + 1, right);
 
-               wattrset(win, save);
+               (void) wattrset(win, save);
                wvline(win, ACS_VLINE | A_REVERSE, all_high);
 
                bar_y = BARSIZE(this_data);
@@ -221,7 +221,7 @@ dlg_draw_scrollbar(WINDOW *win,
 
                wmove(win, top + 1 + bar_y, right);
 
-               wattrset(win, position_indicator_attr);
+               (void) wattrset(win, position_indicator_attr);
                wattron(win, A_REVERSE);
                wvline(win, ACS_BLOCK, bar_high);
            }
@@ -236,7 +236,7 @@ dlg_draw_scrollbar(WINDOW *win,
                     attr,
                     borderattr);
 
-    wattrset(win, save);
+    (void) wattrset(win, save);
     wmove(win, oldy, oldx);
 }
 
@@ -255,6 +255,6 @@ dlg_draw_arrows(WINDOW *win,
                     x,
                     top,
                     bottom,
-                    menubox_attr,
+                    menubox_border2_attr,
                     menubox_border_attr);
 }

Modified: vendor/dialog/dist/buttons.c
==============================================================================
--- vendor/dialog/dist/buttons.c        Sun Oct 21 13:42:38 2012        
(r241815)
+++ vendor/dialog/dist/buttons.c        Sun Oct 21 18:18:09 2012        
(r241816)
@@ -1,9 +1,9 @@
 /*
- *  $Id: buttons.c,v 1.86 2011/06/28 10:46:46 tom Exp $
+ *  $Id: buttons.c,v 1.90 2012/07/01 20:42:05 tom Exp $
  *
  *  buttons.c -- draw buttons, e.g., OK/Cancel
  *
- *  Copyright 2000-2010,2011   Thomas E. Dickey
+ *  Copyright 2000-2011,2012   Thomas E. Dickey
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Lesser General Public License, version 2.1
@@ -104,11 +104,11 @@ print_button(WINDOW *win, char *label, i
                         : button_label_inactive_attr);
 
     (void) wmove(win, y, x);
-    wattrset(win, selected
-            ? button_active_attr
-            : button_inactive_attr);
+    (void) wattrset(win, selected
+                   ? button_active_attr
+                   : button_inactive_attr);
     (void) waddstr(win, "<");
-    wattrset(win, label_attr);
+    (void) wattrset(win, label_attr);
     for (i = 0; i < limit; ++i) {
        int first = indx[i];
        int last = indx[i + 1];
@@ -120,14 +120,14 @@ print_button(WINDOW *win, char *label, i
                const char *temp = (label + first);
                int cmp = string_to_char(&temp);
                if (dlg_isupper(cmp)) {
-                   wattrset(win, key_attr);
+                   (void) wattrset(win, key_attr);
                    state = 1;
                }
                break;
            }
 #endif
            if (dlg_isupper(UCH(label[first]))) {
-               wattrset(win, key_attr);
+               (void) wattrset(win, key_attr);
                state = 1;
            }
            break;
@@ -138,9 +138,9 @@ print_button(WINDOW *win, char *label, i
        }
        waddnstr(win, label + first, last - first);
     }
-    wattrset(win, selected
-            ? button_active_attr
-            : button_inactive_attr);
+    (void) wattrset(win, selected
+                   ? button_active_attr
+                   : button_inactive_attr);
     (void) waddstr(win, ">");
     (void) wmove(win, y, x + ((int) strspn(label, " ")) + 1);
 }
@@ -310,7 +310,7 @@ dlg_draw_buttons(WINDOW *win,
     (void) wmove(win, final_y, final_x);
     wrefresh(win);
     free(buffer);
-    wattrset(win, save);
+    (void) wattrset(win, save);
 }
 
 /*
@@ -488,10 +488,12 @@ dlg_exit_buttoncode(int button)
 const char **
 dlg_ok_label(void)
 {
-    static const char *labels[3];
+    static const char *labels[4];
     int n = 0;
 
     labels[n++] = my_ok_label();
+    if (dialog_vars.extra_button)
+       labels[n++] = my_extra_label();
     if (dialog_vars.help_button)
        labels[n++] = my_help_label();
     labels[n] = 0;
@@ -537,6 +539,7 @@ dlg_ok_buttoncode(int button)
     } else if (dialog_vars.help_button && (button == n)) {
        result = DLG_EXIT_HELP;
     }
+    dlg_trace_msg("# dlg_ok_buttoncode(%d) = %d\n", button, result);
     return result;
 }
 
@@ -575,7 +578,7 @@ dlg_prev_ok_buttonindex(int current, int
 /*
  * Find the button-index for the "OK" or "Cancel" button, according to
  * whether --defaultno is given.  If --nocancel was given, we always return
- * the index for "OK".
+ * the index for the first button (usually "OK" unless --nook was used).
  */
 int
 dlg_defaultno_button(void)
@@ -586,6 +589,30 @@ dlg_defaultno_button(void)
        while (dlg_ok_buttoncode(result) != DLG_EXIT_CANCEL)
            ++result;
     }
+    dlg_trace_msg("# dlg_defaultno_button() = %d\n", result);
+    return result;
+}
+
+/*
+ * Find the button-index for a button named with --default-button. If the
+ * option was not specified, or if the selected button does not exist, return
+ * the index of the first button (usually "OK" unless --nook was used).
+ */
+int
+dlg_default_button(void)
+{
+    int i, n;
+    int result = 0;
+
+    if (dialog_vars.default_button >= 0) {
+       for (i = 0; (n = dlg_ok_buttoncode(i)) >= 0; i++) {
+           if (n == dialog_vars.default_button) {
+               result = i;
+               break;
+           }
+       }
+    }
+    dlg_trace_msg("# dlg_default_button() = %d\n", result);
     return result;
 }
 

Modified: vendor/dialog/dist/calendar.c
==============================================================================
--- vendor/dialog/dist/calendar.c       Sun Oct 21 13:42:38 2012        
(r241815)
+++ vendor/dialog/dist/calendar.c       Sun Oct 21 18:18:09 2012        
(r241816)
@@ -1,9 +1,9 @@
 /*
- * $Id: calendar.c,v 1.62 2011/06/29 09:47:06 tom Exp $
+ * $Id: calendar.c,v 1.66 2012/07/01 18:13:07 Zoltan.Kelemen Exp $
  *
  *  calendar.c -- implements the calendar box
  *
- *  Copyright 2001-2010,2011   Thomas E. Dickey
+ *  Copyright 2001-2011,2012   Thomas E. Dickey
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Lesser General Public License, version 2.1
@@ -225,12 +225,14 @@ draw_day(BOX * data, struct tm *current)
     int prev = days_in_month(current, -1);
 
     werase(data->window);
-    dlg_draw_box(data->parent,
-                data->y - MARGIN, data->x - MARGIN,
-                data->height + (2 * MARGIN), data->width + (2 * MARGIN),
-                menubox_border_attr, menubox_attr);    /* border of daybox */
+    dlg_draw_box2(data->parent,
+                 data->y - MARGIN, data->x - MARGIN,
+                 data->height + (2 * MARGIN), data->width + (2 * MARGIN),
+                 menubox_attr,
+                 menubox_border_attr,
+                 menubox_border2_attr);
 
-    wattrset(data->window, menubox_attr);      /* daynames headline */
+    (void) wattrset(data->window, menubox_attr);       /* daynames headline */
     for (x = 0; x < 7; x++) {
        mvwprintw(data->window,
                  0, (x + 1) * cell_wide, "%*.*s ",
@@ -246,7 +248,7 @@ draw_day(BOX * data, struct tm *current)
     week = (current->tm_yday + 6 + mday - current->tm_mday) / 7;
 
     for (y = 1; mday < last; y++) {
-       wattrset(data->window, menubox_attr);   /* weeknumbers headline */
+       (void) wattrset(data->window, menubox_attr);    /* weeknumbers headline 
*/
        mvwprintw(data->window,
                  y, 0,
                  "%*d ",
@@ -257,9 +259,9 @@ draw_day(BOX * data, struct tm *current)
            ++mday;
            if (wmove(data->window, y, this_x) == ERR)
                continue;
-           wattrset(data->window, item_attr);  /* not selected days */
+           (void) wattrset(data->window, item_attr);   /* not selected days */
            if (mday == day) {
-               wattrset(data->window, item_selected_attr);     /* selected day 
*/
+               (void) wattrset(data->window, item_selected_attr);      /* 
selected day */
                save_y = y;
                save_x = this_x;
            }
@@ -294,13 +296,15 @@ draw_month(BOX * data, struct tm *curren
 
     month = current->tm_mon + 1;
 
-    wattrset(data->parent, dialog_attr);       /* Headline "Month" */
+    (void) wattrset(data->parent, dialog_attr);                /* Headline 
"Month" */
     (void) mvwprintw(data->parent, data->y - 2, data->x - 1, _("Month"));
-    dlg_draw_box(data->parent,
-                data->y - 1, data->x - 1,
-                data->height + 2, data->width + 2,
-                menubox_border_attr, menubox_attr);    /* borders of monthbox 
*/
-    wattrset(data->window, item_attr); /* color the month selection */
+    dlg_draw_box2(data->parent,
+                 data->y - 1, data->x - 1,
+                 data->height + 2, data->width + 2,
+                 menubox_attr,
+                 menubox_border_attr,
+                 menubox_border2_attr);
+    (void) wattrset(data->window, item_attr);  /* color the month selection */
     mvwprintw(data->window, 0, 0, "%s", nameOfMonth(month - 1));
     wmove(data->window, 0, 0);
     return 0;
@@ -314,13 +318,15 @@ draw_year(BOX * data, struct tm *current
 {
     int year = current->tm_year + 1900;
 
-    wattrset(data->parent, dialog_attr);       /* Headline "Year" */
+    (void) wattrset(data->parent, dialog_attr);                /* Headline 
"Year" */
     (void) mvwprintw(data->parent, data->y - 2, data->x - 1, _("Year"));
-    dlg_draw_box(data->parent,
-                data->y - 1, data->x - 1,
-                data->height + 2, data->width + 2,
-                menubox_border_attr, menubox_attr);    /* borders of yearbox */
-    wattrset(data->window, item_attr); /* color the year selection */
+    dlg_draw_box2(data->parent,
+                 data->y - 1, data->x - 1,
+                 data->height + 2, data->width + 2,
+                 menubox_attr,
+                 menubox_border_attr,
+                 menubox_border2_attr);
+    (void) wattrset(data->window, item_attr);  /* color the year selection */
     mvwprintw(data->window, 0, 0, "%4d", year);
     wmove(data->window, 0, 0);
     return 0;
@@ -430,7 +436,7 @@ dialog_calendar(const char *title,
     WINDOW *dialog;
     time_t now_time = time((time_t *) 0);
     struct tm current;
-    int state = dlg_defaultno_button();
+    int state = dlg_default_button();
     const char **buttons = dlg_ok_labels();
     char *prompt = dlg_strclone(subtitle);
     int mincols = MIN_WIDE;
@@ -491,11 +497,11 @@ dialog_calendar(const char *title,
     dlg_register_buttons(dialog, "calendar", buttons);
 
     /* mainbox */
-    dlg_draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
-    dlg_draw_bottom_box(dialog);
+    dlg_draw_box2(dialog, 0, 0, height, width, dialog_attr, border_attr, 
border2_attr);
+    dlg_draw_bottom_box2(dialog, border_attr, border2_attr, dialog_attr);
     dlg_draw_title(dialog, title);
 
-    wattrset(dialog, dialog_attr);     /* text mainbox */
+    (void) wattrset(dialog, dialog_attr);      /* text mainbox */
     dlg_print_autowrap(dialog, prompt, height, width);
 
     /* compute positions of day, month and year boxes */
@@ -539,6 +545,7 @@ dialog_calendar(const char *title,
        return CleanupResult(DLG_EXIT_ERROR, dialog, prompt, &save_vars);
     }
 
+    dlg_trace_win(dialog);
     while (result == DLG_EXIT_UNKNOWN) {
        BOX *obj = (state == sDAY ? &dy_box
                    : (state == sMONTH ? &mn_box :

Modified: vendor/dialog/dist/checklist.c
==============================================================================
--- vendor/dialog/dist/checklist.c      Sun Oct 21 13:42:38 2012        
(r241815)
+++ vendor/dialog/dist/checklist.c      Sun Oct 21 18:18:09 2012        
(r241816)
@@ -1,9 +1,9 @@
 /*
- *  $Id: checklist.c,v 1.127 2011/06/29 23:04:09 tom Exp $
+ *  $Id: checklist.c,v 1.135 2012/07/01 16:30:04 Zoltan.Kelemen Exp $
  *
  *  checklist.c -- implements the checklist box
  *
- *  Copyright 2000-2010,2011   Thomas E. Dickey
+ *  Copyright 2000-2011,2012   Thomas E. Dickey
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Lesser General Public License, version 2.1
@@ -58,7 +58,7 @@ print_arrows(WINDOW *win,
                       box_x + list_width,
                       box_y,
                       box_y + list_height + 1,
-                      menubox_attr,
+                      menubox_border2_attr,

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to