Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c
Log Message:
Avoid some potential configure loops.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- ewl_text.c 21 Nov 2005 18:13:46 -0000 1.59
+++ ewl_text.c 22 Nov 2005 06:56:59 -0000 1.60
@@ -709,7 +709,8 @@
DCHECK_TYPE_RET("t", t, "text", t->cursor_position);
/* force a display of the text */
- ewl_text_display(t);
+ if (t->textblock)
+ ewl_text_display(t);
cur_idx = ewl_text_cursor_position_get(t);
cursor = ewl_text_textblock_cursor_position(t, cur_idx);
@@ -755,7 +756,8 @@
DCHECK_TYPE_RET("t", t, "text", t->cursor_position);
/* force a display of the text */
- ewl_text_display(t);
+ if (t->textblock)
+ ewl_text_display(t);
cur_idx = ewl_text_cursor_position_get(t);
cursor = ewl_text_textblock_cursor_position(t, cur_idx);
@@ -2872,6 +2874,9 @@
event = ev;
t = EWL_TEXT(w);
+ if (!t->in_select)
+ DRETURN(DLEVEL_STABLE);
+
modifiers = ewl_ev_modifiers_get();
if (modifiers & EWL_KEY_MODIFIER_SHIFT)
{
@@ -3971,7 +3976,7 @@
/* 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));
+ /* ewl_widget_configure(EWL_WIDGET(t)); */
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs