davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=d38a979e738ea5244c6fe8349fd4fe58b447b2a6
commit d38a979e738ea5244c6fe8349fd4fe58b447b2a6 Author: davemds <d...@gurumeditation.it> Date: Sun Feb 23 15:58:45 2014 +0100 Python-EFL: added elm_win_type_get() --- efl/elementary/enums.pxd | 1 + efl/elementary/window.pxd | 1 + efl/elementary/window.pyx | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) diff --git a/efl/elementary/enums.pxd b/efl/elementary/enums.pxd index 42166cc..1983a05 100644 --- a/efl/elementary/enums.pxd +++ b/efl/elementary/enums.pxd @@ -514,6 +514,7 @@ cdef extern from "Elementary.h": ELM_WEB_ZOOM_MODE_AUTO_FILL ctypedef enum Elm_Win_Type: + ELM_WIN_UNKNOWN ELM_WIN_BASIC ELM_WIN_DIALOG_BASIC ELM_WIN_DESKTOP diff --git a/efl/elementary/window.pxd b/efl/elementary/window.pxd index eb5498a..a852310 100644 --- a/efl/elementary/window.pxd +++ b/efl/elementary/window.pxd @@ -18,6 +18,7 @@ cdef extern from "Elementary.h": void elm_win_resize_object_del(Evas_Object *obj, Evas_Object* subobj) void elm_win_title_set(Evas_Object *obj, const_char *title) const_char * elm_win_title_get(Evas_Object *obj) + Elm_Win_Type elm_win_type_get(Evas_Object *obj) void elm_win_icon_name_set(Evas_Object *obj, const_char *icon_name) const_char * elm_win_icon_name_get(Evas_Object *obj) void elm_win_role_set(Evas_Object *obj, const_char *role) diff --git a/efl/elementary/window.pyx b/efl/elementary/window.pyx index b37eef1..3950ad5 100644 --- a/efl/elementary/window.pyx +++ b/efl/elementary/window.pyx @@ -111,6 +111,10 @@ Enumerations Window types ============ +.. data:: ELM_WIN_UNKNOWN + + Unknown window type (since 1.9) + .. data:: ELM_WIN_BASIC A normal window. @@ -363,6 +367,7 @@ from efl.evas cimport Evas, evas_object_evas_get, Image as evasImage cimport enums +ELM_WIN_UNKNOWN = enums.ELM_WIN_UNKNOWN ELM_WIN_BASIC = enums.ELM_WIN_BASIC ELM_WIN_DIALOG_BASIC = enums.ELM_WIN_DIALOG_BASIC ELM_WIN_DESKTOP = enums.ELM_WIN_DESKTOP @@ -499,6 +504,19 @@ cdef class Window(Object): def title_get(self): return _ctouni(elm_win_title_get(self.obj)) + def type_get(self): + """type_get() + + Get the type of a window. + + :return: The type of the window + :return type: Elm_Win_Type + + .. versionadded: 1.9 + + """ + return elm_win_type_get(self.obj) + property icon_name: """The icon name of the window. --