forked from enlightenment/efl
theme: return false if elm_object_style_set() failed to set requested style.
Summary: elm_object_style_set(obj, "XXXX"); should return FALSE if XXXX style does not exist. Although it does set default style if "XXXX" style does not exist. @fix Reviewers: raster, Hermet Subscribers: seoz, sachin.dev Differential Revision: https://phab.enlightenment.org/D2511
This commit is contained in:
parent
311293f9aa
commit
6fb21212f4
|
@ -320,7 +320,7 @@ _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *grou
|
|||
file = _elm_theme_group_file_find(th, buf2);
|
||||
if (file)
|
||||
{
|
||||
if (edje_object_mmap_set(o, file, buf2)) return EINA_TRUE;
|
||||
if (edje_object_mmap_set(o, file, buf2)) return EINA_FALSE;
|
||||
else
|
||||
{
|
||||
DBG("could not set theme group '%s' from file '%s': %s",
|
||||
|
|
Loading…
Reference in New Issue