Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_entry.c 


Log Message:
Fix extremely large cursor bug.
More progress on the textarea test.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -3 -r1.116 -r1.117
--- ewl_entry.c 26 Oct 2004 14:00:00 -0000      1.116
+++ ewl_entry.c 26 Oct 2004 22:02:23 -0000      1.117
@@ -470,7 +470,7 @@
 
        if (REALIZED(e)) {
                int size;
-               font = etox_context_get_font(e->context, &size);
+               font = etox_context_get_font(etox_get_context(e->etox), &size);
        }
        else {
                op = ewl_entry_op_relevant_find(e, EWL_ENTRY_OP_TYPE_FONT_SET);
@@ -494,11 +494,11 @@
        int size = 1;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR_RET("e", e, NULL);
+       DCHECK_PARAM_PTR_RET("e", e, 1);
 
        if (REALIZED(e)) {
                char *font = NULL;
-               font = etox_context_get_font(e->context, &size);
+               font = etox_context_get_font(etox_get_context(e->etox), &size);
                if (font)
                        FREE(font);
        }
@@ -710,18 +710,8 @@
        else
                pos = c_pos;
 
-       if (l) {
-               /* 
-                * if we are at the end of the text, dont grab the
-                * width/height as they will not make sense
-                */
-               if (pos != c_pos)
-                       ewl_entry_index_geometry_map(e, c_pos, &cx, &cy,
-                                                       NULL, NULL);
-               else
-                       ewl_entry_index_geometry_map(e, pos, &cx, &cy, &cw, 
-                                                       &ch);
-       }
+       if (l)
+               ewl_entry_index_geometry_map(e, pos, &cx, &cy, &cw, &ch);
        else
                ewl_object_current_geometry_get(EWL_OBJECT(w), &cx, &cy, &cw,
                                                &ch);




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to