ge_sdbg("operation [%s]", operation);
#ifdef FEATURE_SIZE_CHECK
- int ret = app_control_get_extra_data(service, "http://tizen.org/appcontrol/data/total_size", &(ugd->limitsize));
+ char *total_size = NULL;
+ int ret = app_control_get_extra_data(service, "http://tizen.org/appcontrol/data/total_size", &(total_size));
if (ret != APP_CONTROL_ERROR_NONE) {
- //Test data
- //ugd->limitsize = 2 * 1024 * 1024;
+ ugd->limitsize = atol(total_size);
+ } else {
+ ugd->limitsize = -1;
}
#endif
if (!g_strcmp0(gitem->item->thumb_url, DEFAULT_THUMBNAIL)) {
elm_check_state_set(obj, EINA_FALSE);
char *pStrWarning = g_strdup_printf(
- GE_STR_UNSUPPORTED_FILE,
- NULL);
+ GE_STR_UNSUPPORTED_FILE);
notification_status_message_post(pStrWarning);
GE_FREE(pStrWarning);
_ge_data_util_free_sel_item(sit);
}
if ((ugd->max_count != -1) && (gitem->ugd->thumbs_d->tot_selected + 1 > ugd->max_count)) {
elm_check_state_set(obj, EINA_FALSE);
+ char *noti_str = GE_STR_MAX_PICTURES_SELECTED;
char *pStrWarning = g_strdup_printf(
- GE_STR_MAX_PICTURES_SELECTED,
+ noti_str,
ugd->max_count);
notification_status_message_post(pStrWarning);
GE_FREE(pStrWarning);
return ck;
} else if (!g_strcmp0(part, "sd_card_icon")) {
- if (gitem->item->storage_type == GE_MMC) {
+ if (gitem->item->storage_type == (media_content_storage_e)GE_MMC) {
icon = elm_icon_add(obj);
- elm_icon_file_set(icon, sd_card_image_path, NULL);
+ elm_image_file_set(icon, sd_card_image_path, NULL);
evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return icon;
}
int arrayLength = 0;
int i = 0;
- if ((result != APP_CONTROL_ERROR_NONE) || !reply) {
+ if ((result != APP_CONTROL_RESULT_SUCCEEDED) || !reply) {
ge_dbgE("ug-gallery-efl data get failed.");
return;
}
int ret = -1;
if (!g_strcmp0(gitem->item->thumb_url, DEFAULT_THUMBNAIL)) {
- char *pStrWarning = g_strdup_printf(GE_STR_UNSUPPORTED_FILE, NULL);
+ char *pStrWarning = g_strdup_printf(GE_STR_UNSUPPORTED_FILE);
notification_status_message_post(pStrWarning);
GE_FREE(pStrWarning);
return ret;
if (bl == EINA_FALSE) {
if (!g_strcmp0(gitem->item->thumb_url, DEFAULT_THUMBNAIL)) {
char *pStrWarning = g_strdup_printf(
- GE_STR_UNSUPPORTED_FILE,
- NULL);
+ GE_STR_UNSUPPORTED_FILE);
notification_status_message_post(pStrWarning);
GE_FREE(pStrWarning);
return;
}
if ((ugd->max_count != -1) && (gitem->ugd->thumbs_d->tot_selected + 1 > ugd->max_count)) {
- char *pStrWarning = g_strdup_printf(
- GE_STR_MAX_PICTURES_SELECTED,
+ char *noti_str = GE_STR_MAX_PICTURES_SELECTED;
+ char *pStrWarning = g_strdup_printf(noti_str,
ugd->max_count);
notification_status_message_post(pStrWarning);
GE_FREE(pStrWarning);