Enlightenment CVS committal Author : codewarrior Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_fileman_smart.c Log Message: - enter changes dirs or launches file =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v retrieving revision 1.74 retrieving revision 1.75 diff -u -3 -r1.74 -r1.75 --- e_fileman_smart.c 2 Nov 2005 16:18:18 -0000 1.74 +++ e_fileman_smart.c 2 Nov 2005 16:31:18 -0000 1.75 @@ -2406,10 +2406,47 @@ static void _e_fm_icon_run(E_Fm_Smart_Data *sd) { - + E_Fm_Icon *icon; + if(sd->selection.current.ptr) + { + icon = sd->selection.current.file; + if (icon->file->type == E_FM_FILE_TYPE_DIRECTORY) + { + char *fullname; + + printf("dir!\n"); + + if (!strcmp(icon->file->name, "..")) + { + fullname = _e_fm_dir_pop(icon->sd->dir); + } + else + { + fullname = strdup(icon->file->path); + } + if (fullname) + { + if (icon->sd->win) + e_win_title_set(icon->sd->win, fullname); + _e_fm_dir_set(icon->sd, fullname); + free(fullname); + } + } + else if (icon->file->type == E_FM_FILE_TYPE_FILE) + { + if(icon->sd->is_selector) + { + _e_fm_selector_send_file(icon); + return; + } + + if ((!e_fm_file_assoc_exec(icon->file)) && + (e_fm_file_can_exec(icon->file))) + e_fm_file_exec(icon->file); + } + } } - static int _e_fm_win_key_down_cb(void *data, int type, void *event) { ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs