Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_entry.c
Log Message:
- slightly modifed patch from emby to keep the entry from dropping to 0 size
when all the characters are deleted
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_entry.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_entry.c 16 Jun 2005 04:00:02 -0000 1.17
+++ ewl_entry.c 20 Jun 2005 22:38:57 -0000 1.18
@@ -1440,6 +1440,9 @@
ewl_entry_cursor_position_set(EWL_ENTRY_CURSOR(e->cursor), sp);
ewl_widget_configure(EWL_WIDGET(e));
+ if (!sp)
+ ewl_entry_text_set(e, NULL);
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -1469,6 +1472,9 @@
e->length --;
+ if (!sp)
+ ewl_entry_text_set(e, NULL);
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -1594,6 +1600,7 @@
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("c", c);
+ pos = ((pos < 0) ? 0 : pos);
c->position = pos;
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs