Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_text.c Log Message: - start of fixup of ewl_text for utf8 characters - NOTE utf8 dosen't quite work yet, ascii should still work as expected. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_text.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_text.c 6 Sep 2006 18:37:16 -0000 1.17 +++ ewl_text.c 8 Sep 2006 18:56:40 -0000 1.18 @@ -108,7 +108,7 @@ Ewl_Text_Trigger *trigger; int len; - o = ewl_text_new(); + o = ewl_text_new(); ewl_widget_name_set(o, "text"); ewl_text_selectable_set(EWL_TEXT(o), TRUE); ewl_container_child_append(EWL_CONTAINER(box), o); @@ -196,7 +196,7 @@ #if 0 printf("-- DUMP --\n"); - ewl_text_tree_dump((EWL_TEXT(o))->formatting, ""); + ewl_text_tree_dump((EWL_TEXT(o))->formatting.tree, ""); printf("-- DUMP DONE --\n"); #endif @@ -217,8 +217,8 @@ t = EWL_TEXT_TRIGGER(w); - ewl_text_cursor_position_set(EWL_TEXT(t->text_parent), t->pos); - ewl_text_color_apply(EWL_TEXT(t->text_parent), 255, 0, 0, 255, t->len); + ewl_text_cursor_position_set(EWL_TEXT(t->text_parent), t->char_pos); + ewl_text_color_apply(EWL_TEXT(t->text_parent), 255, 0, 0, 255, t->char_len); } static void @@ -229,8 +229,8 @@ t = EWL_TEXT_TRIGGER(w); - ewl_text_cursor_position_set(EWL_TEXT(t->text_parent), t->pos); - ewl_text_color_apply(EWL_TEXT(t->text_parent), 0, 0, 0, 255, t->len); + ewl_text_cursor_position_set(EWL_TEXT(t->text_parent), t->char_pos); + ewl_text_color_apply(EWL_TEXT(t->text_parent), 0, 0, 0, 255, t->char_len); } static int ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs