evas_object_size_hint_weight_set(rect, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(rect, EVAS_HINT_FILL, 1.0);
evas_object_size_hint_min_set(rect, 0, height);
- evas_object_color_set(rect, 0, 0, 0, 0);
+ evas_object_color_set(rect, 0, 0, 0, 255);
evas_object_show(rect);
return rect;
w = h;
attach_panel->rotate = EINA_TRUE;
+ _D("port_state: %d land_state: %d", attach_panel->attach_panel_port_state, attach_panel->attach_panel_land_state);
if (ATTACH_PANEL_STATE_HIDDEN == attach_panel->attach_panel_port_state) {
attach_panel->attach_panel_land_state = ATTACH_PANEL_STATE_HIDDEN;
} else if (ATTACH_PANEL_STATE_PARTIAL == attach_panel->attach_panel_port_state) {
continue;
}
ug_send_message(ui_gadget, app_control);
+ _D("%s: key[%s] val[%s]", innate_content_info->appid, key, value);
}
}
return;
}
ug_send_message(ui_gadget, app_control);
+ _D("%s: key[%s] val[%s]", content_info->innate_content_info->appid, key, value);
ret = app_control_destroy(app_control);
ret_if(APP_CONTROL_ERROR_NONE != ret);
{
_content_list_set_pause(attach_panel->content_list, ATTACH_PANEL_CONTENT_CATEGORY_UG);
- _D("gestrue hide start");
+ _D("gestrue hide start: %s(%d)", func, line);
elm_config_focus_autoscroll_mode_set(attach_panel->autoscroll_mode);
- if (attach_panel->rotate) {
+ if (attach_panel->rotate || ATTACH_PANEL_STATE_FULL == attach_panel->attach_panel_port_state) {
attach_panel->attach_panel_land_state = ATTACH_PANEL_STATE_HIDDEN;
elm_object_signal_emit(attach_panel->conformant, "elm,state,attach_panel,show,half", "");
- } else {
- if (ATTACH_PANEL_STATE_FULL == attach_panel->attach_panel_port_state) {
- elm_object_signal_emit(attach_panel->conformant, "elm,state,attach_panel,show,half", "");
- }
- attach_panel->attach_panel_port_state = ATTACH_PANEL_STATE_HIDDEN;
}
+ attach_panel->attach_panel_land_state = ATTACH_PANEL_STATE_HIDDEN;
+ attach_panel->attach_panel_port_state = ATTACH_PANEL_STATE_HIDDEN;
gesture_info_s.attach_panel_state = ATTACH_PANEL_STATE_HIDDEN;
_content_list_set_flick(attach_panel->content_list, EINA_TRUE);
if (use_transition) {
if (is_file_selected) {
/* This is same with attach_panel_hide() */
- _gesture_hide(content_info->attach_panel);
+ _gesture_hide_ex(content_info->attach_panel, false, __func__, __LINE__);
_attach_panel_call_result_callback(attach_panel, content_info, reply, APP_CONTROL_RESULT_SUCCEEDED, true);
} else {
_attach_panel_call_result_callback(attach_panel, content_info, reply, result, false);
_E("Fail to set launch mode");
ret = app_control_send_launch_request(app_control, __reply_cb, content_info);
- if (APP_CONTROL_ERROR_NONE != ret)
+ if (APP_CONTROL_ERROR_NONE != ret) {
_E("Fail to send launch request");
+ app_control_destroy(app_control);
+ } else {
+ attach_panel->launched_app = app_control;
+ }
- app_control_destroy(app_control);
}
retv_if(!grid, ECORE_CALLBACK_CANCEL);
- list = evas_object_data_get(grid, PRIVATE_DATA_KEY_GRID_LIST);
+ Eina_List **pList = evas_object_data_get(grid, PRIVATE_DATA_KEY_GRID_LIST);
+ retv_if(!pList, ECORE_CALLBACK_CANCEL);
+
+ list = *pList;
retv_if(!list, ECORE_CALLBACK_CANCEL);
gic = _item_class_new();
elm_gengrid_multi_select_set(grid, EINA_FALSE);
elm_object_style_set(grid, "popup");
- evas_object_data_set(grid, PRIVATE_DATA_KEY_GRID_LIST, attach_panel->content_list);
+ evas_object_data_set(grid, PRIVATE_DATA_KEY_GRID_LIST, &attach_panel->content_list);
evas_object_data_set(grid, PRIVATE_DATA_KEY_LIST_INDEX, NULL);
evas_object_data_set(grid, DATA_KEY_EDGE_TOP, (void *)1);
evas_object_smart_callback_add(grid, "edge,top", __edge_top_cb, NULL);
if (event_cb_info->event_type == event_type
&& event_cb_info->event_cb == event_cb) {
event_cb_list = eina_list_remove(event_cb_list, event_cb_info);
+ free(event_cb_info);
break;
}
}
if (event_cb_info->event_type == event_type
&& event_cb_info->event_cb == event_cb) {
event_cb_list = eina_list_remove(event_cb_list, event_cb_info);
+ free(event_cb_info);
break;
}
}
int ret = 0;
ret_if(!content_info);
+ ret_if(_attach_panel_is_deleted(content_info->attach_panel));
if (ATTACH_PANEL_STATE_HIDDEN == _gesture_get_state())
return;
_E("__ATTACH_PANEL_FLICK_DOWN__ value is wrong type(%s)", enable);
content_info->flick = EINA_TRUE;
}
+ free(enable);
return;
}
} else {
_E("__ATTACH_PANEL_FULL_MODE__ value is wrong type(%s)", enable);
}
+ free(enable);
return;
}
_gesture_hide(content_info->attach_panel);
}
}
+ free(enable);
return;
}
} else {
elm_object_signal_emit(content_info->attach_panel->ui_manager, "toolbar,hide", "toolbar");
}
+ free(enable);
return;
}
_D("The core of the panel sends the results to the caller");
-
_D("relay callback is called");
if (content_info->attach_panel->result_cb) {
if (need_hide) {
/* This is same with attach_panel_hide() */
- _gesture_hide(content_info->attach_panel);
+ _gesture_hide_ex(content_info->attach_panel, false, __func__, __LINE__);
_attach_panel_call_result_callback(attach_panel, content_info, result, APP_CONTROL_RESULT_SUCCEEDED, true);
}
} else {
ret_if(!ui_manager);
evas_object_geometry_get(ui_manager, &x, &y, &w, &h);
- _D("%s resize(%d, %d, %d, %d)", data, x, y, w, h);
+ _D("resize(%d, %d, %d, %d)", x, y, w, h);
attach_panel_h attach_panel = data;
if (attach_panel) {
content_info->index = 0;
}
_D("added index %d", content_info->index);
+ if (_gesture_get_state() != ATTACH_PANEL_STATE_HIDDEN) {
+ int page_no = NULL;
+ elm_scroller_current_page_get(attach_panel->scroller, &page_no, NULL);
+ if (page_no == content_info->index) {
+ _D("more tab was visible and new page inserted before it");
+ _scroller_show_page(attach_panel->scroller, attach_panel->grid_page, attach_panel);
+ }
+ }
} else {
attach_panel->content_list = eina_list_append(attach_panel->content_list, content_info);
content_info->index = eina_list_count(attach_panel->content_list) - 1;