comparison finch/libgnt/gnttree.c @ 22170:364e67f1a429

Function to get the parent key.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 22 Jan 2008 07:28:11 +0000
parents 3ed9b027479d
children e476e964650c
comparison
equal deleted inserted replaced
22169:8c5d0180c326 22170:364e67f1a429
1839 gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current)) 1839 gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current))
1840 { 1840 {
1841 tree->priv->search_func = func; 1841 tree->priv->search_func = func;
1842 } 1842 }
1843 1843
1844 gpointer gnt_tree_get_parent_key(GntTree *tree, gpointer key)
1845 {
1846 GntTreeRow *row = g_hash_table_lookup(tree->hash, key);
1847 return row ? row->parent : NULL;
1848 }
1849