summaryrefslogtreecommitdiff
path: root/redo/window_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-26 15:39:04 -0400
committerPietro Gagliardi <[email protected]>2014-08-26 15:39:04 -0400
commit8e9607083b7e540a8897aa8b923e7ac4f3df9b12 (patch)
tree615efc60d8106550251d4e3229bb57acd15fe630 /redo/window_windows.go
parent428c20d4f58cef7bb1d00895148dbe33bba5dc2d (diff)
Got rid of the modal queue now that it's no longer needed.
Diffstat (limited to 'redo/window_windows.go')
-rw-r--r--redo/window_windows.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/redo/window_windows.go b/redo/window_windows.go
index 5789df8..60f89d1 100644
--- a/redo/window_windows.go
+++ b/redo/window_windows.go
@@ -14,7 +14,6 @@ import "C"
type window struct {
hwnd C.HWND
shownbefore bool
- modallevel int
closing *event
@@ -100,21 +99,3 @@ func windowClosing(data unsafe.Pointer) {
C.windowClose(w.hwnd)
}
}
-
-//export windowBeginModal
-func windowBeginModal(data unsafe.Pointer) {
- w := (*window)(data)
- C.EnableWindow(w.hwnd, C.FALSE)
- w.modallevel++
-}
-
-//export windowEndModal
-func windowEndModal(data unsafe.Pointer) {
- w := (*window)(data)
- w.modallevel--
- if w.modallevel == 0 {
- C.EnableWindow(w.hwnd, C.TRUE)
- } else if w.modallevel < 0 {
- panic("window begin/end modal mismatch")
- }
-}