Implement update_special_menu(), which calls mac_adjustmenus() as appropriate.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Apr 2003 14:34:06 +0000 (14:34 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Apr 2003 14:34:06 +0000 (14:34 +0000)
Eventually, mac_adjustmenus() will handle populating the Specials menu.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3058 cda61777-01e9-0310-a592-d414129be87e

mac/mac.c

index 1552c2f..45b4b21 100644 (file)
--- a/mac/mac.c
+++ b/mac/mac.c
@@ -1,4 +1,4 @@
-/* $Id: mac.c,v 1.56 2003/03/25 23:18:59 ben Exp $ */
+/* $Id: mac.c,v 1.57 2003/04/05 14:34:06 ben Exp $ */
 /*
  * Copyright (c) 1999, 2003 Ben Harris
  * All rights reserved.
@@ -779,6 +779,16 @@ void platform_get_x11_auth(char *display, int *proto,
     /* SGT: I have no idea whether Mac X servers need anything here. */
 }
 
+void update_specials_menu(void *frontend)
+{
+    Session *s = frontend;
+    WindowPtr front;
+
+    front = mac_frontwindow();
+    if (front != NULL && mac_windowsession(front) == s)
+       mac_adjustmenus();
+}
+
 /*
  * Local Variables:
  * c-file-style: "simon"