# HG changeset patch # User Sadrul Habib Chowdhury # Date 1201049665 0 # Node ID e476e964650c9856975102c3aebf43a6e00e9269 # Parent b0bce463aa4e34cc768c91d4d5dcea9b833b050a This is supposed to return the key, not the row itself. diff -r b0bce463aa4e -r e476e964650c finch/libgnt/gnttree.c --- a/finch/libgnt/gnttree.c Tue Jan 22 21:13:11 2008 +0000 +++ b/finch/libgnt/gnttree.c Wed Jan 23 00:54:25 2008 +0000 @@ -1844,6 +1844,6 @@ gpointer gnt_tree_get_parent_key(GntTree *tree, gpointer key) { GntTreeRow *row = g_hash_table_lookup(tree->hash, key); - return row ? row->parent : NULL; + return (row && row->parent) ? row->parent->key : NULL; }