--- a/gnttree.c Thu Jan 28 17:44:28 2010 +0000
+++ b/gnttree.c Wed Feb 03 16:05:28 2010 +0000
@@ -957,6 +957,45 @@
+move_first_action(GntBindable *bind, GList *null) + GntTree *tree = GNT_TREE(bind); + GntTreeRow *row = tree->root; + GntTreeRow *old = tree->current; + if (row && !row_matches_search(row)) + if (old != tree->current) + tree_selection_changed(tree, old, tree->current); +move_last_action(GntBindable *bind, GList *null) + GntTree *tree = GNT_TREE(bind); + GntTreeRow *old = tree->current; + GntTreeRow *row = tree->bottom; + while ((next = get_next(row))) + if (old != tree->current) + tree_selection_changed(tree, old, tree->current); gnt_tree_set_property(GObject *obj, guint prop_id, const GValue *value,
@@ -1076,6 +1115,10 @@
gnt_bindable_class_register_action(bindable, "end-search", end_search_action,
+ gnt_bindable_class_register_action(bindable, "move-first", move_first_action, + gnt_bindable_class_register_action(bindable, "move-last", move_last_action, gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), bindable);