summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-07-16 11:29:29 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-07-16 11:31:06 +0900
commit6008c2c3867e3198d468b66d703aa39ee21445a5 (patch)
treeac37369143f1f763b4a44cc3ccfba6aa5474c31d /src/lib/elm_toolbar.c
parentc4eb2164d3c644c0d70662cf24f6fede34a7c673 (diff)
toolbar: item content unset function called when user content unset to toolbar item.
Summary: It's related with https://phab.enlightenment.org/D2777 I missed doing on content_unset case. Reviewers: Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D2808
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 78492200a..e04964343 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -1620,7 +1620,11 @@ _elm_toolbar_item_elm_widget_item_part_content_unset(Eo *eo_item EINA_UNUSED, El
1620 1620
1621 ELM_TOOLBAR_DATA_GET(obj, sd); 1621 ELM_TOOLBAR_DATA_GET(obj, sd);
1622 1622
1623 if (part && strcmp(part, "object")) return NULL; 1623 if (part && strcmp(part, "object") && strcmp(part, "elm.swallow.object"))
1624 {
1625 eo_do(VIEW(item), o = elm_obj_container_content_unset(part));
1626 return o;
1627 }
1624 1628
1625 elm_layout_content_unset(VIEW(item), "elm.swallow.object"); 1629 elm_layout_content_unset(VIEW(item), "elm.swallow.object");
1626 elm_widget_sub_object_del(obj, item->object); 1630 elm_widget_sub_object_del(obj, item->object);