forked from enlightenment/efl
elementary_test: change deprecated APIs
SVN revision: 68429
This commit is contained in:
parent
ab31707a7d
commit
c3e40612c1
|
@ -63,23 +63,23 @@ set_api_state(api_data *api)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_LABEL_SET: /* 3 */
|
case ITEM_LABEL_SET: /* 3 */
|
||||||
elm_diskselector_item_label_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), "Label from API");
|
elm_object_item_text_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), "Label from API");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TOOLTIP_TEXT_SET: /* 4 */
|
case TOOLTIP_TEXT_SET: /* 4 */
|
||||||
elm_diskselector_item_tooltip_text_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), "Tooltip from API");
|
elm_object_item_tooltip_text_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), "Tooltip from API");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_TOOLTIP_UNSET: /* 5 */
|
case ITEM_TOOLTIP_UNSET: /* 5 */
|
||||||
elm_diskselector_item_tooltip_unset(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)));
|
elm_object_item_tooltip_unset(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_CURSOR_SET: /* 6 */
|
case ITEM_CURSOR_SET: /* 6 */
|
||||||
elm_diskselector_item_cursor_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), ELM_CURSOR_HAND2);
|
elm_object_item_cursor_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), ELM_CURSOR_HAND2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_CURSOR_UNSET: /* 7 */
|
case ITEM_CURSOR_UNSET: /* 7 */
|
||||||
elm_diskselector_item_cursor_unset(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)));
|
elm_object_item_cursor_unset(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_ICON_SET: /* 8 */
|
case ITEM_ICON_SET: /* 8 */
|
||||||
|
@ -88,7 +88,7 @@ set_api_state(api_data *api)
|
||||||
Evas_Object *ic = elm_icon_add(elm_object_parent_widget_get(eina_list_nth(disks, 0)));
|
Evas_Object *ic = elm_icon_add(elm_object_parent_widget_get(eina_list_nth(disks, 0)));
|
||||||
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
|
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
|
||||||
elm_icon_file_set(ic, buf, NULL);
|
elm_icon_file_set(ic, buf, NULL);
|
||||||
elm_diskselector_item_icon_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), ic);
|
elm_object_item_part_content_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), NULL, ic);
|
||||||
evas_object_show(ic);
|
evas_object_show(ic);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -108,13 +108,13 @@ set_api_state(api_data *api)
|
||||||
|
|
||||||
case ITEM_DEL_NOT_SELECTED: /* 11 */
|
case ITEM_DEL_NOT_SELECTED: /* 11 */
|
||||||
{ /* Remove selected item of third disk */
|
{ /* Remove selected item of third disk */
|
||||||
elm_diskselector_item_del(elm_diskselector_item_prev_get(elm_diskselector_selected_item_get(eina_list_nth(disks, 2))));
|
elm_object_item_del(elm_diskselector_item_prev_get(elm_diskselector_selected_item_get(eina_list_nth(disks, 2))));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ITEM_DEL: /* 12 */
|
case ITEM_DEL: /* 12 */
|
||||||
{ /* Remove selected item of first disk */
|
{ /* Remove selected item of first disk */
|
||||||
elm_diskselector_item_del(elm_diskselector_selected_item_get(eina_list_nth(disks, 1)));
|
elm_object_item_del(elm_diskselector_selected_item_get(eina_list_nth(disks, 1)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ set_api_state(api_data *api)
|
||||||
switch(api->state)
|
switch(api->state)
|
||||||
{ /* Put all api-changes under switch */
|
{ /* Put all api-changes under switch */
|
||||||
case ICON_UNSET:
|
case ICON_UNSET:
|
||||||
elm_fileselector_button_icon_unset(fs_bt);
|
elm_object_part_content_unset(fs_bt, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WINDOW_TITLE_SET:
|
case WINDOW_TITLE_SET:
|
||||||
|
|
|
@ -34,7 +34,7 @@ set_api_state(api_data *api)
|
||||||
switch(api->state)
|
switch(api->state)
|
||||||
{ /* Put all api-changes under switch */
|
{ /* Put all api-changes under switch */
|
||||||
case ICON_UNSET:
|
case ICON_UNSET:
|
||||||
elm_fileselector_entry_button_icon_unset(fs_bt);
|
elm_object_part_content_unset(fs_bt, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WINDOW_TITLE_SET:
|
case WINDOW_TITLE_SET:
|
||||||
|
|
|
@ -121,7 +121,7 @@ Scroll to end
|
||||||
const Eina_List *items = elm_list_items_get(li);
|
const Eina_List *items = elm_list_items_get(li);
|
||||||
if(eina_list_count(items))
|
if(eina_list_count(items))
|
||||||
{
|
{
|
||||||
elm_list_item_del(eina_list_data_get(eina_list_last(items)));
|
elm_object_item_del(eina_list_data_get(eina_list_last(items)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -140,7 +140,7 @@ Scroll to end
|
||||||
const Eina_List *items = elm_list_items_get(li);
|
const Eina_List *items = elm_list_items_get(li);
|
||||||
if(eina_list_count(items))
|
if(eina_list_count(items))
|
||||||
{
|
{
|
||||||
elm_list_item_tooltip_text_set(eina_list_data_get(eina_list_last(items)), "Tooltip set from API");
|
elm_object_item_tooltip_text_set(eina_list_data_get(eina_list_last(items)), "Tooltip set from API");
|
||||||
}
|
}
|
||||||
elm_list_scroller_policy_set(li, ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_AUTO);
|
elm_list_scroller_policy_set(li, ELM_SCROLLER_POLICY_AUTO, ELM_SCROLLER_POLICY_AUTO);
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ Scroll to end
|
||||||
const Eina_List *items = elm_list_items_get(li);
|
const Eina_List *items = elm_list_items_get(li);
|
||||||
if(eina_list_count(items))
|
if(eina_list_count(items))
|
||||||
{
|
{
|
||||||
elm_list_item_tooltip_unset(eina_list_data_get(eina_list_last(items)));
|
elm_object_item_tooltip_unset(eina_list_data_get(eina_list_last(items)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -161,7 +161,7 @@ Scroll to end
|
||||||
const Eina_List *items = elm_list_items_get(li);
|
const Eina_List *items = elm_list_items_get(li);
|
||||||
if(eina_list_count(items))
|
if(eina_list_count(items))
|
||||||
{
|
{
|
||||||
elm_list_item_cursor_set(eina_list_data_get(eina_list_last(items)), ELM_CURSOR_HAND2);
|
elm_object_item_cursor_set(eina_list_data_get(eina_list_last(items)), ELM_CURSOR_HAND2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -171,7 +171,7 @@ Scroll to end
|
||||||
const Eina_List *items = elm_list_items_get(li);
|
const Eina_List *items = elm_list_items_get(li);
|
||||||
if(eina_list_count(items))
|
if(eina_list_count(items))
|
||||||
{
|
{
|
||||||
elm_list_item_cursor_style_set(eina_list_data_get(eina_list_last(items)), "transparent");
|
elm_object_item_cursor_style_set(eina_list_data_get(eina_list_last(items)), "transparent");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -181,7 +181,7 @@ Scroll to end
|
||||||
const Eina_List *items = elm_list_items_get(li);
|
const Eina_List *items = elm_list_items_get(li);
|
||||||
if(eina_list_count(items))
|
if(eina_list_count(items))
|
||||||
{
|
{
|
||||||
elm_list_item_disabled_set(eina_list_data_get(eina_list_last(items)), EINA_TRUE);
|
elm_object_item_disabled_set(eina_list_data_get(eina_list_last(items)), EINA_TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -100,7 +100,7 @@ static void
|
||||||
my_ph_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
my_ph_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
||||||
{
|
{
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
elm_photocam_region_get(obj, &x, &y, &w, &h);
|
elm_photocam_image_region_get(obj, &x, &y, &w, &h);
|
||||||
printf("scroll %i %i %ix%i\n", x, y, w, h);
|
printf("scroll %i %i %ix%i\n", x, y, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue