Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c
Log Message:
- make the selection area grow if needed when the text is re-drawn
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- ewl_text.c 3 Nov 2005 01:05:56 -0000 1.43
+++ ewl_text.c 3 Nov 2005 01:34:58 -0000 1.44
@@ -4171,10 +4171,7 @@
char *t;
t = NEW(char, strlen(indent) + 3);
if (!t)
- {
- printf("OUT OF MEMORY...\n");
DRETURN(DLEVEL_STABLE);
- }
sprintf(t, "%s ", indent);
ewl_text_btree_dump(child, t);
@@ -4204,6 +4201,9 @@
if (!h) h = 1;
ewl_object_preferred_inner_size_set(EWL_OBJECT(t), (int)w, (int)h);
+
+ /* re-configure the selection to make sure it resizes if needed */
+ ewl_text_selection_cb_configure(EWL_WIDGET(t->selection), NULL, NULL);
ewl_widget_configure(EWL_WIDGET(t));
DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -4573,7 +4573,7 @@
ctx->style_colors.bg.b, ctx->style_colors.bg.a,
ctx->color.r, ctx->color.g,
ctx->color.b, ctx->color.a, style,
- ((ctx->wrap) ? "on" : "off"), align);
+ ((ctx->wrap) ? "word" : "off"), align);
IF_FREE(ptr);
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs