From: Enlightenment S. <no-...@en...> - 2012-09-28 14:08:09
|
Log: [elm] Let's check for an elm widget before recursing on elm_widget_theme(). Author: glima Date: 2012-09-28 07:08:00 -0700 (Fri, 28 Sep 2012) New Revision: 77207 Trac: http://trac.enlightenment.org/e/changeset/77207 Modified: trunk/elementary/src/lib/elm_widget.c Modified: trunk/elementary/src/lib/elm_widget.c =================================================================== --- trunk/elementary/src/lib/elm_widget.c 2012-09-28 14:07:16 UTC (rev 77206) +++ trunk/elementary/src/lib/elm_widget.c 2012-09-28 14:08:00 UTC (rev 77207) @@ -1048,14 +1048,16 @@ Eina_Bool ret = EINA_TRUE; API_ENTRY return EINA_FALSE; - EINA_LIST_FOREACH (sd->subobjs, l, child) - ret &= elm_widget_theme(child); + + EINA_LIST_FOREACH(sd->subobjs, l, child) + if (_elm_widget_is(child)) ret &= elm_widget_theme(child); if (sd->resize_obj && _elm_widget_is(sd->resize_obj)) ret &= elm_widget_theme(sd->resize_obj); if (sd->hover_obj) ret &= elm_widget_theme(sd->hover_obj); - EINA_LIST_FOREACH (sd->tooltips, l, tt) + + EINA_LIST_FOREACH(sd->tooltips, l, tt) elm_tooltip_theme(tt); - EINA_LIST_FOREACH (sd->cursors, l, cur) + EINA_LIST_FOREACH(sd->cursors, l, cur) elm_cursor_theme(cur); if (!sd->api) return EINA_FALSE; |