1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
/* Python.h should always be first */
#include <Python.h>
#include <string.h>
#include "grdel.h"
#include "cferbind.h"
#include "cairoCFerBind.h"
/*
* Updates the "Window".
*
* Returns one if successful. If an error occurs, grdelerrmsg
* is assigned an appropriate error message and zero is returned.
*/
grdelBool cairoCFerBind_updateWindow(CFerBind *self)
{
/* Sanity check - this should NOT be called by the PyQtCairo engine */
if ( self->enginename != CairoCFerBindName ) {
strcpy(grdelerrmsg, "cairoCFerBind_updateWindow: unexpected error, "
"self is not a valid CFerBind struct");
return 0;
}
/* nothing to do */
return 1;
}
|