Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_entry.c
Log Message:
Fix for the cursor placement when clicking past the end of the text and when
the text has been deleted.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -3 -r1.80 -r1.81
--- ewl_entry.c 26 Feb 2004 05:38:31 -0000 1.80
+++ ewl_entry.c 4 Mar 2004 06:31:18 -0000 1.81
@@ -194,8 +194,6 @@
e = EWL_ENTRY(user_data);
l = ewl_text_get_length(EWL_TEXT(w));
- if (!l)
- DRETURN(DLEVEL_STABLE);
/*
* The contents are clipped starting at these positions
@@ -326,9 +324,10 @@
index = ewl_text_get_index_at(EWL_TEXT(e->text), ev->x,
CURRENT_Y(e->text) +
(CURRENT_H(e->text) / 2));
- index++;
}
+ index++;
+
if (index > len + 1)
index = len + 1;
ewl_cursor_set_base(EWL_CURSOR(e->cursor), index);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs