Exemplo n.º 1
0
int
_ex_file_is_ebg(char *file)
{
   int          val;
   char        *ext;
   Eina_List   *groups, *l;
   
   ext = strrchr(file, '.');
   if (!ext) return 0;
   
   if (strcasecmp(ext, ".edj"))
     return 0;
   
   val = 0;
   groups = edje_file_collection_list(file);
   if (!groups)
     return 0;
   
   for (l = groups; l; l = l->next)
     {
	if (!strcmp(l->data, "e/desktop/background"))
	  {
	     val = 1;
	     break;
	  }
     }
   edje_file_collection_list_free(groups);
   return val;
}
Exemplo n.º 2
0
PREFIX value ml_edje_file_collection_list(value v_theme)
{
        Eina_List* list = edje_file_collection_list(String_val(v_theme));
        value v_list = copy_Eina_List_string(list);
        edje_file_collection_list_free(list);
        return v_list;
}