Fix FTBFS resulting from KCModule rename

pull/2/head
Timothy Pearson 11 years ago
parent 2d5b7ef7c2
commit 3979d62a07

@ -9,7 +9,7 @@
// pythonize.h must be included first. // pythonize.h must be included first.
#include <pythonize.h> #include <pythonize.h>
#include <kcmodule.h> #include <tdecmodule.h>
#include <kglobal.h> #include <kglobal.h>
#include <klocale.h> #include <klocale.h>
#include <klibloader.h> #include <klibloader.h>
@ -34,7 +34,7 @@ static TDECModule *report_error(char *msg) {
} }
static TDECModule* return_instance( QWidget *parent, const char *name ) { static TDECModule* return_instance( QWidget *parent, const char *name ) {
TDECModule* kcmodule; TDECModule* tdecmodule;
PyObject *pyTDECModuleTuple; PyObject *pyTDECModuleTuple;
PyObject *pyTDECModule; PyObject *pyTDECModule;
Pythonize *pyize; // Pythonize object to manage the Python interpreter. Pythonize *pyize; // Pythonize object to manage the Python interpreter.
@ -129,8 +129,8 @@ static TDECModule* return_instance( QWidget *parent, const char *name ) {
// convert the TDECModule PyObject to a real C++ TDECModule *. // convert the TDECModule PyObject to a real C++ TDECModule *.
isErr = 0; isErr = 0;
pyTDECModule = PyTuple_GET_ITEM(pyTDECModuleTuple,1); pyTDECModule = PyTuple_GET_ITEM(pyTDECModuleTuple,1);
kcmodule = (TDECModule *)PyLong_AsVoidPtr(pyTDECModule); tdecmodule = (TDECModule *)PyLong_AsVoidPtr(pyTDECModule);
if(!kcmodule) { if(!tdecmodule) {
return report_error ("***failed sip conversion to C++ pointer\n"); return report_error ("***failed sip conversion to C++ pointer\n");
} }
pyize->decref(pyTDECModuleTuple); pyize->decref(pyTDECModuleTuple);
@ -145,7 +145,7 @@ static TDECModule* return_instance( QWidget *parent, const char *name ) {
TDEGlobal::locale()->insertCatalogue(script); TDEGlobal::locale()->insertCatalogue(script);
// Return the pointer to our new TDECModule // Return the pointer to our new TDECModule
return kcmodule; return tdecmodule;
} }
extern "C" { extern "C" {

Loading…
Cancel
Save