Fix building against new EWebkit API
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 12 Oct 2011 18:00:09 +0000 (18:00 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 12 Oct 2011 18:00:09 +0000 (18:00 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64021 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Elementary.h.in
src/lib/elm_web.c

index a33538f..b8f2a8a 100644 (file)
@@ -13668,28 +13668,6 @@ extern "C" {
     */
    EAPI Elm_Web_Zoom_Mode            elm_web_zoom_mode_get(const Evas_Object *obj);
    /**
-    * Gets whether text-only zoom is set
-    *
-    * @param obj The web object
-    *
-    * @return EINA_TRUE if zoom is set to affect only text, EINA_FALSE
-    * otherwise
-    *
-    * @see elm_web_zoom_text_only_set()
-    */
-   EAPI Eina_Bool                    elm_web_zoom_text_only_get(const Evas_Object *obj);
-   /**
-    * Enables or disables zoom to affect only text
-    *
-    * If set, then the zoom level set to the page will only be applied on text,
-    * leaving other objects, such as images, at their original size.
-    *
-    * @param obj The web object
-    * @param setting EINA_TRUE to use text-only zoom, EINA_FALSE to have zoom
-    * affect the entire page
-    */
-   EAPI void                         elm_web_zoom_text_only_set(Evas_Object *obj, Eina_Bool setting);
-   /**
     * Shows the given region in the web object
     *
     * @param obj The web object
index e392624..762572e 100644 (file)
@@ -1599,7 +1599,7 @@ elm_web_zoom_set(Evas_Object *obj, double zoom)
         Evas_Coord fw, fh, pw, ph;
         if (!ewk_frame_contents_size_get(frame, &fw, &fh))
           return;
-        z = ewk_frame_zoom_get(frame);
+        z = ewk_frame_page_zoom_get(frame);
         fw /= z;
         fh /= z;
         if ((fw > 0) && (fh > 0))
@@ -1624,7 +1624,7 @@ elm_web_zoom_set(Evas_Object *obj, double zoom)
         Evas_Coord fw, fh, pw, ph;
         if (!ewk_frame_contents_size_get(frame, &fw, &fh))
           return;
-        z = ewk_frame_zoom_get(frame);
+        z = ewk_frame_page_zoom_get(frame);
         fw /= z;
         fh /= z;
         if ((fw > 0) && (fh > 0))
@@ -1698,32 +1698,6 @@ elm_web_zoom_mode_get(const Evas_Object *obj)
 #endif
 }
 
-EAPI Eina_Bool
-elm_web_zoom_text_only_get(const Evas_Object *obj)
-{
-   ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
-#ifdef HAVE_ELEMENTARY_WEB
-   Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return EINA_FALSE;
-   return ewk_view_zoom_text_only_get(wd->ewk_view);
-#else
-   return EINA_FALSE;
-#endif
-}
-
-EAPI void
-elm_web_zoom_text_only_set(Evas_Object *obj, Eina_Bool setting)
-{
-   ELM_CHECK_WIDTYPE(obj, widtype);
-#ifdef HAVE_ELEMENTARY_WEB
-   Widget_Data *wd = elm_widget_data_get(obj);
-   if (!wd) return;
-   ewk_view_zoom_text_only_set(wd->ewk_view, setting);
-#else
-   (void)setting;
-#endif
-}
-
 EAPI void
 elm_web_region_show(Evas_Object *obj, int x, int y, int w __UNUSED__, int h __UNUSED__)
 {
@@ -1734,7 +1708,7 @@ elm_web_region_show(Evas_Object *obj, int x, int y, int w __UNUSED__, int h __UN
    int fw, fh, zw, zh, rx, ry;
    float zoom;
    ewk_frame_contents_size_get(frame, &fw, &fh);
-   zoom = ewk_frame_zoom_get(frame);
+   zoom = ewk_frame_page_zoom_get(frame);
    zw = fw / zoom;
    zh = fh / zoom;
    rx = (x * fw) / zw;
@@ -1762,7 +1736,7 @@ elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w __UNUSED__, int h
    float zoom;
    ewk_frame_contents_size_get(frame, &fw, &fh);
    ewk_frame_scroll_pos_get(frame, &sx, &sy);
-   zoom = ewk_frame_zoom_get(frame);
+   zoom = ewk_frame_page_zoom_get(frame);
    zw = fw / zoom;
    zh = fh / zoom;
    rx = (x * fw) / zw;