From: Enlightenment S. <no-...@en...> - 2010-10-01 19:31:07
|
Log: Focus Highlight Enable in pyElm Author: tiago Date: 2010-10-01 12:31:00 -0700 (Fri, 01 Oct 2010) New Revision: 52967 Modified: trunk/BINDINGS/python/python-elementary/elementary/elementary.c_elementary_window.pxi trunk/BINDINGS/python/python-elementary/include/elementary/c_elementary.pxd trunk/BINDINGS/python/python-elementary/tests/test_button.py Modified: trunk/BINDINGS/python/python-elementary/elementary/elementary.c_elementary_window.pxi =================================================================== --- trunk/BINDINGS/python/python-elementary/elementary/elementary.c_elementary_window.pxi 2010-10-01 19:03:23 UTC (rev 52966) +++ trunk/BINDINGS/python/python-elementary/elementary/elementary.c_elementary_window.pxi 2010-10-01 19:31:00 UTC (rev 52967) @@ -198,6 +198,18 @@ """ elm_win_raise(self.obj) + def focus_highlight_enabled_set(self, enabled): + """ + Enable focus highlight + """ + elm_win_focus_highlight_enabled_set(self.obj, enabled) + + def focus_highlight_enabled_get(self): + """ + Get if focus highlight is enabled + """ + return bool(elm_win_focus_highlight_enabled_get(self.obj)) + # TODO """ def xwindow_get(self): Modified: trunk/BINDINGS/python/python-elementary/include/elementary/c_elementary.pxd =================================================================== --- trunk/BINDINGS/python/python-elementary/include/elementary/c_elementary.pxd 2010-10-01 19:03:23 UTC (rev 52966) +++ trunk/BINDINGS/python/python-elementary/include/elementary/c_elementary.pxd 2010-10-01 19:31:00 UTC (rev 52967) @@ -277,6 +277,9 @@ void elm_win_keyboard_mode_set(evas.c_evas.Evas_Object *obj, Elm_Win_Keyboard_Mode mode) void elm_win_keyboard_win_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool is_keyboard) + void elm_win_focus_highlight_enabled_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool enabled) + evas.c_evas.Eina_Bool elm_win_focus_highlight_enabled_get(evas.c_evas.Evas_Object *obj) + # X specific call - wont't work on non-x engines (return 0) Ecore_X_Window elm_win_xwindow_get(evas.c_evas.Evas_Object *obj) Modified: trunk/BINDINGS/python/python-elementary/tests/test_button.py =================================================================== --- trunk/BINDINGS/python/python-elementary/tests/test_button.py 2010-10-01 19:03:23 UTC (rev 52966) +++ trunk/BINDINGS/python/python-elementary/tests/test_button.py 2010-10-01 19:31:00 UTC (rev 52967) @@ -9,6 +9,7 @@ def buttons_clicked(obj, it): win = elementary.Window("buttons", elementary.ELM_WIN_BASIC) win.title_set("Buttons") + win.focus_highlight_enabled_set(True) win.autodel_set(True) bg = elementary.Background(win) |