diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-10 12:34:30 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-10 12:35:37 -0400 |
| commit | 013e8707dac20dee4c72840989b69757bf26e72b (patch) | |
| tree | 48da8ee617708a48e031d8cf2a7a21cdfb0205a8 /dialog_windows.go | |
| parent | 9e185d815eec14ea9f50ffbbbf171cf78e597808 (diff) | |
Removed unnecessary space if the secondaryText argument to MsgBox***() is an empty string. This doesn't change much on Mac OS X; it always shows the informational text field, showing an empty string by default. On GTK+ it seems to get rid of the bold over the primary text; I'm going to assume this is intentional (it looks that way on GTK+ 2; the HIG docs have outdated screenshots...).
Diffstat (limited to 'dialog_windows.go')
| -rw-r--r-- | dialog_windows.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dialog_windows.go b/dialog_windows.go index 4627110..6f22df4 100644 --- a/dialog_windows.go +++ b/dialog_windows.go @@ -79,7 +79,10 @@ var ( func _msgBox(primarytext string, secondarytext string, uType uint32) (result int) { // http://msdn.microsoft.com/en-us/library/windows/desktop/aa511267.aspx says "Use task dialogs whenever appropriate to achieve a consistent look and layout. Task dialogs require Windows Vista® or later, so they aren't suitable for earlier versions of Windows. If you must use a message box, separate the main instruction from the supplemental instruction with two line breaks." - text := primarytext + "\n\n" + secondarytext + text := primarytext + if secondarytext != "" { + text += "\n\n" + secondarytext + } ret := make(chan uiret) defer close(ret) uitask <- &uimsg{ |
