Exemplo n.º 1
0
static PyObject *Scrap_CallInScrapPromises(PyObject *_self, PyObject *_args)
{
	PyObject *_res = NULL;
	OSStatus _err;
	if (!PyArg_ParseTuple(_args, ""))
		return NULL;
	_err = CallInScrapPromises();
	if (_err != noErr) return PyMac_Error(_err);
	Py_INCREF(Py_None);
	_res = Py_None;
	return _res;
}
Exemplo n.º 2
0
void MCScreenDC::flushclipboard(void)
{
	// If we own the clipboard, then make sure we have provided all our flavors.
	if (ownsclipboard())
		CallInScrapPromises();
}