summaryrefslogtreecommitdiff
path: root/test/main.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 /test/main.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 'test/main.go')
-rw-r--r--test/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/main.go b/test/main.go
index 44f57a1..f19c655 100644
--- a/test/main.go
+++ b/test/main.go
@@ -248,7 +248,9 @@ func myMain() {
w := NewWindow("Main Window", 320, 240)
b := NewButton("Click Me")
b2 := NewButton("Or Me")
- s2 := NewHorizontalStack(b, b2)
+ bmsg := NewButton("Or Even Me!")
+ s2 := NewHorizontalStack(b, b2, bmsg)
+ s2.SetStretchy(2)
c := NewCheckbox("Check Me")
cb1 := NewEditableCombobox("You can edit me!", "Yes you can!", "Yes you will!")
cb2 := NewCombobox("You can't edit me!", "No you can't!", "No you won't!")
@@ -371,6 +373,9 @@ _=curtime
pbar.SetProgress(-1)
case <-invalidButton.Clicked:
invalidTest(cb1, lb1, nil, nil)
+ case <-bmsg.Clicked:
+ MsgBox("Title Only", "")
+ MsgBox("Title and Text", "Text and Title")
}
}
w.Hide()