From 013e8707dac20dee4c72840989b69757bf26e72b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 10 Apr 2014 12:34:30 -0400 Subject: 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...). --- test/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') 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() -- cgit v1.2.3