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').
This commit is contained in:
parent
55bce0c120
commit
5a97d36067
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user