}
}
part {
- name: "elm.swallow.percent_label";
- type: SWALLOW;
- scale: 1;
+ name: "elm.image";
+ type: IMAGE;
+ scale : 1;
description {
+ color: 8 56 94 255;
state: "default" 0.0;
- min: 0 32;
- fixed: 0 1;
- align: 0.5 0.0;
+ min: 0 50;
+ fixed : 1 1;
+ align: 0.0 0.0;
+ visible: 1;
+ image.normal: "wifi_percent_bg.png";
rel1 {
- to: "top_padding";
- relative: 0.0 1.0;
+ to: "base";
+ relative: 0.0 0.0;
}
rel2 {
- to: "top_padding";
- relative: 1.0 1.0;
+ to: "base";
+ relative: 1.0 0.0;
}
}
}
part {
- name: "elm.image";
- type: IMAGE;
- scale : 1;
+ name: "top_left_padding";
+ type: SPACER;
+ scale: 1;
description {
- color_class: AO017;
state: "default" 0.0;
- min: 0 50;
- fixed : 1 1;
+ min: 145 0;
+ fixed: 1 0;
align: 0.0 0.0;
- visible: 1;
- image.normal: "wifi_percent_bg.png";
rel1 {
to: "base";
relative: 0.0 0.0;
}
rel2 {
to: "base";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part {
+ name: "top_right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 145 0;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1 {
+ to: "base";
relative: 1.0 0.0;
}
+ rel2 {
+ to: "base";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part {
+ name: "elm.swallow.percent_label";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 32;
+ fixed: 0 1;
+ align: 0.0 0.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "top_left_padding";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "top_right_padding";
+ to_y: "top_padding";
+ }
}
}
part {
Elm_Genlist_Item_Class *menu_title_itc = NULL;
Elm_Genlist_Item_Class *menu_wps_button_itc = NULL;
Elm_Genlist_Item_Class *menu_wps_pin_itc = NULL;
+ Elm_Genlist_Item_Class *menu_empty_itc = NULL;
if (!menu_list) {
WIFI_LOG_ERR("menu_list create is failed.");
evas_object_del(menu_list);
return NULL;
}
+ menu_empty_itc = create_genlist_itc("1text", NULL, NULL, NULL, NULL);
+ if (!menu_empty_itc) {
+ WIFI_LOG_ERR("menu wps pin itc create failed.");
+ elm_genlist_item_class_free(menu_title_itc);
+ elm_genlist_item_class_free(menu_wps_button_itc);
+ elm_genlist_item_class_free(menu_wps_pin_itc);
+ evas_object_del(menu_list);
+ return NULL;
+ }
elm_genlist_item_append(menu_list, menu_title_itc, NULL,
NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_append(menu_list, menu_wps_button_itc, menu_data,
elm_genlist_item_append(menu_list, menu_wps_pin_itc, menu_data,
NULL, ELM_GENLIST_ITEM_NONE,
self->menu_cb[WPS_METHOD_MENU_WPS_PIN].tap,
+
self->menu_cb[WPS_METHOD_MENU_WPS_PIN].data);
+ elm_genlist_item_append(menu_list, menu_empty_itc, menu_data,
+ NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_class_free(menu_title_itc);
elm_genlist_item_class_free(menu_wps_button_itc);
elm_genlist_item_class_free(menu_wps_pin_itc);
+ elm_genlist_item_class_free(menu_empty_itc);
return menu_list;
}
Evas_Object *popup = view_base_add_popup_for_circle(self->base, parent);
WIFI_RET_VAL_IF_FAIL(popup != NULL, NULL);
- eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
- __popup_hide_cb, NULL);
+ eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK,
+ self->destroy_cb.func, self->destroy_cb.data);
evas_object_smart_callback_add(popup, "dismissed",
- self->destroy_cb.func, self->destroy_cb.data);
+ self->destroy_cb.func, self->destroy_cb.data);
return popup;
}
WIFI_RET_IF_FAIL(self->popup != NULL);
elm_popup_dismiss(self->popup);
+
+ /* TODO: It will be removed */
+ layout_wps_progress_destroy(self);
}
void layout_wps_progress_activate_rotary_event(layout_wps_progress_object *self)