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:
Amitesh Singh 2015-05-15 19:17:01 +09:00 committed by Carsten Haitzler (Rasterman)
parent 311293f9aa
commit 6fb21212f4
1 changed files with 1 additions and 1 deletions

View File

@ -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",