Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/40951d5294c87a85c9ff315ba5ebb13a643cea81
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/40951d5294c87a85c9ff315ba5ebb13a643cea81
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/40951d5294c87a85c9ff315ba5ebb13a643cea81

The branch, master has been updated
       via  40951d5294c87a85c9ff315ba5ebb13a643cea81 (commit)
      from  6511e9f9e0346eb5dc5dfc512b456446d56e2b8c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=40951d5294c87a85c9ff315ba5ebb13a643cea81
commit 40951d5294c87a85c9ff315ba5ebb13a643cea81
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>

    Use the correct function to get the URL at position
    Hint popup still broken though :(

diff --git a/frontends/amiga/history_local.c b/frontends/amiga/history_local.c
index c1f2a36..c293f59 100644
--- a/frontends/amiga/history_local.c
+++ b/frontends/amiga/history_local.c
@@ -106,25 +106,27 @@ ami_history_local_mouse(struct ami_corewindow *ami_cw,
        /* technically degenerate container of */
        history_local_win = (struct ami_history_local_window *)ami_cw;
 
-       nsurl *url = 
browser_window_history_position_url(history_local_win->gw->bw, x, y);
-
-       if (url == NULL) {
-               SetGadgetAttrs(
-                       (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
-                       ami_cw->win,
-                       NULL,
-                       GA_HintInfo,
-                       NULL,
-                       TAG_DONE);
-       } else {
-               SetGadgetAttrs(
-                       (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
-                       ami_cw->win,
-                       NULL,
-                       GA_HintInfo,
-                       nsurl_access(url),
-                       TAG_DONE);
-               nsurl_unref(url);
+       nsurl *url;
+
+       if(local_history_get_url(history_local_win->session, x, y, &url) == 
NSERROR_OK) {
+               if (url == NULL) {
+                       SetGadgetAttrs(
+                               (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
+                               ami_cw->win,
+                               NULL,
+                               GA_HintInfo,
+                               NULL,
+                               TAG_DONE);
+               } else {
+                       SetGadgetAttrs(
+                               (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
+                               ami_cw->win,
+                               NULL,
+                               GA_HintInfo,
+                               nsurl_access(url),
+                               TAG_DONE);
+                       nsurl_unref(url);
+               }
        }
 
        local_history_mouse_action(history_local_win->session, mouse_state, x, 
y);


-----------------------------------------------------------------------

Summary of changes:
 frontends/amiga/history_local.c |   40 ++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)

diff --git a/frontends/amiga/history_local.c b/frontends/amiga/history_local.c
index c1f2a36..c293f59 100644
--- a/frontends/amiga/history_local.c
+++ b/frontends/amiga/history_local.c
@@ -106,25 +106,27 @@ ami_history_local_mouse(struct ami_corewindow *ami_cw,
        /* technically degenerate container of */
        history_local_win = (struct ami_history_local_window *)ami_cw;
 
-       nsurl *url = 
browser_window_history_position_url(history_local_win->gw->bw, x, y);
-
-       if (url == NULL) {
-               SetGadgetAttrs(
-                       (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
-                       ami_cw->win,
-                       NULL,
-                       GA_HintInfo,
-                       NULL,
-                       TAG_DONE);
-       } else {
-               SetGadgetAttrs(
-                       (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
-                       ami_cw->win,
-                       NULL,
-                       GA_HintInfo,
-                       nsurl_access(url),
-                       TAG_DONE);
-               nsurl_unref(url);
+       nsurl *url;
+
+       if(local_history_get_url(history_local_win->session, x, y, &url) == 
NSERROR_OK) {
+               if (url == NULL) {
+                       SetGadgetAttrs(
+                               (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
+                               ami_cw->win,
+                               NULL,
+                               GA_HintInfo,
+                               NULL,
+                               TAG_DONE);
+               } else {
+                       SetGadgetAttrs(
+                               (struct Gadget *)ami_cw->objects[GID_CW_DRAW],
+                               ami_cw->win,
+                               NULL,
+                               GA_HintInfo,
+                               nsurl_access(url),
+                               TAG_DONE);
+                       nsurl_unref(url);
+               }
        }
 
        local_history_mouse_action(history_local_win->session, mouse_state, x, 
y);


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to