summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/elm_settingspane.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/elm_settingspane.c b/src/elm_settingspane.c
index c6ae73b..d837f0d 100644
--- a/src/elm_settingspane.c
+++ b/src/elm_settingspane.c
@@ -1165,6 +1165,15 @@ _search_entry_changed(void *data, Evas_Object *obj, void *event_info EINA_UNUSED
1165 _search_panel_search_string_update(w, edit); 1165 _search_panel_search_string_update(w, edit);
1166} 1166}
1167 1167
1168static void
1169_elm_settingspane_show_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
1170{
1171 Elm_Settingspane_Data *wd = data;
1172
1173 if (!wd->stack)
1174 _item_stack_push(obj, wd->zero);
1175}
1176
1168EOLIAN static void 1177EOLIAN static void
1169_elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd) 1178_elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd)
1170{ 1179{
@@ -1181,6 +1190,7 @@ _elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd)
1181 } 1190 }
1182 elm_layout_signal_callback_add(obj, "action,back", "conf", conf_menu_back_cb, obj); 1191 elm_layout_signal_callback_add(obj, "action,back", "conf", conf_menu_back_cb, obj);
1183 elm_widget_signal_emit(obj, EMIT_BACK_DISABLE); 1192 elm_widget_signal_emit(obj, EMIT_BACK_DISABLE);
1193 evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW, _elm_settingspane_show_cb ,pd);
1184 1194
1185 bx = elm_box_add(obj); 1195 bx = elm_box_add(obj);
1186 elm_box_align_set(bx, 0.0, 0.5); 1196 elm_box_align_set(bx, 0.0, 0.5);
@@ -1218,8 +1228,6 @@ _elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd)
1218 _menu_layout_init(obj); 1228 _menu_layout_init(obj);
1219 1229
1220 pd->zero = _item_new(obj, NULL, NULL, eina_stringshare_add("root"), eina_stringshare_add(""), NULL); 1230 pd->zero = _item_new(obj, NULL, NULL, eina_stringshare_add("root"), eina_stringshare_add(""), NULL);
1221 _item_stack_push(obj, pd->zero);
1222// _menu_layout_show(obj, pd->zero, EINA_TRUE);
1223} 1231}
1224 1232
1225EOLIAN static void 1233EOLIAN static void