mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
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:
parent
826b392b57
commit
28dec67c64
@ -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;
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user