On the widget creation time, we should not set the theme in the widget infra.
This will cause the corruption of the theme_hook working since the widget is not setup yet.
Also the theme_set() will be applied twice each widget will set the themes right after base widget is created.
th = elm_widget_theme_get(sobj);
mirrored = elm_widget_mirrored_get(sobj);
- if ((scale != pscale) || (!sdc->on_create && th != pth) ||
- (!sdc->on_create && (pmirrored != mirrored)))
- elm_widget_theme(sobj);
+ if (!sdc->on_create)
+ {
+ if ((scale != pscale) || (th != pth) || (pmirrored != mirrored))
+ elm_widget_theme(sobj);
+ }
if (elm_widget_focus_get(sobj)) _parents_focus(obj);
}