Author: dteske
Date: Tue Jun 18 08:54:02 2013
New Revision: 251912
URL: http://svnweb.freebsd.org/changeset/base/251912

Log:
  Change the f_dialog_msgbox() arguments in `dialog.subr' to accomodate an
  $hline argument for setting the --hline parameter value. This change does
  not effect any current modules as it turns out that not one single usage of
  f_dialog_msgbox() relied on accepting more than a first argument (read: all
  occurrences quoted the first parameter; so $* was never depended upon).
  
  This will allow some custom invocations of --msgbox to roll over to this
  function (for example, in `mouse/disable').

Modified:
  head/usr.sbin/bsdconfig/share/dialog.subr

Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr   Tue Jun 18 08:40:16 2013        
(r251911)
+++ head/usr.sbin/bsdconfig/share/dialog.subr   Tue Jun 18 08:54:02 2013        
(r251912)
@@ -1501,7 +1501,7 @@ f_xdialog_info()
 
 ############################################################ MSGBOX FUNCTIONS
 
-# f_dialog_msgbox $msg_text ...
+# f_dialog_msgbox $msg_text [$hline]
 #
 # Throw up a dialog(1) msgbox. The msgbox remains until the user presses ENTER
 # or ESC, acknowledging the modal dialog.
@@ -1511,12 +1511,13 @@ f_xdialog_info()
 #
 f_dialog_msgbox()
 {
-       local msg_text="$*" height width
+       local msg_text="$1" hline="$2" height width
        f_dialog_buttonbox_size height width \
-               "$DIALOG_TITLE" "$DIALOG_BACKTITLE" "$msg_text"
+               "$DIALOG_TITLE" "$DIALOG_BACKTITLE" "$msg_text" "$hline"
        $DIALOG \
                --title "$DIALOG_TITLE"         \
                --backtitle "$DIALOG_BACKTITLE" \
+               --hline "$hline"                \
                --ok-label "$msg_ok"            \
                --msgbox "$msg_text" $height $width
 }
_______________________________________________
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