summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-05-10 19:15:56 +0200
committerdavemds <dave@gurumeditation.it>2014-05-10 19:15:56 +0200
commit8886d9351967fb0e81f8f31448f21674a3c4bf09 (patch)
tree818bf5da01ca1b2a9303c3db3b980131b486213f
parent209d23283632ba7616ccd73e3cb47d47b01e68fe (diff)
Added Gengrid.focus_direction_allow property
-rw-r--r--efl/elementary/gengrid.pxd1
-rw-r--r--efl/elementary/gengrid_widget.pxi12
2 files changed, 13 insertions, 0 deletions
diff --git a/efl/elementary/gengrid.pxd b/efl/elementary/gengrid.pxd
index 4706945..79ae36c 100644
--- a/efl/elementary/gengrid.pxd
+++ b/efl/elementary/gengrid.pxd
@@ -92,3 +92,4 @@ cdef extern from "Elementary.h":
92 Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *item) 92 Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *item)
93 Elm_Object_Item * elm_gengrid_nth_item_get(const Evas_Object *obj, unsigned int nth) 93 Elm_Object_Item * elm_gengrid_nth_item_get(const Evas_Object *obj, unsigned int nth)
94 Elm_Object_Item * elm_gengrid_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *xposret, int *yposret) 94 Elm_Object_Item * elm_gengrid_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *xposret, int *yposret)
95 void elm_gengrid_focus_direction_allow_set(Evas_Object *obj, Eina_Bool flag)
diff --git a/efl/elementary/gengrid_widget.pxi b/efl/elementary/gengrid_widget.pxi
index 9c7c6a2..c93a50e 100644
--- a/efl/elementary/gengrid_widget.pxi
+++ b/efl/elementary/gengrid_widget.pxi
@@ -483,6 +483,18 @@ cdef class Gengrid(Object):
483 ret = elm_gengrid_at_xy_item_get(self.obj, x, y, &xposret, &yposret) 483 ret = elm_gengrid_at_xy_item_get(self.obj, x, y, &xposret, &yposret)
484 return _object_item_to_python(ret), xposret, yposret 484 return _object_item_to_python(ret), xposret, yposret
485 485
486 property focus_direction_allow:
487 """Set if gengrid should manage focus direction.
488
489 :type: bool
490
491 .. versionadded:: 1.10
492
493 """
494 def __set__(self, bint allow):
495 elm_gengrid_focus_direction_allow_set(self.obj, allow)
496 def focus_direction_allow_set(self, bint allow):
497 elm_gengrid_focus_direction_allow_set(self.obj, allow)
486 498
487 # 499 #
488 # TODO: Drag and Drop 500 # TODO: Drag and Drop