diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/python/python-edje/0001-fix-unicode-conversion.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/python/python-edje/0001-fix-unicode-conversion.patch')
-rw-r--r-- | recipes/python/python-edje/0001-fix-unicode-conversion.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes/python/python-edje/0001-fix-unicode-conversion.patch b/recipes/python/python-edje/0001-fix-unicode-conversion.patch new file mode 100644 index 0000000000..7964e097d1 --- /dev/null +++ b/recipes/python/python-edje/0001-fix-unicode-conversion.patch @@ -0,0 +1,41 @@ +From fa12a33b5a3c0e86231ca84967d9eff456e5f314 Mon Sep 17 00:00:00 2001 +From: Jan Luebbe <jluebbe@debian.org> +Date: Sat, 9 Aug 2008 18:30:04 +0200 +Subject: [PATCH] fix unicode conversion + +--- + edje/edje.c_edje_object.pxi | 11 +++++++---- + 1 files changed, 7 insertions(+), 4 deletions(-) + +diff --git a/edje/edje.c_edje_object.pxi b/edje/edje.c_edje_object.pxi +index 0f4da68..21c237e 100644 +--- a/edje/edje.c_edje_object.pxi ++++ b/edje/edje.c_edje_object.pxi +@@ -391,17 +391,20 @@ cdef public class Edje(evas.c_evas.Object) [object PyEdje, type PyEdje_Type]: + else: + raise TypeError("func must be callable or None") + +- def part_text_set(self, char *part, char *text): +- edje_object_part_text_set(self.obj, part, text) ++ def part_text_set(self, char *part, text): ++ cdef char *s ++ u = text.encode("utf8") ++ s = u ++ edje_object_part_text_set(self.obj, part, s) + + def part_text_get(self, char *part): +- "@rtype: str" ++ "@rtype: unicode" + cdef char *s + s = edje_object_part_text_get(self.obj, part) + if s == NULL: + return None + else: +- return s ++ return s.decode("utf8") + + def part_swallow(self, char *part, c_evas.Object obj): + """Swallows an object into the edje +-- +1.5.6.3 + |