summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-28 16:02:50 -0400
committerPietro Gagliardi <[email protected]>2014-06-28 16:02:50 -0400
commit02d6a03ba3a657aa7b50d072771361236bb207a3 (patch)
tree84b3f82db75150b88f31ef7547925c5f78664025 /test/main.go
parentcd116033a380a119a3a025cb54873b5732cb3803 (diff)
Decided to make dialogs code-modal; will figure out how to get the behavior I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works...
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/main.go b/test/main.go
index 93ee5fc..7d3ddd9 100644
--- a/test/main.go
+++ b/test/main.go
@@ -559,14 +559,13 @@ func (handler *dialoghandler) Event(e Event, d Data) {
if e == Clicked {
switch d {
case handler.bMsgBox:
-// dialog_sret = handler.w.MsgBox("Message Box", "Dismiss")
+// handler.send(CustomEvent, "DIALOG")
+ handler.w.MsgBox("Message Box", "Dismiss")
// handler.send(CustomEvent, nil)
case handler.bMsgBoxError:
-// dialog_sret = handler.w.MsgBoxError("Message Box", "Dismiss")
+// handler.send(CustomEvent, "DIALOG")
+ handler.w.MsgBoxError("Message Box", "Dismiss")
// handler.send(CustomEvent, nil)
-// case <-dialog_sret:
-// dialog_sret = nil
-// handler.send(CustomEvent + 1, nil)
case handler.bCenter:
handler.w.Center()
}