char tempbuf[PATH_MAX];
Evas_Object *icon = NULL;
myaccount_list_priv *account_info_item = (myaccount_list_priv*)data;
- Evas_Object *ic = NULL;
if (!account_info_item) {
MYACCOUNT_ERROR("__myaccount_account_list_gl_icon_get: Data is NULL\n");
MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", "A01_2_Icon_default.png");
}
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/B/type.2", "default");
-
icon = elm_image_add(obj);
if (strstr(tempbuf, "/"))
elm_image_file_set(icon, tempbuf, NULL);
else
elm_image_file_set(icon, MA_IMAGE_EDJ_NAME, tempbuf);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
+ evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(30), ELM_SCALE_SIZE(30));
}
if (!strcmp(part, "elm.swallow.end")) {
MA_SNPRINTF(tempbuf, sizeof(tempbuf), "%s", "account_icon_syncing.png");
if(strlen(tempbuf) > 0) {
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/C/type.3", "default");
-
icon = elm_image_add(obj);
if (strstr(tempbuf, "/"))
elm_image_file_set(icon, tempbuf, NULL);
elm_image_file_set(icon, MA_IMAGE_EDJ_NAME, tempbuf);
evas_object_color_set(icon, 67, 116, 217, 255);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
+ evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(30), ELM_SCALE_SIZE(30));
}
}
- return ic;
+ return icon;
}
static void _myaccount_ug_account_list_layout_cb(ui_gadget_h ug,
ad) != APP_CONTROL_ERROR_NONE ) {
MYACCOUNT_ERROR("__myaccount_addaccount_gl_sel : Failed to launch application\n");
myaccount_common_set_item_selected_state(false);
-
}
-
}
return;
}
char tempbuf[PATH_MAX];
Evas_Object *icon = NULL;
addaccount_list_priv *service_item = (addaccount_list_priv*)data;
- Evas_Object *ic = NULL;
if (!service_item) {
MYACCOUNT_ERROR(" __myaccount_addaccount_icon_get: Data is NULL\n");
} else {
MA_STRNCPY(tempbuf, "A01_2_Icon_default.png", sizeof(tempbuf));
}
- ic = elm_layout_add(obj);
- elm_layout_theme_set(ic, "layout", "list/B/type.2", "default");
icon = elm_image_add(obj);
- if (strstr(tempbuf, "/"))
+ if ((strstr(tempbuf, "/")) != NULL)
elm_image_file_set(icon, tempbuf, NULL);
else
elm_image_file_set(icon, MA_IMAGE_EDJ_NAME, tempbuf);
- elm_layout_content_set(ic, "elm.swallow.content", icon);
+ evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(30), ELM_SCALE_SIZE(30));
}
- return ic;
+
+ return icon;
}
void myaccount_addaccount_free_priv_data(myaccount_appdata *appdata)
}
ret = account_type_get_icon_path(account_type, &type_buf);
- if(ret == ACCOUNT_ERROR_NONE ) {
+ if (ret == ACCOUNT_ERROR_NONE) {
if(type_buf) {
- MA_STRNCPY(sp_info->icon_path, type_buf,
- sizeof(sp_info->icon_path));
+ MA_STRNCPY(sp_info->icon_path, type_buf, sizeof(sp_info->icon_path));
} else {
MYACCOUNT_ERROR("No icon path available\n");
}
} else {
MYACCOUNT_ERROR("account_type_get_app_id return(%x)\n", ret);
}
+
MA_MEMFREE(type_buf);
char* provider_name = NULL;
- if(ad && ad->current_language){
-
- if(!strcmp(ad->current_language, "en_US")){
+ if (ad && ad->current_language) {
+ if(!strcmp(ad->current_language, "en_US")) {
ret = account_type_get_label_by_locale(account_type, "en_GB", &provider_name);
}else{
ret = account_type_get_label_by_locale(account_type, ad->current_language, &provider_name);
if(capability_filter) {
account_type_query_by_provider_feature(_myaccount_addaccount_get_account_type_info_cb, capability_filter, (void*)sp_info_list);
- }
- else {
+ } else {
account_type_foreach_account_type_from_db(_myaccount_addaccount_get_account_type_info_cb, (void*)sp_info_list);
}
}
continue;
if (!g_strcmp0(prev_info->service_name, info->service_name)) {
valid_cnt++;
- //MYACCOUNT_DBUG("info->service_name[%s]", info->service_name);
}
}
}