From cd45e1f44720a563d9b7e9b9bc7ea2b410444d3f Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 19 Jun 2012 23:04:38 +0000 Subject: First attempt to implement the global history treeview. There is something wrong with the redraw ( the treeview area of the windo isn't redrawn, also it looks like the treeview content size isn't set ) svn path=/trunk/netsurf/; revision=13973 --- atari/global_evnt.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'atari/global_evnt.c') diff --git a/atari/global_evnt.c b/atari/global_evnt.c index 535fe066c..24e65b511 100755 --- a/atari/global_evnt.c +++ b/atari/global_evnt.c @@ -41,7 +41,8 @@ #include "atari/browser_win.h" #include "atari/toolbar.h" #include "atari/browser.h" -#include "atari/hotlist.h" +#include "atari/hotlist.h" +#include "atari/history.h" #include "atari/misc.h" #include "atari/global_evnt.h" #include "atari/browser_win.h" @@ -321,10 +322,7 @@ static void __CDECL menu_lhistory(WINDOW *win, int item, int title, void *data) static void __CDECL menu_ghistory(WINDOW *win, int item, int title, void *data) { LOG(("%s", __FUNCTION__)); - char buf[PATH_MAX]; - strcpy((char*)&buf, "file://"); - strncat((char*)&buf, nsoption_charp(url_file), PATH_MAX - (strlen("file://")+1) ); - browser_window_create((char*)&buf, 0, 0, true, false); + global_history_open(); } static void __CDECL menu_add_bookmark(WINDOW *win, int item, int title, void *data) -- cgit v1.2.3