summaryrefslogtreecommitdiff
path: root/dialog.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-28 16:37:55 -0400
committerPietro Gagliardi <[email protected]>2014-06-28 16:37:55 -0400
commitaffc65a5a402534527c4d4fbc5b381b5b1283445 (patch)
treeef34e20694a809577b2d609d9e3ffadfe64bbc12 /dialog.go
parent02d6a03ba3a657aa7b50d072771361236bb207a3 (diff)
Fixed the build. New API works on Windows! Also removed TODO on dialogs in Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it.
Diffstat (limited to 'dialog.go')
-rw-r--r--dialog.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/dialog.go b/dialog.go
index e676127..6c62bfd 100644
--- a/dialog.go
+++ b/dialog.go
@@ -12,11 +12,7 @@ const (
// sentinel (not nil so programmer errors don't go undetected)
// this window is invalid and cannot be used directly
// notice the support it uses
-var dialogWindow = &Window{
- sysData: &sysData{
- winhandler: dh,
- }
-}
+var dialogWindow = new(Window)
// 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.