1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Crude Event Log implementation for the Mac. I'm fairly convinced now that

using the List Manager was entirely the wrong decision on my part, so I'll
probably rewrite this to use TextEdit at some point, but it's better than
stderr even so.

[originally from svn r2811]
This commit is contained in:
Ben Harris
2003-02-07 01:38:12 +00:00
parent 60c9d7bae3
commit 2c10ece60d
7 changed files with 324 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $Id: mac.c,v 1.46 2003/02/07 01:33:24 ben Exp $ */
/* $Id: mac.c,v 1.47 2003/02/07 01:38:12 ben Exp $ */
/*
* Copyright (c) 1999 Ben Harris
* All rights reserved.
@ -362,6 +362,9 @@ static void mac_contentclick(WindowPtr window, EventRecord *event) {
case wSettings:
mac_clickdlg(window, event);
break;
case wEventLog:
mac_clickeventlog(window, event);
break;
}
}
@ -370,6 +373,10 @@ static void mac_growwindow(WindowPtr window, EventRecord *event) {
switch (mac_windowtype(window)) {
case wTerminal:
mac_growterm(window, event);
break;
case wEventLog:
mac_groweventlog(window, event);
break;
}
}
@ -388,6 +395,9 @@ static void mac_activatewindow(WindowPtr window, EventRecord *event) {
case wAbout:
mac_activateabout(window, event);
break;
case wEventLog:
mac_activateeventlog(window, event);
break;
}
}
@ -432,6 +442,9 @@ static void mac_updatewindow(WindowPtr window)
case wLicence:
mac_updatelicence(window);
break;
case wEventLog:
mac_updateeventlog(window);
break;
}
}
@ -674,6 +687,8 @@ static void mac_adjustmenus(void) {
DisableItem(menu, iDuplicate);
menu = GetMenuHandle(mEdit);
DisableItem(menu, 0);
menu = GetMenuHandle(mWindow);
DisableItem(menu, 0); /* Until we get more than 1 item on it. */
break;
}
DrawMenuBar();