[epiphany] ephy-navigation-action.c: fix middle-click on back/forward



commit 4085c2c058bb02bbf65a929075edf2dada6dec8a
Author: Xan Lopez <xan gnome org>
Date:   Mon Jul 20 23:50:20 2009 +0300

    ephy-navigation-action.c: fix middle-click on back/forward
    
    We were getting a new embed but not its web view, which is what we use
    to load the page. (bug #583440)

 src/ephy-navigation-action.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-navigation-action.c b/src/ephy-navigation-action.c
index c25e2bd..fba4f24 100644
--- a/src/ephy-navigation-action.c
+++ b/src/ephy-navigation-action.c
@@ -392,6 +392,7 @@ ephy_navigation_action_activate (GtkAction *gtk_action)
 						"about:blank",
 						NULL,
 						EPHY_LINK_NEW_TAB);
+			web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
 		}
 		webkit_web_view_go_back (web_view);
 	}
@@ -403,6 +404,7 @@ ephy_navigation_action_activate (GtkAction *gtk_action)
 						"about:blank",
 						NULL,
 						EPHY_LINK_NEW_TAB);
+			web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
 		}
 		webkit_web_view_go_forward (web_view);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]