You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
694 B
25 lines
694 B
#include "entrance.h" |
|
|
|
Eina_List * |
|
entrance_theme_themes_get(void) |
|
{ |
|
Eina_Iterator *themes; |
|
Eina_List *targets = NULL; |
|
Eina_File_Direct_Info *file_stat; |
|
char *basename; |
|
|
|
themes = eina_file_stat_ls(PACKAGE_DATA_DIR"/themes/"); |
|
if (!themes) |
|
return NULL; |
|
EINA_ITERATOR_FOREACH(themes, file_stat) |
|
{ |
|
basename = eina_str_split(&file_stat->path[file_stat->name_start], ".",2)[0]; |
|
if (basename[0] != '.' |
|
&& file_stat->type == EINA_FILE_REG |
|
&& eina_str_has_extension(file_stat->path, ".edj")) |
|
targets = eina_list_append(targets, eina_stringshare_add(basename)); |
|
} |
|
eina_iterator_free(themes); |
|
return targets; |
|
} |
|
|
|
|