}
while (cnt > 0) {
- _DBG("[cnt = %d] json_reader_end_member",cnt);
json_reader_end_member(jparser->reader);
cnt--;
}
cursor = 0;
// For Debugging
- _DBG("===================================================================================");
- _DBG("[START][ name = %s ][Parser = %x][Reader = %x]",name, jparser, jparser->reader);
- _DBG("Member cnt = %d", json_reader_count_members(jparser->reader));
- _DBG("Current Member = %s", json_reader_get_member_name(jparser->reader));
+ //_DBG("[START][ name = %s ][Parser = %x][Reader = %x]",name, jparser, jparser->reader);
+ //_DBG("Member cnt = %d", json_reader_count_members(jparser->reader));
+ //_DBG("Current Member = %s", json_reader_get_member_name(jparser->reader));
if (flag == DRAWING_INFO) {
- _DBG("[%s] flag is DRAWING_INFO", JSONSTR_SETTING_ITEMS);
if (!json_reader_read_member(jparser->reader, JSONSTR_SETTING_ITEMS))
{
cursor++;
- _DBG("[%s] Fail to read member from json", JSONSTR_SETTING_ITEMS);
goto error;
}
} else if (flag == SUBMENU_INFO) {
- _DBG("[%s] flag is SUBMENU_INFO", JSONSTR_SETTING_TREE);
if (!json_reader_read_member(jparser->reader, JSONSTR_SETTING_TREE))
{
cursor++;
- _DBG("[%s] Fail to read member from json", JSONSTR_SETTING_TREE);
goto error;
}
} else {
- _DBG("flag is invalid. flag = %d", flag);
goto error;
}
if (!json_reader_read_member(jparser->reader, name))
{
cursor++;
- _DBG("[%s] Fail to read member from json", name);
goto error;
}
- _DBG("[END][ name = %s ]",name);
- _DBG("===================================================================================");
cursor++;
return list;
error:
- _DBG("[END-ERROR][ name = %s ]",name);
- _DBG("===================================================================================");
_restore_json_reader_location(jparser, cursor);
*cnt = 0;
height = MAX_ITEMS * ITEM_HEIGHT + ITEM_OFFSET;
if (y > screen_h)
+ {
y = y - height;
+ _DBG("y > screen_h !!!!!! y = %d", y);
+ }
- evas_object_move(data->ctxpopup, x * ELM_SCALE, y * ELM_SCALE);
+ _DBG("x : %d , y : %d, ELM_SCALE = %f, height = %d", x , y , ELM_SCALE, height);
+ evas_object_move(data->ctxpopup, x * ELM_SCALE, (y * ELM_SCALE) + height);
utils_set_focus_directions(data->sub_btn_array, data->sub_items_count);