[epiphany-extensions] greasemonkey: use correct accessor to get the view from embed



commit fba74de7712af32efba28515f392bc8d24b21c4a
Author: Alexander Sack <asac ubuntu com>
Date:   Wed Sep 30 15:48:43 2009 +0300

    greasemonkey: use correct accessor to get the view from embed
    
    Signed-off-by: Xan Lopez <xan gnome org>

 .../greasemonkey/ephy-greasemonkey-extension.c     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/greasemonkey/ephy-greasemonkey-extension.c b/extensions/greasemonkey/ephy-greasemonkey-extension.c
index a34a9c4..ea48260 100644
--- a/extensions/greasemonkey/ephy-greasemonkey-extension.c
+++ b/extensions/greasemonkey/ephy-greasemonkey-extension.c
@@ -617,7 +617,7 @@ impl_attach_tab (EphyExtension *ext,
 
 	g_return_if_fail (EPHY_IS_EMBED (embed));
 
-	web_view = WEBKIT_WEB_VIEW (gtk_bin_get_child (GTK_BIN (gtk_bin_get_child (GTK_BIN (embed)))));
+	web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
 
 #if 0
 	g_signal_connect (embed, "ge_context_menu",
@@ -644,7 +644,7 @@ impl_detach_tab (EphyExtension *ext,
 
 	g_return_if_fail (EPHY_IS_EMBED (embed));
 
-	web_view = WEBKIT_WEB_VIEW (gtk_bin_get_child (GTK_BIN (gtk_bin_get_child (GTK_BIN (embed)))));
+	web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
 
 #if 0
 	g_signal_handlers_disconnect_by_func



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