From bbb3cea0efc6ccc3751ef56f8590f88c0269cc54 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 11 Jan 2011 07:48:02 +0000 Subject: [PATCH] fix theme specific add if default theme involved. SVN revision: 56042 --- legacy/elementary/src/lib/elm_widget.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index 48393b564a..c9a93a31e2 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/src/lib/elm_widget.c @@ -479,12 +479,14 @@ elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force) Evas_Object *child; Elm_Tooltip *tt; Elm_Cursor *cur; - Elm_Theme *th2; + Elm_Theme *th2, *thdef; API_ENTRY return; if (!force) { th2 = sd->theme; + thdef = elm_theme_default_get(); + if (!th2) th2 = thdef; while (th2) { if (th2 == th) @@ -492,7 +494,8 @@ elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force) force = EINA_TRUE; break; } - th2 = th->ref_theme; + th2 = th->ref_theme; + if (th2 == thdef) break; } } if (!force) return;