Evas_Object *genlist = create_genlist(naviframe);
#ifdef _COMMON
evas_object_smart_callback_add(genlist, "realized", _gl_realized_cb, NULL);
+
+ Evas_Object *layout = elm_layout_add(naviframe);
+ elm_layout_file_set(layout, OPTION_LAYOUT_EDJ, "main_layout");
+ elm_object_content_set(layout, genlist);
+ evas_object_show(layout);
#endif
SCLOptionWindowType type = find_option_window_type(naviframe);
evas_object_show(genlist);
- naviframe_item_push(naviframe, LANGUAGE, genlist, _pop_cb, naviframe, language_selection_finished_cb, naviframe);
+ Evas_Object *content;
+#ifdef _COMMON
+ content = layout;
+#else
+ content = genlist;
+#endif
+
+ naviframe_item_push(naviframe, LANGUAGE, content, _pop_cb, naviframe, language_selection_finished_cb, naviframe);
return genlist;
}
#ifdef _TV
option_elements[type].back_button = naviframe_item_push(naviframe, OPTIONS, mlayout, NULL, NULL, navi_back_cb, NULL, EINA_FALSE);
-
#else
Evas_Object *list = create_option_main_view(conformant, naviframe, type);
option_elements[type].back_button = naviframe_item_push(naviframe, OPTIONS, list, NULL, NULL, navi_back_cb, NULL);