summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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,
1223 1223
1224 if (!it->separator && !it->object) 1224 if (!it->separator && !it->object)
1225 { 1225 {
1226 elm_layout_theme_set(view, "toolbar", "item", style); 1226 if (!elm_layout_theme_set(view, "toolbar", "item", style))
1227 CRI("Failed to set layout!");
1227 if (it->selected) 1228 if (it->selected)
1228 { 1229 {
1229 elm_layout_signal_emit(view, "elm,state,selected", "elm"); 1230 elm_layout_signal_emit(view, "elm,state,selected", "elm");
@@ -1257,13 +1258,13 @@ _item_theme_hook(Evas_Object *obj,
1257 { 1258 {
1258 if (!it->object) 1259 if (!it->object)
1259 { 1260 {
1260 elm_layout_theme_set 1261 if (!elm_layout_theme_set(view, "toolbar", "separator", style))
1261 (view, "toolbar", "separator", style); 1262 CRI("Failed to set layout!");
1262 } 1263 }
1263 else 1264 else
1264 { 1265 {
1265 elm_layout_theme_set 1266 if (!elm_layout_theme_set(view, "toolbar", "object", style))
1266 (view, "toolbar", "object", style); 1267 CRI("Failed to set layout!");
1267 elm_layout_content_set(view, "elm.swallow.object", it->object); 1268 elm_layout_content_set(view, "elm.swallow.object", it->object);
1268 } 1269 }
1269 } 1270 }
@@ -2371,8 +2372,9 @@ _item_new(Evas_Object *obj,
2371 evas_object_del(icon_obj); 2372 evas_object_del(icon_obj);
2372 } 2373 }
2373 2374
2374 elm_layout_theme_set 2375 if (!elm_layout_theme_set
2375 (VIEW(it), "toolbar", "item", elm_widget_style_get(obj)); 2376 (VIEW(it), "toolbar", "item", elm_widget_style_get(obj)))
2377 CRI("Failed to set layout!");
2376 elm_layout_signal_callback_add 2378 elm_layout_signal_callback_add
2377 (VIEW(it), "elm,action,click", "elm", _select_cb, it); 2379 (VIEW(it), "elm,action,click", "elm", _select_cb, it);
2378 elm_layout_signal_callback_add 2380 elm_layout_signal_callback_add