Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_entry.c 


Log Message:
Compensate for the textblock relative coordinates returned for the cursor.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_entry.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_entry.c 28 Mar 2005 07:04:28 -0000      1.10
+++ ewl_entry.c 31 Mar 2005 02:25:40 -0000      1.11
@@ -201,7 +201,7 @@
  * @return Returns no value.
  * @brief Set multiline for an entry widget
  *
- * Set the multiline flag for $a e to @a m
+ * Set the multiline flag for @a e to @a m
  */
 void ewl_entry_multiline_set(Ewl_Entry * e, int m)
 {
@@ -735,10 +735,11 @@
 
        evas_object_textblock_char_pos_get(e->textobj, index, &tx, &ty,
                        &tw, &th);
+       printf("char %d at %d, %d size %dx%d\n", index, tx, ty, tw, th);
        if (x)
-               *x = (int)(tx);
+               *x = (int)(tx + CURRENT_X(e));
        if (y)
-               *y = (int)(ty);
+               *y = (int)(ty + CURRENT_Y(e));
        if (w)
                *w = (int)(tw);
        if (h)




-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to