# HG changeset patch # User Sadrul Habib Chowdhury # Date 1189595066 0 # Node ID 80bfc233c9f2facfabe442ec74c42b209ec91e5e # Parent 8f8421bda08d9fb3338396c8643b484d9a0286fe Fix a memory corruption. Change default binding for 'jump next unread' from 'J' to 'n'. Treat 'None' in pygnt as NULL in gnt. diff -r 8f8421bda08d -r 80bfc233c9f2 finch/libgnt/pygnt/example/rss/gntrss-ui.py --- a/finch/libgnt/pygnt/example/rss/gntrss-ui.py Wed Sep 12 09:45:16 2007 +0000 +++ b/finch/libgnt/pygnt/example/rss/gntrss-ui.py Wed Sep 12 11:04:26 2007 +0000 @@ -54,7 +54,7 @@ } __gntbindings__ = { - 'jump-next-unread' : ('jump_next_unread', 'J') + 'jump-next-unread' : ('jump_next_unread', 'n') } def jump_next_unread(self, null): diff -r 8f8421bda08d -r 80bfc233c9f2 finch/libgnt/pygnt/example/rss/gntrss.py --- a/finch/libgnt/pygnt/example/rss/gntrss.py Wed Sep 12 09:45:16 2007 +0000 +++ b/finch/libgnt/pygnt/example/rss/gntrss.py Wed Sep 12 11:04:26 2007 +0000 @@ -129,6 +129,9 @@ self.pending = False self._refresh = {'time' : 30, 'id' : 0} + def __del__(self): + pass + def do_set_property(self, property, value): if property.name == 'link': self.link = value diff -r 8f8421bda08d -r 80bfc233c9f2 finch/libgnt/pygnt/gnttree.override --- a/finch/libgnt/pygnt/gnttree.override Wed Sep 12 09:45:16 2007 +0000 +++ b/finch/libgnt/pygnt/gnttree.override Wed Sep 12 11:04:26 2007 +0000 @@ -51,7 +51,6 @@ while (list) { PyObject *obj = list->data; PyList_Append(py_list, obj); - Py_DECREF(obj); list = list->next; } return py_list; @@ -89,6 +88,11 @@ Py_DECREF(item); } + if (parent == Py_None) + parent = NULL; + if (bigbro == Py_None) + bigbro = NULL; + list = g_list_reverse(list); row = gnt_tree_create_row_from_list(GNT_TREE(self->obj), list); gnt_tree_add_row_after(GNT_TREE(self->obj),