summaryrefslogtreecommitdiff
path: root/dialog.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-10 12:34:30 -0400
committerPietro Gagliardi <[email protected]>2014-04-10 12:35:37 -0400
commit013e8707dac20dee4c72840989b69757bf26e72b (patch)
tree48da8ee617708a48e031d8cf2a7a21cdfb0205a8 /dialog.go
parent9e185d815eec14ea9f50ffbbbf171cf78e597808 (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.go')
-rw-r--r--dialog.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dialog.go b/dialog.go
index 5173a5d..ae94685 100644
--- a/dialog.go
+++ b/dialog.go
@@ -8,7 +8,8 @@ import (
// MsgBox displays an informational message box to the user with just an OK button.
// primaryText should be a short string describing the message, and will be displayed with additional emphasis on platforms that support it.
-// secondaryText can be used to provide more information.
+// Optionally, secondaryText can be used to show additional information.
+// If you pass an empty string for secondaryText, neither additional information nor space for additional information will be shown.
// On platforms that allow for the message box window to have a title, os.Args[0] is used.
func MsgBox(primaryText string, secondaryText string) {
msgBox(primaryText, secondaryText)