target: "padding.top";
}
program { name: "badge_show";
- signal: "elm,state,elm.text.badge,visible";
+ signal: "enable.text.badge,visible";
source: "elm";
action: STATE_SET "visible" 0.0;
target: "elm.text.badge";
target: "elm.image.badge";
}
program { name: "badge_hide";
- signal: "elm,state,elm.text.badge,hidden";
+ signal: "disable.text.badge,visible";
source: "elm";
action: STATE_SET "default" 0.0;
target: "elm.text.badge";
int sel_cnt = eina_list_count(album_item->elist);
if (sel_cnt > 0) {
elm_object_item_signal_emit(album_item->item,
- "elm,state,elm.text.badge,visible",
+ "enable.text.badge,visible",
"elm");
snprintf(buf, sizeof(buf), "%d", sel_cnt);
} else {
elm_object_item_signal_emit(album_item->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
} else {
elm_object_item_signal_emit(album_item->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
} else {
elm_object_item_signal_emit(album_item->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
}
char buf[GL_ALBUM_NAME_LEN_MAX] = { 0, };
if (sel_all_cnt > 0) {
elm_object_item_signal_emit(gitem->album->item,
- "elm,state,elm.text.badge,visible",
+ "enable.text.badge,visible",
"elm");
snprintf(buf, sizeof(buf), "%d", sel_all_cnt);
} else {
elm_object_item_signal_emit(gitem->album->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
elm_gengrid_item_fields_update(gitem->album->item,
int album_select_count = eina_list_count(gitem->album->elist);
if (album_select_count > 0) {
elm_object_item_signal_emit(gitem->album->item,
- "elm,state,elm.text.badge,visible",
+ "enable.text.badge,visible",
"elm");
} else {
elm_object_item_signal_emit(gitem->album->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
elm_gengrid_item_fields_update(gitem->album->item,
char buf[GL_ALBUM_NAME_LEN_MAX] = { 0, };
if (album_select_count > 0) {
elm_object_item_signal_emit(gitem->album->item,
- "elm,state,elm.text.badge,visible",
+ "enable.text.badge,visible",
"elm");
elm_object_item_signal_emit(gitem->album->item,
"elm,state,focused",
snprintf(buf, sizeof(buf), "%d", album_select_count);
} else {
elm_object_item_signal_emit(gitem->album->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
elm_gengrid_item_fields_update(gitem->album->item,
if (data && data->album && data->album->item) {
if (sel_count > 0) {
elm_object_item_signal_emit(data->album->item,
- "elm,state,elm.text.badge,visible",
+ "enable.text.badge,visible",
"elm");
} else {
elm_object_item_signal_emit(data->album->item,
- "elm,state,elm.text.badge,hidden",
+ "disable.text.badge,visible",
"elm");
}
elm_gengrid_item_fields_update(data->album->item, "elm.text.badge",
selected_count - 1],
strlen(widget_data->
selected_images[widget_data->selected_count -
- 1]));
+ 1] + 1));
free(widget_data->
selected_images[widget_data->selected_count - 1]);
widget_data->selected_count--;
1],
strlen(widget_data->
selected_images[widget_data->
- selected_count - 1]));
+ selected_count - 1] + 1));
} else {
widget_data->images_count = 0;
}
selected_count - 1],
strlen(widget_data->
selected_images[widget_data->selected_count -
- 1]));
+ 1] + 1));
} else {
widget_data->images_count = 0;
}
free(next_date);
}
+ free(date);
return EINA_TRUE;
}
DbgPrint("widget paused");
struct widget_data *widget_data = NULL;
widget_data = (struct widget_data *) getWidgetData(context);
+ if (!widget_data) {
+ return WIDGET_ERROR_INVALID_PARAMETER;
+ }
if (widget_data->timer) {
ecore_timer_del(widget_data->timer);
widget_data->timer = NULL;