From 49c7994d0580a655ddcc78e07205eea45d74132c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 2 Sep 2013 16:19:16 +0100 Subject: Remove bulk of old treeview implementation. --- riscos/hotlist.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'riscos/hotlist.c') diff --git a/riscos/hotlist.c b/riscos/hotlist.c index 9b1e9f140..a0a1cf61d 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -34,6 +34,7 @@ #include "content/hlcache.h" #include "content/urldb.h" #include "desktop/hotlist_old.h" +#include "desktop/hotlist.h" #include "desktop/tree.h" #include "riscos/dialog.h" #include "riscos/hotlist.h" @@ -215,8 +216,6 @@ void ro_gui_hotlist_open(void) error->errmess); } - tree_set_redraw(ro_treeview_get_tree(hotlist_window.tv), true); - ro_gui_hotlist_toolbar_update_buttons(); if (!ro_gui_dialog_open_top(hotlist_window.window, @@ -277,11 +276,11 @@ void ro_gui_hotlist_toolbar_update_buttons(void) { ro_toolbar_set_button_shaded_state(hotlist_window.toolbar, TOOLBAR_BUTTON_DELETE, - !ro_treeview_has_selection(hotlist_window.tv)); + !hotlist_has_selection()); ro_toolbar_set_button_shaded_state(hotlist_window.toolbar, TOOLBAR_BUTTON_LAUNCH, - !ro_treeview_has_selection(hotlist_window.tv)); + !hotlist_has_selection()); } @@ -316,7 +315,7 @@ bool ro_gui_hotlist_menu_prepare(wimp_w w, wimp_i i, wimp_menu *menu, if (menu != hotlist_window.menu) return false; - selection = ro_treeview_has_selection(hotlist_window.tv); + selection = hotlist_has_selection(); ro_gui_menu_set_entry_shaded(hotlist_window.menu, TREE_SELECTION, !selection); -- cgit v1.2.3