diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-02 16:19:16 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-02 16:19:16 +0100 |
commit | 49c7994d0580a655ddcc78e07205eea45d74132c (patch) | |
tree | 7047078437c94d519654fd2ad86f5a8e5be43af3 /riscos/global_history.c | |
parent | 46e569c481f1c5196fd90b05bd801809355f2d84 (diff) | |
download | netsurf-49c7994d0580a655ddcc78e07205eea45d74132c.tar.gz netsurf-49c7994d0580a655ddcc78e07205eea45d74132c.tar.bz2 |
Remove bulk of old treeview implementation.
Diffstat (limited to 'riscos/global_history.c')
-rw-r--r-- | riscos/global_history.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/riscos/global_history.c b/riscos/global_history.c index 830f17cd9..704f80426 100644 --- a/riscos/global_history.c +++ b/riscos/global_history.c @@ -31,6 +31,7 @@ #include "oslib/wimpspriteop.h" #include "content/urldb.h" #include "desktop/history_global_core.h" +#include "desktop/global_history.h" #include "desktop/tree.h" #include "riscos/dialog.h" #include "riscos/global_history.h" @@ -171,8 +172,6 @@ void ro_gui_global_history_postinitialise(void) void ro_gui_global_history_open(void) { - tree_set_redraw(ro_treeview_get_tree(global_history_window.tv), true); - ro_gui_global_history_toolbar_update_buttons(); if (!ro_gui_dialog_open_top(global_history_window.window, @@ -230,11 +229,11 @@ void ro_gui_global_history_toolbar_update_buttons(void) { ro_toolbar_set_button_shaded_state(global_history_window.toolbar, TOOLBAR_BUTTON_DELETE, - !ro_treeview_has_selection(global_history_window.tv)); + !global_history_has_selection()); ro_toolbar_set_button_shaded_state(global_history_window.toolbar, TOOLBAR_BUTTON_LAUNCH, - !ro_treeview_has_selection(global_history_window.tv)); + !global_history_has_selection()); } @@ -270,7 +269,7 @@ bool ro_gui_global_history_menu_prepare(wimp_w w, wimp_i i, wimp_menu *menu, if (menu != global_history_window.menu) return false; - selection = ro_treeview_has_selection(global_history_window.tv); + selection = global_history_has_selection(); ro_gui_menu_set_entry_shaded(global_history_window.menu, TREE_SELECTION, !selection); |