Elementary.separator: Corrected type of the property 'horizontal'

This commit is contained in:
Kai Huuhko 2014-04-15 21:48:45 +03:00
parent 451d49d731
commit 0ce26275fe
2 changed files with 5 additions and 5 deletions

View File

@ -2,5 +2,5 @@ from efl.evas cimport Eina_Bool, Evas_Object
cdef extern from "Elementary.h":
Evas_Object *elm_separator_add(Evas_Object *parent)
void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool)
void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj)

View File

@ -51,15 +51,15 @@ cdef class Separator(LayoutClass):
"""
def __get__(self):
return elm_separator_horizontal_get(self.obj)
return bool(elm_separator_horizontal_get(self.obj))
def __set__(self, b):
def __set__(self, bint b):
elm_separator_horizontal_set(self.obj, b)
def horizontal_set(self, b):
def horizontal_set(self, bint b):
elm_separator_horizontal_set(self.obj, b)
def horizontal_get(self):
return elm_separator_horizontal_get(self.obj)
return bool(elm_separator_horizontal_get(self.obj))
_object_mapping_register("Elm_Separator", Separator)