summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_navigation_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_navigation_bar.c')
-rw-r--r--src/lib/elementary/efl_ui_navigation_bar.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/elementary/efl_ui_navigation_bar.c b/src/lib/elementary/efl_ui_navigation_bar.c
index 911f3386ef..02edcc7afb 100644
--- a/src/lib/elementary/efl_ui_navigation_bar.c
+++ b/src/lib/elementary/efl_ui_navigation_bar.c
@@ -49,7 +49,7 @@ _efl_ui_navigation_bar_efl_object_constructor(Eo *obj, Efl_Ui_Navigation_Bar_Dat
49 Eo *back_button = efl_add(EFL_UI_BUTTON_CLASS, obj, 49 Eo *back_button = efl_add(EFL_UI_BUTTON_CLASS, obj,
50 elm_widget_element_update(obj, efl_added, "back_button"), 50 elm_widget_element_update(obj, efl_added, "back_button"),
51 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _back_button_clicked_cb, obj), 51 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _back_button_clicked_cb, obj),
52 efl_gfx_visible_set(efl_added, EINA_FALSE)); 52 efl_gfx_entity_visible_set(efl_added, EINA_FALSE));
53 53
54 pd->back_button = back_button; 54 pd->back_button = back_button;
55 55
@@ -66,7 +66,7 @@ ELM_PART_TEXT_DEFAULT_IMPLEMENT(efl_ui_navigation_bar, Efl_Ui_Navigation_Bar_Dat
66ELM_PART_TEXT_DEFAULT_OPS(efl_ui_navigation_bar) 66ELM_PART_TEXT_DEFAULT_OPS(efl_ui_navigation_bar)
67 67
68static Eina_Bool 68static Eina_Bool
69_efl_ui_navigation_bar_content_set(Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA_UNUSED, const char *part, Efl_Gfx *content) 69_efl_ui_navigation_bar_content_set(Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA_UNUSED, const char *part, Efl_Gfx_Entity *content)
70{ 70{
71 if (eina_streq(part, "left_content")) 71 if (eina_streq(part, "left_content"))
72 { 72 {
@@ -79,13 +79,13 @@ _efl_ui_navigation_bar_content_set(Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA
79 return efl_content_set(efl_part(efl_super(obj, MY_CLASS), part), content); 79 return efl_content_set(efl_part(efl_super(obj, MY_CLASS), part), content);
80} 80}
81 81
82static Efl_Gfx * 82static Efl_Gfx_Entity *
83_efl_ui_navigation_bar_content_get(const Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA_UNUSED, const char *part) 83_efl_ui_navigation_bar_content_get(const Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA_UNUSED, const char *part)
84{ 84{
85 return efl_content_get(efl_part(efl_super(obj, MY_CLASS), part)); 85 return efl_content_get(efl_part(efl_super(obj, MY_CLASS), part));
86} 86}
87 87
88static Efl_Gfx * 88static Efl_Gfx_Entity *
89_efl_ui_navigation_bar_content_unset(Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA_UNUSED, const char *part) 89_efl_ui_navigation_bar_content_unset(Eo *obj, Efl_Ui_Navigation_Bar_Data *_pd EINA_UNUSED, const char *part)
90{ 90{
91 if (eina_streq(part, "left_content")) 91 if (eina_streq(part, "left_content"))
@@ -112,7 +112,7 @@ _efl_ui_navigation_bar_efl_part_part(const Eo *obj, Efl_Ui_Navigation_Bar_Data *
112} 112}
113 113
114EOLIAN static void 114EOLIAN static void
115_efl_ui_navigation_bar_part_back_button_efl_gfx_visible_set(Eo *obj, void *_pd EINA_UNUSED, Eina_Bool visible) 115_efl_ui_navigation_bar_part_back_button_efl_gfx_entity_visible_set(Eo *obj, void *_pd EINA_UNUSED, Eina_Bool visible)
116{ 116{
117 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 117 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
118 EFL_UI_NAVIGATION_BAR_DATA_GET_OR_RETURN(pd->obj, ppd); 118 EFL_UI_NAVIGATION_BAR_DATA_GET_OR_RETURN(pd->obj, ppd);
@@ -127,7 +127,7 @@ _efl_ui_navigation_bar_part_back_button_efl_gfx_visible_set(Eo *obj, void *_pd E
127 else 127 else
128 { 128 {
129 efl_content_unset(efl_part(efl_super(pd->obj, MY_CLASS), "back_button")); 129 efl_content_unset(efl_part(efl_super(pd->obj, MY_CLASS), "back_button"));
130 efl_gfx_visible_set(ppd->back_button, visible); 130 efl_gfx_entity_visible_set(ppd->back_button, visible);
131 efl_layout_signal_emit(pd->obj, "elm,state,back_button,hidden", "elm"); 131 efl_layout_signal_emit(pd->obj, "elm,state,back_button,hidden", "elm");
132 } 132 }
133 133
@@ -135,12 +135,12 @@ _efl_ui_navigation_bar_part_back_button_efl_gfx_visible_set(Eo *obj, void *_pd E
135} 135}
136 136
137EOLIAN static Eina_Bool 137EOLIAN static Eina_Bool
138_efl_ui_navigation_bar_part_back_button_efl_gfx_visible_get(const Eo *obj, void *_pd EINA_UNUSED) 138_efl_ui_navigation_bar_part_back_button_efl_gfx_entity_visible_get(const Eo *obj, void *_pd EINA_UNUSED)
139{ 139{
140 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 140 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
141 EFL_UI_NAVIGATION_BAR_DATA_GET_OR_RETURN(pd->obj, ppd, EINA_FALSE); 141 EFL_UI_NAVIGATION_BAR_DATA_GET_OR_RETURN(pd->obj, ppd, EINA_FALSE);
142 142
143 return efl_gfx_visible_get(ppd->back_button); 143 return efl_gfx_entity_visible_get(ppd->back_button);
144} 144}
145 145
146EOLIAN static void 146EOLIAN static void
@@ -162,7 +162,7 @@ _efl_ui_navigation_bar_part_back_button_efl_text_text_get(const Eo *obj, void *_
162} 162}
163 163
164static Eina_Bool 164static Eina_Bool
165_efl_ui_navigation_bar_part_back_button_efl_content_content_set(Eo *obj, void *_pd EINA_UNUSED, Efl_Gfx *content) 165_efl_ui_navigation_bar_part_back_button_efl_content_content_set(Eo *obj, void *_pd EINA_UNUSED, Efl_Gfx_Entity *content)
166{ 166{
167 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 167 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
168 EFL_UI_NAVIGATION_BAR_DATA_GET_OR_RETURN(pd->obj, ppd, EINA_FALSE); 168 EFL_UI_NAVIGATION_BAR_DATA_GET_OR_RETURN(pd->obj, ppd, EINA_FALSE);
@@ -175,7 +175,7 @@ _efl_ui_navigation_bar_part_back_button_efl_content_content_set(Eo *obj, void *_
175 return _efl_ui_navigation_bar_content_set(pd->obj, ppd, pd->part, content); 175 return _efl_ui_navigation_bar_content_set(pd->obj, ppd, pd->part, content);
176} 176}
177 177
178static Efl_Gfx* 178static Efl_Gfx_Entity*
179_efl_ui_navigation_bar_part_back_button_efl_content_content_get(const Eo *obj, void *_pd EINA_UNUSED) 179_efl_ui_navigation_bar_part_back_button_efl_content_content_get(const Eo *obj, void *_pd EINA_UNUSED)
180{ 180{
181 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 181 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
@@ -184,7 +184,7 @@ _efl_ui_navigation_bar_part_back_button_efl_content_content_get(const Eo *obj, v
184 return _efl_ui_navigation_bar_content_get(pd->obj, ppd, pd->part); 184 return _efl_ui_navigation_bar_content_get(pd->obj, ppd, pd->part);
185} 185}
186 186
187static Efl_Gfx* 187static Efl_Gfx_Entity*
188_efl_ui_navigation_bar_part_back_button_efl_content_content_unset(Eo *obj, void *_pd EINA_UNUSED) 188_efl_ui_navigation_bar_part_back_button_efl_content_content_unset(Eo *obj, void *_pd EINA_UNUSED)
189{ 189{
190 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); 190 Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);