comparison finch/libgnt/gnttree.c @ 22179:e476e964650c

This is supposed to return the key, not the row itself.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 23 Jan 2008 00:54:25 +0000
parents 364e67f1a429
children 4165bcd57486
comparison
equal deleted inserted replaced
22178:b0bce463aa4e 22179:e476e964650c
1842 } 1842 }
1843 1843
1844 gpointer gnt_tree_get_parent_key(GntTree *tree, gpointer key) 1844 gpointer gnt_tree_get_parent_key(GntTree *tree, gpointer key)
1845 { 1845 {
1846 GntTreeRow *row = g_hash_table_lookup(tree->hash, key); 1846 GntTreeRow *row = g_hash_table_lookup(tree->hash, key);
1847 return row ? row->parent : NULL; 1847 return (row && row->parent) ? row->parent->key : NULL;
1848 } 1848 }
1849 1849