Mercurial > pidgin.yaz
comparison finch/libgnt/gnttree.c @ 30673:e1b511df0d3e
Make the combobox a tiny bit friendlier.
Pressing the first letter of an item will now jump to that item (and
popup the dropdown first if necessary). Add some API in libgnt in the
process.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 05 Jul 2010 15:01:56 +0000 |
parents | 40623dd0bba0 |
children | a8cc50c2279f |
comparison
equal
deleted
inserted
replaced
30672:514ed776e193 | 30673:e1b511df0d3e |
---|---|
1924 { | 1924 { |
1925 GntTreeRow *row = g_hash_table_lookup(tree->hash, key); | 1925 GntTreeRow *row = g_hash_table_lookup(tree->hash, key); |
1926 return (row && row->parent) ? row->parent->key : NULL; | 1926 return (row && row->parent) ? row->parent->key : NULL; |
1927 } | 1927 } |
1928 | 1928 |
1929 gpointer gnt_tree_row_get_key(GntTree *tree, GntTreeRow *row) | |
1930 { | |
1931 g_return_val_if_fail(row && row->tree == tree, NULL); | |
1932 return row->key; | |
1933 } | |
1934 | |
1935 GntTreeRow * gnt_tree_row_get_next(GntTree *tree, GntTreeRow *row) | |
1936 { | |
1937 g_return_val_if_fail(row && row->tree == tree, NULL); | |
1938 return row->next; | |
1939 } | |
1940 | |
1941 GntTreeRow * gnt_tree_row_get_prev(GntTree *tree, GntTreeRow *row) | |
1942 { | |
1943 g_return_val_if_fail(row && row->tree == tree, NULL); | |
1944 return row->prev; | |
1945 } | |
1946 | |
1947 GntTreeRow * gnt_tree_row_get_child(GntTree *tree, GntTreeRow *row) | |
1948 { | |
1949 g_return_val_if_fail(row && row->tree == tree, NULL); | |
1950 return row->child; | |
1951 } | |
1952 | |
1953 GntTreeRow * gnt_tree_row_get_parent(GntTree *tree, GntTreeRow *row) | |
1954 { | |
1955 g_return_val_if_fail(row && row->tree == tree, NULL); | |
1956 return row->parent; | |
1957 } | |
1958 |