Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_test.c 


Log Message:
More work on the tree. Minor change to the ewl_init function to modify the
args passed to it. Added some framework for a dialog box theme. 

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_test.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- ewl_test.c  25 Oct 2003 05:55:47 -0000      1.52
+++ ewl_test.c  28 Oct 2003 18:49:34 -0000      1.53
@@ -13,6 +13,12 @@
        user_data = NULL;
 }
 
+void
+__realize_main_window(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+       printf("Main window realized with theme_object %p\n", w->theme_object);
+}
+
 int
 main(int argc, char **argv)
 {
@@ -36,7 +42,7 @@
 
        heap_start = sbrk(0);
 
-       ewl_init(argc, argv);
+       ewl_init(&argc, argv);
 
        heap_end = sbrk(0);
        printf("HEAP SIZE:\t%u bytes\n", heap_end - heap_start);
@@ -46,6 +52,8 @@
                             "The Enlightenment Widget Library");
        ewl_callback_append(main_win, EWL_CALLBACK_DELETE_WINDOW,
                            __close_main_window, NULL);
+       ewl_callback_append(main_win, EWL_CALLBACK_REALIZE,
+                           __realize_main_window, NULL);
        ewl_widget_show(main_win);
 
        /*




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to