Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        main.c 


Log Message:
- clean out the tutorial text on test change
- add @note handling
- make the doxy match case insensitive
- minor changes to tutorial text

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- main.c      15 Mar 2006 05:26:34 -0000      1.24
+++ main.c      15 Mar 2006 21:59:38 -0000      1.25
@@ -538,7 +538,8 @@
 }
 
 static void
-cb_run_unit_tests(Ewl_Widget *w, void *ev __UNUSED__, void *data __UNUSED__)
+cb_run_unit_tests(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, 
+                                               void *data __UNUSED__)
 {
        int i;
        Ewl_Test *test;
@@ -601,6 +602,7 @@
        tmp = *(end + 1);
        *(end + 1) = '\0';
 
+       ewl_text_text_set(EWL_TEXT(tutorial), "");
        tutorial_parse(EWL_TEXT(tutorial), start);
 
        *(end + 1) = tmp;
@@ -663,13 +665,13 @@
                        ewl_text_text_append(tutorial, ptr);
 
                        ptr2++;
-                       if ((!strncmp(ptr2, "addtogroup", 10))
-                                       || (!strncmp(ptr2, "section", 7)))
+                       if ((!strncasecmp(ptr2, "addtogroup", 10))
+                                       || (!strncasecmp(ptr2, "section", 7)))
                        {
                                int size = 14;
                                char t;
 
-                               if (!strncmp(ptr2, "addtogroup", 10))
+                               if (!strncasecmp(ptr2, "addtogroup", 10))
                                        size = 18;
 
                                ptr2 = strstr(ptr2, "\n");
@@ -688,18 +690,27 @@
                                *ptr2 = t;
                                ptr2 ++;
                        }
-                       else if (!strncmp(ptr2, "code", 4))
+                       else if (!strncasecmp(ptr2, "code", 4))
                        {
                                ptr2 += strlen("code\n");
                                ewl_text_color_set(tutorial, 
                                                128, 128, 128, 255);
                        }
-                       else if (!strncmp(ptr2, "endcode", 7))
+                       else if (!strncasecmp(ptr2, "endcode", 7))
                        {
                                ptr2 += strlen("endcode\n");
                                ewl_text_color_set(tutorial,
                                                0, 0, 0, 255);
                        }
+                       else if (!strncasecmp(ptr2, "note", 4))
+                       {
+                               ewl_text_font_size_set(tutorial, 12);
+                               ewl_text_text_append(tutorial, "Note");
+                               ewl_text_text_append(tutorial, "\n");
+                               ewl_text_font_size_set(tutorial, 10);
+
+                               ptr2 += strlen("note");
+                       }
                        else
                                printf("Didn't match (%s)\n", ptr2);
                }




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to