summaryrefslogtreecommitdiff
path: root/riscos/configure/con_home.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-10-05 19:14:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-10-05 19:14:46 +0000
commit6173bb0e6c3bf51cd463f7bc4f725429d9087b2b (patch)
treede3e013699742960b97ee4a5eda240908d0ea8e6 /riscos/configure/con_home.c
parent195c1ea3193f169c6825eca1fc6207e138126e98 (diff)
downloadnetsurf-6173bb0e6c3bf51cd463f7bc4f725429d9087b2b.tar.gz
netsurf-6173bb0e6c3bf51cd463f7bc4f725429d9087b2b.tar.bz2
Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
Diffstat (limited to 'riscos/configure/con_home.c')
-rw-r--r--riscos/configure/con_home.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/riscos/configure/con_home.c b/riscos/configure/con_home.c
index afced9557..fbe1b7039 100644
--- a/riscos/configure/con_home.c
+++ b/riscos/configure/con_home.c
@@ -22,6 +22,7 @@
#include "riscos/gui.h"
#include "riscos/menus.h"
#include "riscos/options.h"
+#include "riscos/url_suggest.h"
#include "riscos/wimp.h"
#include "riscos/wimp_event.h"
#include "riscos/configure.h"
@@ -42,16 +43,13 @@ static bool ro_gui_options_home_ok(wimp_w w);
bool ro_gui_options_home_initialise(wimp_w w)
{
- int suggestions;
-
/* set the current values */
ro_gui_set_icon_string(w, HOME_URL_FIELD,
option_homepage_url ? option_homepage_url : "", true);
ro_gui_set_icon_selected_state(w, HOME_OPEN_STARTUP,
option_open_browser_at_startup);
- global_history_get_recent(&suggestions);
ro_gui_set_icon_shaded_state(w,
- HOME_URL_GRIGHT, (suggestions <= 0));
+ HOME_URL_GRIGHT, !ro_gui_url_suggest_prepare_menu());
/* initialise all functions for a newly created window */
ro_gui_wimp_event_register_menu_gright(w, HOME_URL_FIELD,