colorselector,scroller: Check return value of elm_layout_theme_set

Fixes:
- CID1273968
- CID1291831
This commit is contained in:
Jean-Philippe Andre 2015-04-07 15:04:52 +09:00
parent 54de1cc76e
commit 315175083b
2 changed files with 6 additions and 2 deletions

View File

@ -1585,7 +1585,9 @@ _elm_colorselector_evas_object_smart_add(Eo *obj, Elm_Colorselector_Data *priv)
/* setup the color picker */
priv->picker = elm_layout_add(obj);
elm_layout_theme_set(priv->picker, "colorselector", "picker/base", elm_widget_style_get(obj));
if (!elm_layout_theme_set(priv->picker, "colorselector", "picker/base", elm_widget_style_get(obj)))
CRI("Failed to set layout!");
evas_object_size_hint_weight_set(priv->picker, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(priv->picker, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_widget_sub_object_add(obj, priv->picker);

View File

@ -634,7 +634,9 @@ _loop_content_set(Evas_Object *obj, Elm_Scroller_Data *sd, Evas_Object *content)
{
sd->contents = elm_layout_add(obj);
evas_object_smart_member_add(sd->contents, obj);
elm_layout_theme_set(sd->contents, "scroller", "contents", elm_widget_style_get(obj));
if (!elm_layout_theme_set(sd->contents, "scroller", "contents", elm_widget_style_get(obj)))
CRI("Failed to set layout!");
evas_object_size_hint_weight_set(sd->contents, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(sd->contents, EVAS_HINT_FILL, EVAS_HINT_FILL);