elm - palette - add api to check if palette has a system version
This commit is contained in:
parent
cf0df4872d
commit
904d80e0ae
|
@ -1036,6 +1036,17 @@ elm_config_palette_delete(const char *palette)
|
|||
ecore_file_unlink(buf);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
elm_config_palette_system_has(const char *palette)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
|
||||
if (!palette) return EINA_TRUE;
|
||||
if (strchr(palette, '/')) return EINA_FALSE;
|
||||
_elm_data_dir_snprintf(buf, sizeof(buf), "colors/%s.pal", palette);
|
||||
return ecore_file_exists(buf);
|
||||
}
|
||||
|
||||
EAPI Eina_List *
|
||||
elm_config_palette_list(void)
|
||||
{
|
||||
|
|
|
@ -1138,6 +1138,7 @@ EAPI void elm_config_palette_color_unset(Elm_Palette *pal, const char *n
|
|||
EAPI void elm_config_palette_save(Elm_Palette *pal, const char *palette);
|
||||
EAPI void elm_config_palette_free(Elm_Palette *pal);
|
||||
EAPI void elm_config_palette_delete(const char *palette);
|
||||
EAPI Eina_Bool elm_config_palette_system_has(const char *palette);
|
||||
EAPI Eina_List *elm_config_palette_list(void);
|
||||
EAPI void elm_config_palette_list_free(Eina_List *list);
|
||||
/** end new palette code **/
|
||||
|
|
Loading…
Reference in New Issue