Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c
Log Message:
this should fix bug 432, i.e. the first insert character into an entry was
misplaced
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -3 -r1.194 -r1.195
--- ewl_text.c 7 Apr 2008 17:05:55 -0000 1.194
+++ ewl_text.c 9 Apr 2008 00:17:45 -0000 1.195
@@ -225,6 +225,8 @@
if (x) *x = t->offset.x;
if (y) *y = t->offset.y;
+ ewl_widget_configure(EWL_WIDGET(t));
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -777,7 +779,7 @@
}
else
t->obscure = strdup("*");
-
+
t->dirty = TRUE;
ewl_widget_configure(EWL_WIDGET(t));
@@ -2930,7 +2932,7 @@
yy = CURRENT_Y(t);
hh = CURRENT_H(t);
ww = CURRENT_W(t);
-
+
evas_object_move(t->textblock, xx + t->offset.x, yy + t->offset.y);
evas_object_resize(t->textblock, ww - t->offset.x, hh - t->offset.y);
@@ -4060,11 +4062,11 @@
ewl_text_drawn_byte_to_char(Ewl_Text *t, unsigned int byte_idx)
{
unsigned int char_idx = 0;
-
+
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET(t, 0);
DCHECK_TYPE_RET(t, EWL_TEXT_TYPE, 0);
-
+
if (!t->obscure)
ewl_text_fmt_byte_to_char(t->formatting.nodes, byte_idx,
0, &char_idx, NULL);
@@ -4076,7 +4078,7 @@
else
char_idx = ewl_text_length_get(t);
}
-
+
DRETURN_INT(char_idx, DLEVEL_STABLE);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs