From 8e9607083b7e540a8897aa8b923e7ac4f3df9b12 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 26 Aug 2014 15:39:04 -0400 Subject: Got rid of the modal queue now that it's no longer needed. --- redo/uitask_windows.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'redo/uitask_windows.c') 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); -- cgit v1.2.3