~ubuntu-branches/ubuntu/quantal/bzr-svn/quantal

« back to all changes in this revision

Viewing changes to editor.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-11-10 02:31:45 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20081110023145-h7vtophkjmcajp9g
Tags: 0.4.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        
138
138
        /* Methods to implement standard operations */
139
139
        
140
 
        (destructor)PyObject_Del, /*    destructor tp_dealloc;  */
 
140
        NULL, // done in initeditor() (destructor)PyObject_Del, /*      destructor tp_dealloc;  */
141
141
        NULL, /*        printfunc tp_print;     */
142
142
        NULL, /*        getattrfunc tp_getattr; */
143
143
        NULL, /*        setattrfunc tp_setattr; */
235
235
        
236
236
        /* Methods to implement standard operations */
237
237
        
238
 
        (destructor)PyObject_Del, /*    destructor tp_dealloc;  */
 
238
        NULL, // Done in initeditor() (destructor)PyObject_Del, /*      destructor tp_dealloc;  */
239
239
        NULL, /*        printfunc tp_print;     */
240
240
        NULL, /*        getattrfunc tp_getattr; */
241
241
        NULL, /*        setattrfunc tp_setattr; */
492
492
        
493
493
        /* Methods to implement standard operations */
494
494
        
495
 
        (destructor)PyObject_Del, /*    destructor tp_dealloc;  */
 
495
        NULL, // Done in initeditor() (destructor)PyObject_Del, /*      destructor tp_dealloc;  */
496
496
        NULL, /*        printfunc tp_print;     */
497
497
        NULL, /*        getattrfunc tp_getattr; */
498
498
        NULL, /*        setattrfunc tp_setattr; */
688
688
};
689
689
 
690
690
 
 
691
void initeditor(void)
 
692
{
 
693
    TxDeltaWindowHandler_Type.tp_dealloc = (destructor)PyObject_Del;
 
694
    FileEditor_Type.tp_dealloc = (destructor)PyObject_Del;
 
695
    DirectoryEditor_Type.tp_dealloc = (destructor)PyObject_Del;
 
696
}