Elm: Fix segfault in tooltip content cb
This commit is contained in:
parent
2cb20da287
commit
171e462b50
4
TODO
4
TODO
|
@ -3,9 +3,6 @@ BUGS
|
|||
====
|
||||
|
||||
* Evas: smart object doesn't work
|
||||
* Elm: remove tooltips.pxi
|
||||
* _fruni() and _cfruni() are buggy when used with py3 (because they return the
|
||||
internal buffer of the 'string' object declared inside the function)
|
||||
|
||||
|
||||
TODO
|
||||
|
@ -29,6 +26,7 @@ TODO
|
|||
* Review the internal functions and name them consistently
|
||||
* Add more documentation for the use of callbacks
|
||||
* Document our use of exceptions
|
||||
* evas.TextGrid
|
||||
|
||||
|
||||
IMAGES
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
# along with python-elementary. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
from efl.evas cimport evas_object_data_get
|
||||
from efl.eo cimport object_from_instance
|
||||
|
||||
cdef Evas_Object *_tooltip_content_create(void *data, Evas_Object *o, Evas_Object *t) with gil:
|
||||
cdef Object ret, obj, tooltip
|
||||
|
||||
obj = <Object>evas_object_data_get(o, "python-evas")
|
||||
obj = object_from_instance(o)
|
||||
tooltip = object_from_instance(t)
|
||||
(func, args, kargs) = <object>data
|
||||
ret = func(obj, tooltip, *args, **kargs)
|
||||
|
@ -35,7 +35,7 @@ cdef void _tooltip_data_del_cb(void *data, Evas_Object *o, void *event_info) wit
|
|||
cdef Evas_Object *_tooltip_item_content_create(void *data, Evas_Object *o, Evas_Object *t, void *it) with gil:
|
||||
cdef Object ret, obj, tooltip
|
||||
|
||||
obj = <Object>evas_object_data_get(o, "python-evas")
|
||||
obj = object_from_instance(o)
|
||||
tooltip = object_from_instance(t)
|
||||
(func, item, args, kargs) = <object>data
|
||||
ret = func(obj, item, *args, **kargs)
|
||||
|
|
|
@ -11,6 +11,7 @@ from efl.elementary.button import Button
|
|||
from efl.elementary.entry import Entry
|
||||
from efl.elementary.list import List
|
||||
from efl.elementary.toolbar import Toolbar
|
||||
from efl.elementary.icon import Icon
|
||||
|
||||
|
||||
def _tt_icon(obj, *args, **kargs):
|
||||
|
|
Loading…
Reference in New Issue