Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

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


Modified Files:
        ewl_text.c 


Log Message:
- spit out some extra info to the console to make tracking warnings and
  segvs easier 

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text/ewl_text.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_text.c  20 Oct 2006 18:21:53 -0000      1.2
+++ ewl_text.c  6 Nov 2006 16:09:08 -0000       1.3
@@ -114,23 +114,41 @@
        ewl_container_child_append(EWL_CONTAINER(box), o);
        ewl_widget_show(o);
 
+       printf("Insert 'The first bunch of text\\n'\n");
        ewl_text_text_insert(EWL_TEXT(o), "The first bunch of text\n", 0); /* 
24 */
 
+       printf("Cursor position\n");
        ewl_text_cursor_position_set(EWL_TEXT(o), 10);
+
+       printf("Colour apply\n");
        ewl_text_color_apply(EWL_TEXT(o), 0, 0, 255, 255, 5);
+
+       printf("Appending 'The second bunch of text\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "The second bunch of text\n"); /* 25 
*/
 
+       printf("Font size set\n");
        ewl_text_font_size_set(EWL_TEXT(o), 20);
+
+       printf("Styles set\n");
        ewl_text_styles_set(EWL_TEXT(o), EWL_TEXT_STYLE_DOUBLE_UNDERLINE
                                                | EWL_TEXT_STYLE_OUTLINE
                                                | EWL_TEXT_STYLE_SOFT_SHADOW);
+       printf("Double underline colour set\n");
        ewl_text_double_underline_color_set(EWL_TEXT(o), 50, 50, 50, 255);
+
+       printf("Shadow colour set\n");
        ewl_text_shadow_color_set(EWL_TEXT(o), 128, 128, 128, 128);
+
+       printf("Outline colour set\n");
        ewl_text_outline_color_set(EWL_TEXT(o), 200, 200, 200, 200);
+
+       printf("Appending 'The third bunch of text\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "The third bunch of text\n"); /* 24 */
 
+       printf("Inserting 'The fourth bunch of text\\n'\n");
        ewl_text_text_insert(EWL_TEXT(o), "The fourth bunch of text\n", 31); /* 
25 */
 
+       printf("Creating trigger\n");
        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)));
@@ -149,26 +167,44 @@
        ewl_callback_append(EWL_WIDGET(trigger), EWL_CALLBACK_MOUSE_OUT,
                        trigger_cb_mouse_out, NULL);
 
+       printf("Inserting 'The fifth bunch of text\\n'\n");
        ewl_text_text_insert(EWL_TEXT(o), "The fifth bunch of text\n", 0); /* 
24 */
 
+       printf("Cursor position\n");
        ewl_text_cursor_position_set(EWL_TEXT(o), 0);
+
+       printf("Colour apply\n");
        ewl_text_color_apply(EWL_TEXT(o), 255, 0, 0, 255, 24);
 
+       printf("Inserting 'The sixth bunch of text\\n'\n");
        ewl_text_text_insert(EWL_TEXT(o), "The sixth bunch of text\n", 24); /* 
24 */
 
+       printf("Cursor position\n");
        ewl_text_cursor_position_set(EWL_TEXT(o), 43);
+
+       printf("Colour apply\n");
        ewl_text_color_apply(EWL_TEXT(o), 0, 255, 0, 255, 14);
 
+       printf("Cursor position\n");
        ewl_text_cursor_position_set(EWL_TEXT(o), 
ewl_text_length_get(EWL_TEXT(o)));
+
+       printf("Colour set\n");
        ewl_text_color_set(EWL_TEXT(o), 255, 0, 0, 255);
+
+       printf("Appending 'And in red\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "And in red\n"); /* 11 */
 
+       printf("Colour set\n");
        ewl_text_color_set(EWL_TEXT(o), 0, 0, 0, 255);
+
+       printf("Appending 'Once more with feeling. '\n");
        ewl_text_text_append(EWL_TEXT(o), "Once more with feeling. ");
 
+       printf("Trigger\n");
        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.'\n");
        ewl_text_text_append(EWL_TEXT(o), "This is the multi\n\nline link."); 
/* 28 */
        len = ewl_text_cursor_position_get(EWL_TEXT(o)) -
                        ewl_text_trigger_start_pos_get(trigger);
@@ -182,22 +218,30 @@
        ewl_callback_append(EWL_WIDGET(trigger), EWL_CALLBACK_MOUSE_OUT,
                        trigger_cb_mouse_out, NULL);
 
+       printf("Colour set\n");
        ewl_text_color_set(EWL_TEXT(o), 255, 0, 255, 255);
+
+       printf("Appending 'ONE MORE SEGV\\n\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "ONE MORE SEGV\n\n");
 
+       printf("Colour set\n");
        ewl_text_color_set(EWL_TEXT(o), 0, 0, 0, 255);
+
+       printf("Appending 'Align Left\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "Align Left\n");
 
+       printf("Align set\n");
        ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_CENTER);
+
+       printf("Appending 'Align Center.\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "Align Center.\n");
 
+       printf("Align set\n");
        ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_RIGHT);
+
+       printf("Appending 'Align Right.\\n'\n");
        ewl_text_text_append(EWL_TEXT(o), "Align Right.\n");
-#if 0
-       printf("-- DUMP --\n");
-       ewl_text_tree_dump((EWL_TEXT(o))->formatting.tree, "");
-       printf("-- DUMP DONE --\n");
-#endif
+
        return 1;
 }
 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to