From d43791f8cf6334d3dcd70b8d569044e357d7c33c Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Tue, 27 Jan 2009 18:30:24 -0300 Subject: Implemented the tools button with CSS options. Also removed nav.h from html.cc --- src/uicmd.cc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'src/uicmd.cc') diff --git a/src/uicmd.cc b/src/uicmd.cc index da416dcd..844518a7 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -438,6 +438,14 @@ void a_UIcmd_reload(void *vbw) a_Nav_reload((BrowserWindow*)vbw); } +/* + * Repush current URL + */ +void a_UIcmd_repush(void *vbw) +{ + a_Nav_repush((BrowserWindow*)vbw); +} + /* * Return a suitable filename for a given URL path. */ @@ -525,6 +533,14 @@ void a_UIcmd_stop(void *vbw) a_UIcmd_set_buttons_sens(bw); } +/* + * Popup the tools menu + */ +void a_UIcmd_tools(void *vbw, void *v_wid) +{ + a_Menu_tools_popup((BrowserWindow*)vbw, v_wid); +} + /* * Open URL with dialog chooser */ @@ -643,10 +659,11 @@ void a_UIcmd_add_bookmark(BrowserWindow *bw, const DilloUrl *url) /* * Popup the page menu */ -void a_UIcmd_page_popup(void *vbw, const DilloUrl *url, - bool_t has_bugs, bool_t unloaded_imgs) +void a_UIcmd_page_popup(void *vbw, bool_t has_bugs, bool_t unloaded_imgs) { - a_Menu_page_popup((BrowserWindow*)vbw, url, has_bugs, unloaded_imgs); + BrowserWindow *bw = (BrowserWindow*)vbw; + DilloUrl *url = a_History_get_url(NAV_TOP_UIDX(bw)); + a_Menu_page_popup(bw, url, has_bugs, unloaded_imgs); } /* -- cgit v1.2.3