kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=96c720fae7a47f2feeb62458f8752457f56ccea1
commit 96c720fae7a47f2feeb62458f8752457f56ccea1 Author: Kai Huuhko <kai.huu...@gmail.com> Date: Thu Dec 12 21:33:58 2013 +0200 Elementary.web: updates to work with the new webkit-efl snapshot. Commented out tab_propagate which doesn't seem to be implemented in ewebkit2, and uncommented load finished signal. --- efl/elementary/web.pxd | 4 ++-- efl/elementary/web.pyx | 41 ++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/efl/elementary/web.pxd b/efl/elementary/web.pxd index e58e437..63c113d 100644 --- a/efl/elementary/web.pxd +++ b/efl/elementary/web.pxd @@ -41,8 +41,8 @@ cdef extern from "Elementary.h": # TODO: void elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data) void elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data) - Eina_Bool elm_web_tab_propagate_get(Evas_Object *obj) - void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate) + # TODO: Eina_Bool elm_web_tab_propagate_get(Evas_Object *obj) + # TODO: void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate) Eina_Bool elm_web_url_set(Evas_Object *obj,char *url) const_char * elm_web_url_get(Evas_Object *obj) diff --git a/efl/elementary/web.pyx b/efl/elementary/web.pyx index 1fc22b5..d73c2d4 100644 --- a/efl/elementary/web.pyx +++ b/efl/elementary/web.pyx @@ -470,24 +470,24 @@ cdef class Web(Object): def useragent_get(self): return _ctouni(elm_web_useragent_get(self.obj)) + # TODO: Not implemented in ewebkit2 backend (yet?) + # property tab_propagate: + # """Whether to use tab propagation - property tab_propagate: - """Whether to use tab propagation + # If tab propagation is enabled, whenever the user presses the Tab key, + # Elementary will handle it and switch focus to the next widget. + # The default value is disabled, where WebKit will handle the Tab key to + # cycle focus though its internal objects, jumping to the next widget + # only when that cycle ends. - If tab propagation is enabled, whenever the user presses the Tab key, - Elementary will handle it and switch focus to the next widget. - The default value is disabled, where WebKit will handle the Tab key to - cycle focus though its internal objects, jumping to the next widget - only when that cycle ends. + # :type: bool - :type: bool - - """ - def __get__(self): - return bool(elm_web_tab_propagate_get(self.obj)) + # """ + # def __get__(self): + # return bool(elm_web_tab_propagate_get(self.obj)) - def __set__(self, bint propagate): - elm_web_tab_propagate_set(self.obj, propagate) + # def __set__(self, bint propagate): + # elm_web_tab_propagate_set(self.obj, propagate) property url: """ @@ -1029,14 +1029,13 @@ cdef class Web(Object): def callback_load_error_del(self, func): self._callback_del_full("load,error", _web_load_frame_error_conv, func) - # TODO: - # def callback_load_finished_add(self, func, *args, **kwargs): - # """Load finished. Event info is None on success, on error it's - # a pointer to Elm_Web_Frame_Load_Error.""" - # self._callback_add("load,finished", func, *args, **kwargs) + def callback_load_finished_add(self, func, *args, **kwargs): + """Load finished. Event info is None on success, on error it's + a pointer to Elm_Web_Frame_Load_Error.""" + self._callback_add_full("load,finished", _web_load_frame_error_conv, func, *args, **kwargs) - # def callback_load_finished_del(self, func): - # self._callback_del("load,finished", func) + def callback_load_finished_del(self, func): + self._callback_del_full("load,finished", _web_load_frame_error_conv, func) def callback_load_newwindow_show_add(self, func, *args, **kwargs): """A new window was created and is ready to be shown.""" --