Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        ewl_media_test.c 


Log Message:
update to the new emotion api
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_media_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_media_test.c    5 Sep 2005 14:12:15 -0000       1.3
+++ ewl_media_test.c    2 Oct 2005 09:44:21 -0000       1.4
@@ -172,6 +172,7 @@
 {
     Ewl_Widget *win = NULL, *o = NULL, *b = NULL;
     Ewl_Widget *controls = NULL, *time = NULL;
+    char * module = NULL;
     char * file = NULL;
 
     if (!ewl_init(&argc, argv)) {
@@ -179,8 +180,10 @@
        return 1;
     }
 
-    if (argc > 1)
-       file = argv[1];
+    if (argc > 2) {
+        module = argv[1];
+        file = argv[2];
+    }
 
     win = ewl_window_new();
     ewl_window_title_set(EWL_WINDOW(win), "EWL Media test");
@@ -202,7 +205,7 @@
     time = ewl_text_new("00:00:00");
 
     /* the video */
-    video = ewl_media_new(file);
+    video = ewl_media_new(module, file);
     ewl_container_child_append(EWL_CONTAINER(b), video);
     ewl_object_fill_policy_set(EWL_OBJECT(video), EWL_FLAG_FILL_ALL);
     ewl_callback_append(video, EWL_CALLBACK_REALIZE, video_realize_cb, NULL);




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to