[E-devel] Unicode handling in python-edje

2008-08-25 Thread Jan Luebbe
Hi!

When using unicode text from python with edje, it needs to be passed as
a UTF-8 encoded string. To avoid doing this in the application, it
should be handled in the bindings.

Jan Lübbe

---
 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





-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Debian files in CVS and Pkg-E

2008-03-19 Thread Jan Luebbe
Hi Falko,

On Wed, 2008-03-19 at 16:36 +0100, Falko Schmidt wrote:
 The PkgE Debian Team (http://wiki.debian.org/PkgE) is about to upload
 or already uploading some EFL packages to Debian experimental.

I'm a Member of the Pkg-E team. We are currently working on getting
everything needed for e17 into experimental. When we are confident that
the packaging is sane, we will push them into unstable.
My guess is that it will not be in time for the Lenny release.

 Would there be any objections if I merge their changes into the Debian
 files in CVS to make packages compatible to future official Debian
 packages?

When doing that, please make sure that the snapshot tarballs do not
include a debian/ directory as this makes the workflow for the Pkg-E
Team more complicated.

 The changes would include a much better (and Debian policy compliant)
 packaging although I would stick to the one-package-per-module method
 (as it can be found in evas, for example).

We are grouping the modules together if they have similar runtime
dependencies and the size of the individual module is very small.

The different package split will probably make mixing Pkg-E packages and
yours difficult.

Jan



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [Fwd: Re: License of your contribution to SMALL/PAWN]

2008-03-04 Thread Jan Luebbe
The attached mail by Greg Garner did no reach the mailing list because
the address was only in CC (not To).
---BeginMessage---
---End Message---
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel