Mercurial > octave-nkf
diff scripts/gui/questdlg.m @ 19630:0e1f5a750d00
maint: Periodic merge of gui-release to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:24:46 -0500 |
parents | 93b3d03b05e7 446c46af4b42 |
children | a9952a647d52 |
line wrap: on
line diff
--- a/scripts/gui/questdlg.m Tue Jan 20 09:55:41 2015 -0500 +++ b/scripts/gui/questdlg.m Tue Jan 20 10:24:46 2015 -0500 @@ -32,7 +32,7 @@ ## line. The optional @var{title} (character string) can be used to ## decorate the dialog caption. ## -## The string @var{default} identifies the default button, +## The string @var{default} identifies the default button, ## which is activated by pressing the @key{ENTER} key. ## It must match one of the strings given in @var{btn1}, @var{btn2}, or ## @var{btn3}. @@ -41,7 +41,7 @@ ## the default captions @qcode{"Yes"}, @qcode{"No"}, and @qcode{"Cancel"} are ## used. ## -## If only two button captions, @var{btn1} and @var{btn2}, are specified +## If only two button captions, @var{btn1} and @var{btn2}, are specified ## the dialog will have only these two buttons. ## ## @seealso{errordlg, helpdlg, inputdlg, listdlg, warndlg} @@ -52,7 +52,7 @@ if (nargin < 1 || nargin > 6) print_usage (); endif - + if (! ischar (msg)) if (iscell (msg)) msg = sprintf ("%s\n", msg{:});