diff options
author | Matt Ebb <matt@mke3.net> | 2005-10-05 00:17:30 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2005-10-05 00:17:30 +0400 |
commit | b6817b55e80f3e2ffa66a2cbdaf3a669a9d94e80 (patch) | |
tree | 272f212304ff6028b0c0e6523c3aa8fad7fe0821 /source/blender/src/toolbox.c | |
parent | 5b25951013caa841fb0bbcf2aeb78b74e80c0e50 (diff) |
* Added from tuhopuu: icons in ok/confirmation popups
( http://mke3.net/blender/interface/controls/error_ok_icons.png )
A bit nicer and quick to visually recognise at a glance
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r-- | source/blender/src/toolbox.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 5927820b30c..d270f3184ff 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -1068,9 +1068,12 @@ int okee(char *str, ...) { va_list ap; int ret; + char titlestr[256]; + + sprintf(titlestr, "OK? %%i%d", ICON_HELP); va_start(ap, str); - ret= vconfirm("OK?", str, ap); + ret= vconfirm(titlestr, str, ap); va_end(ap); return ret; @@ -1089,15 +1092,18 @@ void error(char *fmt, ...) { va_list ap; char nfmt[256]; - - sprintf(nfmt, "ERROR: %s", fmt); - + char titlestr[256]; + + sprintf(titlestr, "Error %%i%d", ICON_ERROR); + + sprintf(nfmt, "%s", fmt); + va_start(ap, fmt); if (G.background || !G.curscreen || (R.flag & R_RENDERING)) { vprintf(nfmt, ap); printf("\n"); } else { - vconfirm(NULL, nfmt, ap); + vconfirm(titlestr, nfmt, ap); } va_end(ap); } |