Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/text


Modified Files:
        ewl_text.c 


Log Message:
Use explicit includes for the tests to reduce overall build time and the number
of tests recompiled on header changes.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text/ewl_text.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_text.c  17 May 2007 23:52:18 -0000      1.9
+++ ewl_text.c  4 Jun 2007 18:46:37 -0000       1.10
@@ -1,5 +1,7 @@
 /* vim: set sw=8 ts=8 sts=8 noexpandtab: */
 #include "Ewl_Test.h"
+#include "ewl_text_fmt.h"
+#include "ewl_text_trigger.h"
 #include "ewl_test_private.h"
 #include <stdio.h>
 #include <string.h>
@@ -153,8 +155,9 @@
        printf("Inserting 'The fourth bunch of text\\n' [98]\n");
        ewl_text_text_insert(EWL_TEXT(o), "The fourth bunch of text\n", 31); /* 
25 */
 
+
        printf("Creating trigger [115]\n");
-       trigger = ewl_text_trigger_new(EWL_TEXT_TRIGGER_TYPE_TRIGGER);
+       trigger = 
EWL_TEXT_TRIGGER(ewl_text_trigger_new(EWL_TEXT_TRIGGER_TYPE_TRIGGER));
        ewl_text_trigger_start_pos_set(trigger, 
ewl_text_length_get(EWL_TEXT(o)));
        ewl_text_cursor_position_set(EWL_TEXT(o), 
ewl_text_length_get(EWL_TEXT(o)));
        ewl_text_styles_set(EWL_TEXT(o), EWL_TEXT_STYLE_NONE);
@@ -206,11 +209,11 @@
        ewl_text_text_append(EWL_TEXT(o), "Once more with feeling. "); /* 24 */
 
        printf("Trigger\n");
-       trigger = ewl_text_trigger_new(EWL_TEXT_TRIGGER_TYPE_TRIGGER);
+       trigger = 
EWL_TEXT_TRIGGER(ewl_text_trigger_new(EWL_TEXT_TRIGGER_TYPE_TRIGGER));
        ewl_text_trigger_start_pos_set(trigger, 
ewl_text_length_get(EWL_TEXT(o)));
 
        printf("Appending 'This is the multi\\n\\nline link.' [226]\n");
-       ewl_text_text_append(EWL_TEXT(o), "This is the multi\n\nline link."); 
/* 28 */
+       ewl_text_text_append(EWL_TEXT(o), "This is the multi\n\nline link."); 
/* 29 */
        len = ewl_text_cursor_position_get(EWL_TEXT(o)) -
                        ewl_text_trigger_start_pos_get(trigger);
        ewl_text_trigger_length_set(trigger, len);



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to