Fix missing initializers, taking for reference GLib 2.28 (with support
[claws.git] / src / plugins / python / accounttype.c
index e5cbe327e62eaf5df9fdfb5a958b5fb2c4402f22..63588c2d7050450f06b44308f092caaaed19429e 100644 (file)
@@ -133,9 +133,23 @@ static PyTypeObject clawsmail_AccountType = {
     (initproc)Account_init,    /* tp_init */
     0,                         /* tp_alloc */
     0,                         /* tp_new */
+       0,                         /* tp_free */
+       0,                         /* tp_is_gc */
+       0,                         /* tp_bases */
+       0,                         /* tp_mro */
+       0,                         /* tp_cache */
+       0,                         /* tp_subclasses */
+       0,                         /* tp_weaklist */
+       0,                         /* tp_del */
+#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 6) || \
+     (PY_MAJOR_VERSION == 3))
+    0,                         /* tp_version_tag */
+#endif
+#if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 4)
+    0,                         /* tp_finalize */
+#endif
 };
 
-
 gboolean cmpy_add_account(PyObject *module)
 {
   clawsmail_AccountType.tp_new = PyType_GenericNew;