forked from enlightenment/efl
elementary/theme - Missed this in privouse commit.
Add watcher only edje_object_file is applied successfully. SVN revision: 84035
This commit is contained in:
parent
ade43adfd9
commit
8c475fe1ab
|
@ -230,15 +230,20 @@ _elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, con
|
|||
{
|
||||
Elm_Theme *th = NULL;
|
||||
void *test;
|
||||
Eina_Bool success;
|
||||
|
||||
if (parent) th = elm_widget_theme_get(parent);
|
||||
success = _elm_theme_set(th, o, clas, group, style);
|
||||
if (!success) return EINA_FALSE;
|
||||
|
||||
test = evas_object_data_get(o, "edje,theme,watcher");
|
||||
if (!test)
|
||||
{
|
||||
edje_object_signal_callback_add(o, "edje,change,file", "edje", _elm_theme_reload, NULL);
|
||||
edje_object_signal_callback_add(o, "edje,change,file", "edje",
|
||||
_elm_theme_reload, NULL);
|
||||
evas_object_data_set(o, "edje,theme,watcher", (void*) -1);
|
||||
}
|
||||
return _elm_theme_set(th, o, clas, group, style);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
/* only issued by elm_icon.c */
|
||||
|
|
Loading…
Reference in New Issue