[Python-checkins] CVS: python/dist/src/Mac/Modules/menu _Menumodule.c,1.5,1.6

Jack Jansen jackjansen@users.sourceforge.net
2001年12月16日 12:15:44 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/menu
In directory usw-pr-cvs1:/tmp/cvs-serv1912/Python/Mac/Modules/menu
Modified Files:
	_Menumodule.c 
Log Message:
Adapted for Universal Headers 3.4
Index: _Menumodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/menu/_Menumodule.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** _Menumodule.c	2001年12月08日 18:02:53	1.5
--- _Menumodule.c	2001年12月16日 20:15:42	1.6
***************
*** 113,148 ****
 }
 
! static PyObject *MenuObj_CountMenuItems(MenuObject *_self, PyObject *_args)
 {
 	PyObject *_res = NULL;
 	short _rv;
! #ifndef CountMenuItems
! 	PyMac_PRECHECK(CountMenuItems);
 #endif
 	if (!PyArg_ParseTuple(_args, ""))
[...1678 lines suppressed...]
*** 2890,2893 ****
--- 3758,3766 ----
 	{"HideMenuBar", (PyCFunction)Menu_HideMenuBar, 1,
 	 "() -> None"},
+ 
+ #if TARGET_API_MAC_CARBON
+ 	{"AcquireRootMenu", (PyCFunction)Menu_AcquireRootMenu, 1,
+ 	 "() -> (MenuHandle _rv)"},
+ #endif
 	{"DeleteMCEntries", (PyCFunction)Menu_DeleteMCEntries, 1,
 	 "(MenuID menuID, short menuItem) -> None"},
***************
*** 2896,2899 ****
--- 3769,3774 ----
 	{"IsShowContextualMenuClick", (PyCFunction)Menu_IsShowContextualMenuClick, 1,
 	 "(EventRecord inEvent) -> (Boolean _rv)"},
+ 	{"LMGetTheMenu", (PyCFunction)Menu_LMGetTheMenu, 1,
+ 	 "() -> (SInt16 _rv)"},
 
 #if !TARGET_API_MAC_CARBON

AltStyle によって変換されたページ (->オリジナル) /