talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 50f5bc8ce3277cd63e6c9902819f5bdcc7d1f3b4
parent d17846613422b6615ad1f97820b6df3ec7c6e052
Author: Holger Berndt <hb@claws-mail.org>
Date:   Sat, 27 Jul 2013 17:03:03 +0200

Python plugin: Make fwdinfo accessible in compose window object
Diffstat:
Msrc/plugins/python/composewindowtype.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/plugins/python/composewindowtype.c b/src/plugins/python/composewindowtype.c @@ -42,6 +42,7 @@ typedef struct { PyObject *ui_manager; PyObject *text; PyObject *replyinfo; + PyObject *fwdinfo; Compose *compose; } clawsmail_ComposeWindowObject; @@ -50,6 +51,7 @@ static void ComposeWindow_dealloc(clawsmail_ComposeWindowObject* self) Py_XDECREF(self->ui_manager); Py_XDECREF(self->text); Py_XDECREF(self->replyinfo); + Py_XDECREF(self->fwdinfo); self->ob_type->tp_free((PyObject*)self); } @@ -81,6 +83,7 @@ static void composewindow_set_compose(clawsmail_ComposeWindowObject *self, Compo store_py_object(&(self->text), get_gobj_from_address(compose->text)); store_py_object(&(self->replyinfo), clawsmail_messageinfo_new(compose->replyinfo)); + store_py_object(&(self->fwdinfo), clawsmail_messageinfo_new(compose->fwdinfo)); } static int ComposeWindow_init(clawsmail_ComposeWindowObject *self, PyObject *args, PyObject *kwds) @@ -539,6 +542,9 @@ static PyMemberDef ComposeWindow_members[] = { {"replyinfo", T_OBJECT_EX, offsetof(clawsmail_ComposeWindowObject, replyinfo), 0, "replyinfo - The MessageInfo object of the message that is being replied to, or None"}, + {"forwardinfo", T_OBJECT_EX, offsetof(clawsmail_ComposeWindowObject, fwdinfo), 0, + "forwardinfo - The MessageInfo object of the message that is being forwarded, or None"}, + {NULL} };