forked from enlightenment/efl
fix theme specific add if default theme involved.
SVN revision: 56042
This commit is contained in:
parent
c2d396e11a
commit
bbb3cea0ef
|
@ -479,12 +479,14 @@ elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force)
|
||||||
Evas_Object *child;
|
Evas_Object *child;
|
||||||
Elm_Tooltip *tt;
|
Elm_Tooltip *tt;
|
||||||
Elm_Cursor *cur;
|
Elm_Cursor *cur;
|
||||||
Elm_Theme *th2;
|
Elm_Theme *th2, *thdef;
|
||||||
|
|
||||||
API_ENTRY return;
|
API_ENTRY return;
|
||||||
if (!force)
|
if (!force)
|
||||||
{
|
{
|
||||||
th2 = sd->theme;
|
th2 = sd->theme;
|
||||||
|
thdef = elm_theme_default_get();
|
||||||
|
if (!th2) th2 = thdef;
|
||||||
while (th2)
|
while (th2)
|
||||||
{
|
{
|
||||||
if (th2 == th)
|
if (th2 == th)
|
||||||
|
@ -492,7 +494,8 @@ elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force)
|
||||||
force = EINA_TRUE;
|
force = EINA_TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
th2 = th->ref_theme;
|
th2 = th->ref_theme;
|
||||||
|
if (th2 == thdef) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!force) return;
|
if (!force) return;
|
||||||
|
|
Loading…
Reference in New Issue