Disable GetWindowSpareFlag and GetWindowGoAwayBox on carbon.
This commit is contained in:
parent
42efed0fc3
commit
f1d7b41fa0
|
@ -1637,6 +1637,8 @@ static PyObject *WinObj_GetAuxWin(_self, _args)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !TARGET_API_MAC_CARBON
|
||||||
|
|
||||||
static PyObject *WinObj_GetWindowGoAwayFlag(_self, _args)
|
static PyObject *WinObj_GetWindowGoAwayFlag(_self, _args)
|
||||||
WindowObject *_self;
|
WindowObject *_self;
|
||||||
PyObject *_args;
|
PyObject *_args;
|
||||||
|
@ -1650,6 +1652,9 @@ static PyObject *WinObj_GetWindowGoAwayFlag(_self, _args)
|
||||||
_rv);
|
_rv);
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !TARGET_API_MAC_CARBON
|
||||||
|
|
||||||
static PyObject *WinObj_GetWindowSpareFlag(_self, _args)
|
static PyObject *WinObj_GetWindowSpareFlag(_self, _args)
|
||||||
WindowObject *_self;
|
WindowObject *_self;
|
||||||
|
@ -1664,6 +1669,7 @@ static PyObject *WinObj_GetWindowSpareFlag(_self, _args)
|
||||||
_rv);
|
_rv);
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static PyObject *WinObj_GetWindowPort(_self, _args)
|
static PyObject *WinObj_GetWindowPort(_self, _args)
|
||||||
WindowObject *_self;
|
WindowObject *_self;
|
||||||
|
@ -2226,10 +2232,16 @@ static PyMethodDef WinObj_methods[] = {
|
||||||
{"GetAuxWin", (PyCFunction)WinObj_GetAuxWin, 1,
|
{"GetAuxWin", (PyCFunction)WinObj_GetAuxWin, 1,
|
||||||
"() -> (Boolean _rv, AuxWinHandle awHndl)"},
|
"() -> (Boolean _rv, AuxWinHandle awHndl)"},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !TARGET_API_MAC_CARBON
|
||||||
{"GetWindowGoAwayFlag", (PyCFunction)WinObj_GetWindowGoAwayFlag, 1,
|
{"GetWindowGoAwayFlag", (PyCFunction)WinObj_GetWindowGoAwayFlag, 1,
|
||||||
"() -> (Boolean _rv)"},
|
"() -> (Boolean _rv)"},
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !TARGET_API_MAC_CARBON
|
||||||
{"GetWindowSpareFlag", (PyCFunction)WinObj_GetWindowSpareFlag, 1,
|
{"GetWindowSpareFlag", (PyCFunction)WinObj_GetWindowSpareFlag, 1,
|
||||||
"() -> (Boolean _rv)"},
|
"() -> (Boolean _rv)"},
|
||||||
|
#endif
|
||||||
{"GetWindowPort", (PyCFunction)WinObj_GetWindowPort, 1,
|
{"GetWindowPort", (PyCFunction)WinObj_GetWindowPort, 1,
|
||||||
"() -> (CGrafPtr _rv)"},
|
"() -> (CGrafPtr _rv)"},
|
||||||
{"GetWindowKind", (PyCFunction)WinObj_GetWindowKind, 1,
|
{"GetWindowKind", (PyCFunction)WinObj_GetWindowKind, 1,
|
||||||
|
|
|
@ -68,6 +68,8 @@ class MyScanner(Scanner):
|
||||||
'IsValidWindowPtr', # I think this is useless for Python, but not sure...
|
'IsValidWindowPtr', # I think this is useless for Python, but not sure...
|
||||||
'GetWindowZoomFlag', # Not available in Carbon
|
'GetWindowZoomFlag', # Not available in Carbon
|
||||||
'GetWindowTitleWidth', # Ditto
|
'GetWindowTitleWidth', # Ditto
|
||||||
|
'GetWindowGoAwayFlag',
|
||||||
|
'GetWindowSpareFlag',
|
||||||
]),
|
]),
|
||||||
('#if TARGET_API_MAC_CARBON', [
|
('#if TARGET_API_MAC_CARBON', [
|
||||||
'IsWindowUpdatePending',
|
'IsWindowUpdatePending',
|
||||||
|
|
Loading…
Reference in New Issue