summaryrefslogtreecommitdiff
path: root/redo/uitask_windows.c
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/uitask_windows.c
parent428c20d4f58cef7bb1d00895148dbe33bba5dc2d (diff)
Got rid of the modal queue now that it's no longer needed.
Diffstat (limited to 'redo/uitask_windows.c')
-rw-r--r--redo/uitask_windows.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/redo/uitask_windows.c b/redo/uitask_windows.c
index 6e5e384..e7f9b5e 100644
--- a/redo/uitask_windows.c
+++ b/redo/uitask_windows.c
@@ -2,7 +2,6 @@
#include "winapi_windows.h"
#include "_cgo_export.h"
-#include "modalqueue.h"
// note that this includes the terminating '\0'
// this also assumes WC_TABCONTROL is longer than areaWindowClass
@@ -117,13 +116,6 @@ HWND msgwin;
#define msgwinclass L"gouimsgwin"
-static BOOL CALLBACK beginEndModalAll(HWND hwnd, LPARAM lParam)
-{
- if (hwnd != msgwin)
- SendMessageW(hwnd, (UINT) lParam, 0, 0);
- return TRUE;
-}
-
static LRESULT CALLBACK msgwinproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
LRESULT shared;
@@ -133,18 +125,7 @@ static LRESULT CALLBACK msgwinproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
return shared;
switch (uMsg) {
case msgRequest:
- // in modal?
- if (!queueIfModal((void *) lParam))
- // nope, we can run now
- doissue((void *) lParam);
- return 0;
- case msgBeginModal:
- beginModal();
- EnumThreadWindows(GetCurrentThreadId(), beginEndModalAll, msgBeginModal);
- return 0;
- case msgEndModal:
- endModal();
- EnumThreadWindows(GetCurrentThreadId(), beginEndModalAll, msgEndModal);
+ doissue((void *) lParam);
return 0;
case msgOpenFileDone:
finishOpenFile((WCHAR *) wParam, (void *) lParam);