Enlightenment CVS committal Author : handyande Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: ewl_media_test.c Log Message: update examples to new ewl api =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_media_test.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_media_test.c 3 Oct 2005 06:43:07 -0000 1.6 +++ ewl_media_test.c 5 Oct 2005 10:45:32 -0000 1.7 @@ -146,7 +146,8 @@ fd_win_del_cb, NULL); ewl_widget_show(fd_win); - fd = ewl_filedialog_new(EWL_FILEDIALOG_TYPE_OPEN); + fd = ewl_filedialog_new(); + ewl_filedialog_type_set(EWL_FILEDIALOG(fd), EWL_FILEDIALOG_TYPE_OPEN); ewl_container_child_append(EWL_CONTAINER(fd_win), fd); ewl_callback_append(fd, EWL_CALLBACK_VALUE_CHANGED, open_file_cb, NULL); ewl_widget_show(fd); @@ -228,17 +229,18 @@ { Control controls [] = { - { "play", play_cb }, - { "stop", stop_cb }, - { "rewind", rew_cb }, - { "fast forward", ff_cb }, - { "open", open_cb }, + { EWL_STOCK_PLAY, play_cb }, + { EWL_STOCK_STOP, stop_cb }, + { EWL_STOCK_REWIND, rew_cb }, + { EWL_STOCK_FASTFORWARD, ff_cb }, + { EWL_STOCK_OPEN, open_cb }, { NULL, NULL } }; int i; for(i = 0; controls[i].name != NULL; i++) { - o = ewl_button_stock_new(controls[i].name); + o = ewl_button_stock_new(); + ewl_button_stock_id_set(EWL_BUTTON_STOCK(o), controls[i].name); ewl_container_child_append(EWL_CONTAINER(b), o); ewl_callback_append(o, EWL_CALLBACK_CLICKED, controls[i].func, 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