From 0401fcdc55f61f13b050906e56ea63685f76cb88 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 30 Jun 2004 18:13:31 +0000 Subject: [project @ 2004-06-30 18:13:31 by rjw] URLs can be launched. svn path=/import/netsurf/; revision=1033 --- riscos/hotlist.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'riscos/hotlist.c') diff --git a/riscos/hotlist.c b/riscos/hotlist.c index c652020fe..4f0b73027 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -272,7 +272,7 @@ void ro_gui_hotlist_load(void) { /* Add some content */ ro_gui_hotlist_create("NetSurf homepage", "http://netsurf.sf.net", netsurf); - ro_gui_hotlist_create("NetSurf test builds", "http://netsurf.strcpstskrzkrk.net", netsurf); + ro_gui_hotlist_create("NetSurf test builds", "http://netsurf.strcprstskrzkrk.co.uk", netsurf); } @@ -723,12 +723,19 @@ void ro_gui_hotlist_click(wimp_pointer *pointer) { /* Check if we clicked on the expanding bit */ x_offset = x - entry->x0; - if ((x_offset < 32) || (buttons == wimp_DOUBLE_SELECT)) { + if ((x_offset < 32) || + ((entry->children != -1) && (buttons == wimp_DOUBLE_SELECT))) { entry->expanded = !entry->expanded; reformat_pending = true; xwimp_force_redraw(hotlist_window, 0, -16384, 16384, 0); } else { - + if ((buttons == wimp_DOUBLE_SELECT) || + (buttons == wimp_DOUBLE_ADJUST)) { + browser_window_create(entry->url, NULL); + if (buttons == wimp_DOUBLE_ADJUST) { + xwimp_close_window(hotlist_window); + } + } } } -- cgit v1.2.3