[Commits] [SCM] claws branch, master, updated. 3.9.2-80-g5431edf
holger at claws-mail.org
holger at claws-mail.org
Tue Aug 20 21:39:33 CEST 2013
The branch master of project "claws" (Claws Mail) has been updated
via 5431edf4ab7293a31d89a98c779f950de4cefa64 (commit)
from bac58acf0fe34e6801f040822af7414eb56e397f (commit)
- Log -----------------------------------------------------------------
commit 5431edf4ab7293a31d89a98c779f950de4cefa64
Author: Holger Berndt <hb at claws-mail.org>
Date: Tue Aug 20 21:30:50 2013 +0200
Python plugin: Folder: Let path return the absolute path
diff --git a/src/plugins/python/foldertype.c b/src/plugins/python/foldertype.c
index 2a8c2e4..faf108c 100644
--- a/src/plugins/python/foldertype.c
+++ b/src/plugins/python/foldertype.c
@@ -132,13 +132,6 @@ static PyObject* get_name(clawsmail_FolderObject *self, void *closure)
Py_RETURN_NONE;
}
-static PyObject* get_path(clawsmail_FolderObject *self, void *closure)
-{
- if(self->folderitem && self->folderitem->path)
- return PyString_FromString(self->folderitem->path);
- Py_RETURN_NONE;
-}
-
static PyObject* get_mailbox_name(clawsmail_FolderObject *self, void *closure)
{
if(self->folderitem && self->folderitem->folder && self->folderitem->folder->name)
@@ -169,6 +162,21 @@ static PyObject* get_identifier(clawsmail_FolderObject *self, void *closure)
Py_RETURN_NONE;
}
+static PyObject* get_path(clawsmail_FolderObject *self, void *closure)
+{
+ if(self->folderitem) {
+ gchar *path;
+ path = folder_item_get_path(self->folderitem);
+ if(path) {
+ PyObject *retval;
+ retval = PyString_FromString(path);
+ g_free(path);
+ return retval;
+ }
+ }
+ Py_RETURN_NONE;
+}
+
static PyObject* get_properties(clawsmail_FolderObject *self, void *closure)
{
-----------------------------------------------------------------------
Summary of changes:
src/plugins/python/foldertype.c | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list