return EINA_FALSE;
}
-static Evas_Object *__bt_tr_reusable_progress_icon_get(void *data, Evas_Object *obj,
- const char *part, Evas_Object *old)
+static Evas_Object *__bt_tr_progress_icon_get(void *data, Evas_Object *obj,
+ const char *part)
{
FN_START;
char buff[BT_STR_PROGRESS_MAX_LEN] = { 0, };
char *markup_text = NULL;
- if (ad->progress_layout == NULL) {
- DBG("Creating new progress layout!!!");
- progress_layout = elm_layout_add(obj);
- elm_layout_file_set(progress_layout, EDJFILE, "popup_text_progressbar_view_layout");
- evas_object_size_hint_align_set(progress_layout, EVAS_HINT_FILL,
- EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(progress_layout, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
- evas_object_show(progress_layout);
- ad->progress_layout = progress_layout;
- } else {
- progress_layout = ad->progress_layout;
- }
-
- if (ad->progressbar == NULL) {
- DBG("Creating new progressbar!!!");
- progressbar = elm_progressbar_add(progress_layout);
-
- elm_progressbar_unit_format_set(progressbar, NULL);
- elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
- evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL,
- EVAS_HINT_FILL);
- evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
- elm_progressbar_pulse(progressbar, EINA_TRUE);
-
- evas_object_show(progressbar);
- ad->progressbar = progressbar;
- } else {
- progressbar = ad->progressbar;
- }
+ DBG("Creating new progress layout!!!");
+ progress_layout = elm_layout_add(obj);
+ elm_layout_file_set(progress_layout, EDJFILE, "popup_text_progressbar_view_layout");
+ evas_object_size_hint_align_set(progress_layout, EVAS_HINT_FILL,
+ EVAS_HINT_FILL);
+ evas_object_size_hint_weight_set(progress_layout, EVAS_HINT_EXPAND,
+ EVAS_HINT_EXPAND);
+ evas_object_show(progress_layout);
+
+ DBG("Creating new progressbar!!!");
+ progressbar = elm_progressbar_add(progress_layout);
+
+ elm_progressbar_unit_format_set(progressbar, NULL);
+ elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
+ evas_object_size_hint_align_set(progressbar, EVAS_HINT_FILL,
+ EVAS_HINT_FILL);
+ evas_object_size_hint_weight_set(progressbar, EVAS_HINT_EXPAND,
+ EVAS_HINT_EXPAND);
+ elm_progressbar_pulse(progressbar, EINA_TRUE);
+
+ evas_object_show(progressbar);
+ ad->progressbar = progressbar;
markup_text = elm_entry_utf8_to_markup(transfer_info->filename);
DBG_SECURE("Filename: %s", markup_text);
if (ad->tr_progress_itc) {
ad->tr_progress_itc->item_style = "full";
ad->tr_progress_itc->func.text_get = NULL;
- ad->tr_progress_itc->func.reusable_content_get = __bt_tr_reusable_progress_icon_get;
+ ad->tr_progress_itc->func.content_get = __bt_tr_progress_icon_get;
ad->tr_progress_itc->func.state_get = NULL;
ad->tr_progress_itc->func.del = NULL;
}