switch(api->state)
{ /* Put all api-changes under switch */
case BUBBLE_SET_CORNER_1:
- elm_bubble_corner_set(eina_list_nth(items, 0), "bottom_left");
+ elm_bubble_pos_set(eina_list_nth(items, 0), ELM_BUBBLE_POS_BOTTOM_LEFT);
elm_object_text_set(elm_object_content_get(eina_list_nth(items, 0)),
"Corner: base (bottom-left) - with icon");
- elm_bubble_corner_set(eina_list_nth(items, 1), "top_right");
+ elm_bubble_pos_set(eina_list_nth(items, 1), ELM_BUBBLE_POS_TOP_RIGHT);
elm_object_text_set(elm_object_content_get(eina_list_nth(items, 1)),
"Corner: base (top-right) - no icon");
break;
case BUBBLE_SET_CORNER_2:
- elm_bubble_corner_set(eina_list_nth(items, 0), "top_right");
+ elm_bubble_pos_set(eina_list_nth(items, 0), ELM_BUBBLE_POS_TOP_RIGHT);
elm_object_text_set(elm_object_content_get(eina_list_nth(items, 0)),
"Corner: base (top-right) - with icon");
- elm_bubble_corner_set(eina_list_nth(items, 1), "bottom_left");
+ elm_bubble_pos_set(eina_list_nth(items, 1), ELM_BUBBLE_POS_BOTTOM_LEFT);
elm_object_text_set(elm_object_content_get(eina_list_nth(items, 1)),
"Corner: base (bottom-left) - no icon");
break;
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
- elm_icon_scale_set(ic, 0, 0);
+ elm_icon_resizable_set(ic, 0, 0);
elm_object_content_set(eina_list_nth(items, 0), ic);
ct = elm_label_add(api->win);
elm_object_text_set(ct, "Using icon as top-bubble content");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
- elm_icon_scale_set(ic, 0, 0);
+ elm_icon_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
elm_object_part_text_set(bb, "info", "Corner: bottom_right");
elm_object_part_content_set(bb, "icon", ic);
- elm_bubble_corner_set(bb, "bottom_right");
+ elm_bubble_pos_set(bb, ELM_BUBBLE_POS_BOTTOM_RIGHT);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);