davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=bc411cd7745554a93bf3e605d44e2449b9f28e33

commit bc411cd7745554a93bf3e605d44e2449b9f28e33
Author: Dave Andreoli <[email protected]>
Date:   Wed Aug 10 11:41:49 2016 +0200

    New 1.18 API: elm.Configuration.web_backend
---
 efl/elementary/configuration.pxi      | 19 +++++++++++++++++++
 efl/elementary/configuration_cdef.pxi |  3 +++
 2 files changed, 22 insertions(+)

diff --git a/efl/elementary/configuration.pxi b/efl/elementary/configuration.pxi
index 99993dd..9317ab0 100644
--- a/efl/elementary/configuration.pxi
+++ b/efl/elementary/configuration.pxi
@@ -1370,6 +1370,25 @@ cdef class Configuration(object):
         def __set__(self, bint disabled):
             elm_config_context_menu_disabled_set(disabled)
 
+    property web_backend:
+        """The backend engine used by Elm_Web widget
+
+        This is the name of the external module used by elm_web to render web
+        page.
+
+        :type: string
+
+        .. versionadded:: 1.18
+
+        """
+        def __get__(self):
+            return _ctouni(elm_config_web_backend_get())
+        def __set__(self, backend):
+            if isinstance(backend, unicode): backend = 
PyUnicode_AsUTF8String(backend)
+            elm_config_web_backend_set(
+                        <const char *>backend if backend is not None else NULL)
+
+
 #For compatibility
 def config_finger_size_get():
     return elm_config_finger_size_get()
diff --git a/efl/elementary/configuration_cdef.pxi 
b/efl/elementary/configuration_cdef.pxi
index 64db920..5b5fec9 100644
--- a/efl/elementary/configuration_cdef.pxi
+++ b/efl/elementary/configuration_cdef.pxi
@@ -201,6 +201,9 @@ cdef extern from "Elementary.h":
     Eina_Bool               elm_config_popup_scrollable_get()
     void                    elm_config_popup_scrollable_set(Eina_Bool 
scrollable)
 
+    const char *            elm_config_web_backend_get()
+    void                    elm_config_web_backend_set(const char *backend)
+
     const char *            elm_config_indicator_service_get(int rotation)
 
     double                  elm_config_glayer_long_tap_start_timeout_get()

-- 


Reply via email to