diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-29 22:44:30 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-29 22:44:30 +0000 |
commit | 61872ab3a493d60ede0e5ca2221b4c5c94708171 (patch) | |
tree | d4d31aa61818b7ce6844d6330cbd41d5970439a4 | |
parent | 23dc635e1a2386d52779384d6117f020376142f7 (diff) | |
download | netsurf-61872ab3a493d60ede0e5ca2221b4c5c94708171.tar.gz netsurf-61872ab3a493d60ede0e5ca2221b4c5c94708171.tar.bz2 |
Debug
-rwxr-xr-x | amiga/gui.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 93ee08282..7482b4b71 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1206,6 +1206,7 @@ void ami_handle_msg(void) struct browser_window *closedbw; struct timeval curtime; static int drag_x_move = 0, drag_y_move = 0; + char *url; if(IsMinListEmpty(window_list)) { @@ -1601,11 +1602,13 @@ void ami_handle_msg(void) break; case GID_HOTLIST: - GetAttrs(gwin->objects[GID_HOTLIST], - SPEEDBAR_SelectedNode, &tabnode, TAG_DONE); - GetSpeedButtonNodeAttrs(tabnode, SBNA_UserData, (ULONG *)&storage, TAG_DONE); - - browser_window_go(gwin->bw, (char *)storage, NULL, true); + GetAttr(SPEEDBAR_SelectedNode, + (Object *)gwin->objects[GID_HOTLIST], + (ULONG *)&tabnode); + printf("%lx %d\n", tabnode, code); + GetSpeedButtonNodeAttrs(tabnode, SBNA_UserData, (ULONG *)&url, TAG_DONE); + printf("%s\n", url); + browser_window_go(gwin->bw, url, NULL, true); break; case GID_HOME: |