summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2014-04-24 14:22:26 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-04-24 14:24:36 +0900
commitd2538d0aaa14657f5e9a308292d4dc1206b13e4d (patch)
tree7e5ce3f1b8d0fa98b68e6e8c6a27ca6876ecde44
parent378f7eedfa0cd09cde5cb7716b7778e7770c6951 (diff)
naviframe: Emit visible/invisible signals when view is shown/hidden
Summary: Previously, previous view was just shown by evas_object_show and hidden by evas_object_hide. Now, "elm,state,visible" and "elm,state,invisible" signals are emitted to enable application to do in edc what they want when each view is shown/hidden. Reviewers: Hermet CC: raster Differential Revision: https://phab.enlightenment.org/D785
-rw-r--r--src/lib/elc_naviframe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index 070200b56..9f619be63 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1077,6 +1077,8 @@ _on_item_push_finished(void *data,
1077 1077
1078 evas_object_hide(VIEW(it)); 1078 evas_object_hide(VIEW(it));
1079 1079
1080 elm_object_signal_emit(VIEW(it), "elm,state,invisible", "elm");
1081
1080 if (sd->freeze_events) 1082 if (sd->freeze_events)
1081 evas_object_freeze_events_set(VIEW(it), EINA_FALSE); 1083 evas_object_freeze_events_set(VIEW(it), EINA_FALSE);
1082} 1084}
@@ -1612,6 +1614,7 @@ _item_insert_before(Eo *obj, void *_pd, va_list *list)
1612 EINA_INLIST_GET(((Elm_Naviframe_Item *)before))); 1614 EINA_INLIST_GET(((Elm_Naviframe_Item *)before)));
1613 1615
1614 elm_widget_tree_unfocusable_set(VIEW(it), EINA_TRUE); 1616 elm_widget_tree_unfocusable_set(VIEW(it), EINA_TRUE);
1617 elm_object_signal_emit(VIEW(it), "elm,state,invisible", "elm");
1615 1618
1616 elm_layout_sizing_eval(obj); 1619 elm_layout_sizing_eval(obj);
1617 1620
@@ -1672,6 +1675,8 @@ _item_insert_after(Eo *obj, void *_pd, va_list *list)
1672 elm_object_focus_set(VIEW(it), EINA_TRUE); 1675 elm_object_focus_set(VIEW(it), EINA_TRUE);
1673 else 1676 else
1674 elm_object_focus_set(WIDGET(it), EINA_TRUE); 1677 elm_object_focus_set(WIDGET(it), EINA_TRUE);
1678 elm_object_signal_emit(VIEW(it), "elm,state,visible", "elm");
1679 elm_object_signal_emit(VIEW(after), "elm,state,invisible", "elm");
1675 } 1680 }
1676 else 1681 else
1677 elm_object_signal_emit(VIEW(it), "elm,state,invisible", "elm"); 1682 elm_object_signal_emit(VIEW(it), "elm,state,invisible", "elm");