Remove select all and clear selection functions from public API. Clients can send KEY_SELECT_ALL and KEY_CLEAR_SELECTION to the keypress handler.

This commit is contained in:
Michael Drake 2013-08-28 13:36:15 +01:00
parent 826b392b57
commit 28dec67c64
2 changed files with 16 additions and 22 deletions

View File

@ -1807,8 +1807,14 @@ static treeview_node * treeview_get_first_selected(treeview *tree)
}
/* Exported interface, documented in treeview.h */
bool treeview_clear_selection(treeview *tree, struct rect *rect)
/**
* Clear any selection in a treeview
*
* \param tree Treeview object to clear selection in
* \param rect Redraw rectangle (if redraw required)
* \return true iff redraw required
*/
static bool treeview_clear_selection(treeview *tree, struct rect *rect)
{
struct treeview_selection_walk_data sw;
@ -1829,8 +1835,14 @@ bool treeview_clear_selection(treeview *tree, struct rect *rect)
}
/* Exported interface, documented in treeview.h */
bool treeview_select_all(treeview *tree, struct rect *rect)
/**
* Select all in a treeview
*
* \param tree Treeview object to select all in
* \param rect Redraw rectangle (if redraw required)
* \return true iff redraw required
*/
static bool treeview_select_all(treeview *tree, struct rect *rect)
{
struct treeview_selection_walk_data sw;

View File

@ -353,24 +353,6 @@ void treeview_mouse_action(treeview *tree,
*/
bool treeview_has_selection(treeview *tree);
/**
* Clear any selection in a treeview
*
* \param tree Treeview object to clear selection in
* \param rect Redraw rectangle (if redraw required)
* \return true iff redraw required
*/
bool treeview_clear_selection(treeview *tree, struct rect *rect);
/**
* Select all in a treeview
*
* \param tree Treeview object to select all in
* \param rect Redraw rectangle (if redraw required)
* \return true iff redraw required
*/
bool treeview_select_all(treeview *tree, struct rect *rect);
/**
* Edit the first selected node
*