summaryrefslogtreecommitdiff
path: root/riscos/treeview.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-09-02 16:19:16 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-09-02 16:19:16 +0100
commit49c7994d0580a655ddcc78e07205eea45d74132c (patch)
tree7047078437c94d519654fd2ad86f5a8e5be43af3 /riscos/treeview.c
parent46e569c481f1c5196fd90b05bd801809355f2d84 (diff)
downloadnetsurf-49c7994d0580a655ddcc78e07205eea45d74132c.tar.gz
netsurf-49c7994d0580a655ddcc78e07205eea45d74132c.tar.bz2
Remove bulk of old treeview implementation.
Diffstat (limited to 'riscos/treeview.c')
-rw-r--r--riscos/treeview.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/riscos/treeview.c b/riscos/treeview.c
index 5d1126b2e..004091abe 100644
--- a/riscos/treeview.c
+++ b/riscos/treeview.c
@@ -284,22 +284,6 @@ wimp_w ro_treeview_get_window(ro_treeview *tv)
}
/**
- * Return an indication of whether the supplied treeview object contains a
- * selection.
- *
- * \param *tv The ro_treeview object of interest.
- * \return true if there is a selection in the tree; else false.
- */
-
-bool ro_treeview_has_selection(ro_treeview *tv)
-{
- if (tv != NULL)
- return tree_node_has_selection(tree_get_root(tv->tree));
- else
- return false;
-}
-
-/**
* Callback to force a redraw of part of the treeview window.
*
* \param x Min X Coordinate of area to be redrawn.
@@ -853,8 +837,8 @@ static bool ro_treeview_mouse_click(wimp_pointer *pointer)
mouse = 0;
if (pointer->buttons == wimp_CLICK_MENU) {
- if (!tree_node_has_selection(tree_get_root(tv->tree)))
- mouse |= BROWSER_MOUSE_CLICK_1;
+ /* TODO: test for no selection, and pass click to select node */
+ /* mouse |= BROWSER_MOUSE_CLICK_1; */
} else {
mouse = ro_gui_mouse_click_state(pointer->buttons,
wimp_BUTTON_DOUBLE_CLICK_DRAG);