[epiphany-extensions] Don't assume the EphyWebView has EphyEmbed as parent



commit 11c3810ce92fc3f6647614dcb91c21ef9a19425c
Author: Gustavo Noronha Silva <gustavo noronha collabora co uk>
Date:   Sat Dec 19 20:02:21 2009 +0100

    Don't assume the EphyWebView has EphyEmbed as parent

 .../push-scroller/ephy-push-scroller-extension.c   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/push-scroller/ephy-push-scroller-extension.c b/extensions/push-scroller/ephy-push-scroller-extension.c
index 560aa00..06de1e7 100644
--- a/extensions/push-scroller/ephy-push-scroller-extension.c
+++ b/extensions/push-scroller/ephy-push-scroller-extension.c
@@ -66,7 +66,7 @@ dom_mouse_down_cb (EphyWebView *view,
 	guint button, x, y;
 	WebKitHitTestResult *hit_test;
 
-	embed = EPHY_EMBED (gtk_widget_get_parent (GTK_WIDGET (view)));
+	embed = EPHY_EMBED (EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (GTK_WIDGET (view)));
 	button = event->button;
 	hit_test = webkit_web_view_get_hit_test_result (WEBKIT_WEB_VIEW (view), event);
 	g_object_get (hit_test, "context", &context, NULL);



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