Python-EFL: unbreak the build with older Cython versions
This commit is contained in:
parent
c96851c8f5
commit
feb9fb912c
|
@ -406,7 +406,7 @@ def language_set(lang not None):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if isinstance(lang, unicode): lang = PyUnicode_AsUTF8String(lang)
|
if isinstance(lang, unicode): lang = PyUnicode_AsUTF8String(lang)
|
||||||
elm_language_set(<const char *>lang)
|
elm_language_set(<const_char *>lang)
|
||||||
|
|
||||||
def cache_all_flush():
|
def cache_all_flush():
|
||||||
"""cache_all_flush()
|
"""cache_all_flush()
|
||||||
|
@ -436,7 +436,7 @@ def font_properties_get(font not None):
|
||||||
if isinstance(font, unicode): font = PyUnicode_AsUTF8String(font)
|
if isinstance(font, unicode): font = PyUnicode_AsUTF8String(font)
|
||||||
cdef FontProperties ret = FontProperties.__new__()
|
cdef FontProperties ret = FontProperties.__new__()
|
||||||
|
|
||||||
ret.efp = elm_font_properties_get(<const char *>font)
|
ret.efp = elm_font_properties_get(<const_char *>font)
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
@ -471,8 +471,8 @@ def font_fontconfig_name_get(font_name, style = None):
|
||||||
if isinstance(font_name, unicode): font_name = PyUnicode_AsUTF8String(font_name)
|
if isinstance(font_name, unicode): font_name = PyUnicode_AsUTF8String(font_name)
|
||||||
if isinstance(style, unicode): style = PyUnicode_AsUTF8String(style)
|
if isinstance(style, unicode): style = PyUnicode_AsUTF8String(style)
|
||||||
fc_name = elm_font_fontconfig_name_get(
|
fc_name = elm_font_fontconfig_name_get(
|
||||||
<const char *>font_name,
|
<const_char *>font_name,
|
||||||
<const char *>style if style is not None else NULL
|
<const_char *>style if style is not None else NULL
|
||||||
)
|
)
|
||||||
|
|
||||||
ret = _touni(fc_name)
|
ret = _touni(fc_name)
|
||||||
|
|
Loading…
Reference in New Issue