Enlightenment CVS committal Author : raster Project : misc Module : rage
Dir : misc/rage/src/bin Modified Files: main.c Log Message: dvd watch menu item.. watches dvd's now =================================================================== RCS file: /cvs/e/misc/rage/src/bin/main.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- main.c 25 Jul 2007 17:05:16 -0000 1.4 +++ main.c 11 Aug 2007 15:48:03 -0000 1.5 @@ -649,6 +649,26 @@ } static void +main_menu_dvd_watch(void *data) +{ + Video_Lib_Item *vli; + + vli = data; + if (over_delay_timer) + { + ecore_timer_del(over_delay_timer); + over_delay_timer = NULL; + } + main_mode_push(VIDEO); + if (over_video) + { + minivid_del(over_video); + over_video = NULL; + } + video_init("emotion_decoder_xine.so", "dvd://", "video"); +} + +static void main_menu_video(void *data) { menu_push("menu", "Video", NULL, NULL); @@ -667,21 +687,6 @@ menu_go(); menu_item_select("Library"); - - { - const Evas_List *l; - - for (l = volume_items_get(); l; l = l->next) - { - Volume_Item *vi; - - vi = l->data; - if (!strcmp(vi->type, "video")) - { - printf("%s :: %s - (%s)\n", vi->genre, vi->name, vi->path); - } - } - } } static void @@ -696,7 +701,7 @@ NULL, NULL, NULL, NULL, NULL); menu_item_add("icon/dvd", "Watch", "Watch your DVD", NULL, - NULL, NULL, NULL, NULL, NULL); + main_menu_dvd_watch, NULL, NULL, NULL, NULL); menu_item_enabled_set("DVD", "Resume", 0); menu_item_enabled_set("DVD", "Rip", 0); menu_item_enabled_set("DVD", "Watch", 1); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs