[Elm] No reason to call theming on !elm object.
authorglima <glima@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 12 Mar 2012 13:58:19 +0000 (13:58 +0000)
committerglima <glima@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 12 Mar 2012 13:58:19 +0000 (13:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69249 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_widget.c

index 2eb2d48..0e9a083 100644 (file)
@@ -666,7 +666,8 @@ elm_widget_theme(Evas_Object *obj)
 
    API_ENTRY return EINA_FALSE;
    EINA_LIST_FOREACH(sd->subobjs, l, child) ret &= elm_widget_theme(child);
-   if (sd->resize_obj) ret &= elm_widget_theme(sd->resize_obj);
+   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) elm_tooltip_theme(tt);
    EINA_LIST_FOREACH(sd->cursors, l, cur) elm_cursor_theme(cur);