Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_spinner_test.c ewl_test.c 


Log Message:
A little work towards working spinners, this needs some cleanup.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_spinner_test.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_spinner_test.c  9 Oct 2003 07:32:57 -0000       1.13
+++ ewl_spinner_test.c  11 Oct 2003 06:16:06 -0000      1.14
@@ -132,6 +132,7 @@
        ewl_widget_show(spinner_row);
 
        text[0] = ewl_text_new("X");
+       ewl_object_set_alignment(EWL_OBJECT(text[0]), EWL_FLAG_ALIGN_CENTER);
        ewl_container_append_child(EWL_CONTAINER(spinner_row), text[0]);
        ewl_widget_show(text[0]);
 
@@ -155,6 +156,7 @@
        ewl_widget_show(spinner_row);
 
        text[1] = ewl_text_new("Y");
+       ewl_object_set_alignment(EWL_OBJECT(text[1]), EWL_FLAG_ALIGN_CENTER);
        ewl_container_append_child(EWL_CONTAINER(spinner_row), text[1]);
        ewl_widget_show(text[1]);
 
@@ -178,6 +180,7 @@
        ewl_widget_show(spinner_row);
 
        text[2] = ewl_text_new("W");
+       ewl_object_set_alignment(EWL_OBJECT(text[2]), EWL_FLAG_ALIGN_CENTER);
        ewl_container_append_child(EWL_CONTAINER(spinner_row), text[2]);
        ewl_widget_show(text[2]);
 
@@ -201,6 +204,7 @@
        ewl_widget_show(spinner_row);
 
        text[3] = ewl_text_new("H");
+       ewl_object_set_alignment(EWL_OBJECT(text[3]), EWL_FLAG_ALIGN_CENTER);
        ewl_container_append_child(EWL_CONTAINER(spinner_row), text[3]);
        ewl_widget_show(text[3]);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_test.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- ewl_test.c  9 Oct 2003 07:32:57 -0000       1.48
+++ ewl_test.c  11 Oct 2003 06:16:06 -0000      1.49
@@ -58,8 +58,6 @@
 
        ewl_main_quit();
 
-       exit(1);
-
        return;
        w = NULL;
        ev_data = NULL;
@@ -83,9 +81,15 @@
                { "Textarea", __create_textarea_test_window },
                { 0, 0 }
        };
+       void *heap_start, *heap_end;
+
+       heap_start = sbrk(0);
 
        ewl_init(argc, argv);
 
+       heap_end = sbrk(0);
+       printf("HEAP SIZE:\t%u bytes\n", heap_end - heap_start);
+
        main_win = ewl_window_new();
        ewl_window_set_title(EWL_WINDOW(main_win),
                             "The Enlightenment Widget Library");
@@ -124,7 +128,13 @@
                i++;
        }
 
+       heap_end = sbrk(0);
+       printf("HEAP SIZE:\t%u bytes\n", heap_end - heap_start);
+
        ewl_main();
 
-       return 1;
+       heap_end = sbrk(0);
+       printf("HEAP SIZE:\t%u bytes\n", heap_end - heap_start);
+
+       return 0;
 }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to