From 53f85f2822d9106e6fc95a9efb7757af365e9dff Mon Sep 17 00:00:00 2001 From: ryuan choi Date: Fri, 20 Aug 2010 17:24:25 +0900 Subject: [PATCH] [elm_webview]fix mouse_down event and connect event_feed --- src/lib/elm_webview.c | 6 ++++++ src/lib/els_webview.c | 4 +++- src/lib/els_webview.h | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_webview.c b/src/lib/elm_webview.c index 2b038fa..f8fbc64 100644 --- a/src/lib/elm_webview.c +++ b/src/lib/elm_webview.c @@ -120,11 +120,17 @@ elm_webview_webkit_get(Evas_Object *obj) EAPI void elm_webview_events_feed_set(Evas_Object *obj, Eina_Bool feed) { + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return; + _elm_smart_webview_events_feed_set(wd->webkit, feed); } EAPI Eina_Bool elm_webview_events_feed_get(Evas_Object *obj) { + Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return EINA_FALSE; + return _elm_smart_webview_events_feed_get(wd->webkit); } EAPI void diff --git a/src/lib/els_webview.c b/src/lib/els_webview.c index 1ebff06..d3eb5b6 100644 --- a/src/lib/els_webview.c +++ b/src/lib/els_webview.c @@ -526,7 +526,9 @@ _smart_mouse_down(Ewk_View_Smart_Data *esd, const Evas_Event_Mouse_Down* ev) DBG("%s is called\n", __func__); Smart_Data *sd = (Smart_Data *)esd; sd->mouse_down_copy = *ev; - return _parent_sc.mouse_down(esd, ev); + + return EINA_TRUE; + //return _parent_sc.mouse_down(esd, ev); } static Eina_Bool diff --git a/src/lib/els_webview.h b/src/lib/els_webview.h index 033d599..4fff63d 100644 --- a/src/lib/els_webview.h +++ b/src/lib/els_webview.h @@ -1,2 +1,4 @@ Evas_Object* _elm_smart_webview_add(Evas *evas, Eina_Bool tiled); +void _elm_smart_webview_events_feed_set(Evas_Object* obj, Eina_Bool feed); +Eina_Bool _elm_smart_webview_events_feed_get(Evas_Object* obj); void _elm_smart_webview_bounce_allow_set(Evas_Object* obj, Eina_Bool horiz, Eina_Bool vert); -- 2.7.4