summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-07-10 20:54:23 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-07-10 20:54:23 +0530
commit9baca711689d3446c441249dfc213b1d494395f7 (patch)
tree4410ce12956cc6200a037e69b94887620ab6e426
parent64ee4422530f7c94a88f2b853653c6f90d7e5cd3 (diff)
downloadelementary-9baca711689d3446c441249dfc213b1d494395f7.tar.gz
toolbar: Check return value of elm_layout_theme_set.
-rw-r--r--src/lib/elm_toolbar.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index cbff114f3..78492200a 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -1223,7 +1223,8 @@ _item_theme_hook(Evas_Object *obj,
if (!it->separator && !it->object)
{
- elm_layout_theme_set(view, "toolbar", "item", style);
+ if (!elm_layout_theme_set(view, "toolbar", "item", style))
+ CRI("Failed to set layout!");
if (it->selected)
{
elm_layout_signal_emit(view, "elm,state,selected", "elm");
@@ -1257,13 +1258,13 @@ _item_theme_hook(Evas_Object *obj,
{
if (!it->object)
{
- elm_layout_theme_set
- (view, "toolbar", "separator", style);
+ if (!elm_layout_theme_set(view, "toolbar", "separator", style))
+ CRI("Failed to set layout!");
}
else
{
- elm_layout_theme_set
- (view, "toolbar", "object", style);
+ if (!elm_layout_theme_set(view, "toolbar", "object", style))
+ CRI("Failed to set layout!");
elm_layout_content_set(view, "elm.swallow.object", it->object);
}
}
@@ -2371,8 +2372,9 @@ _item_new(Evas_Object *obj,
evas_object_del(icon_obj);
}
- elm_layout_theme_set
- (VIEW(it), "toolbar", "item", elm_widget_style_get(obj));
+ if (!elm_layout_theme_set
+ (VIEW(it), "toolbar", "item", elm_widget_style_get(obj)))
+ CRI("Failed to set layout!");
elm_layout_signal_callback_add
(VIEW(it), "elm,action,click", "elm", _select_cb, it);
elm_layout_signal_callback_add