static void layout_cb(ui_gadget_h ug, enum ug_mode mode, void *priv)
{
debug_log("");
- Evas_Object *base, *win;
+ Evas_Object *base;
if (!ug || !priv)
return;
if (!base)
return;
- win = ug_get_window();
+ ug_get_window();
switch (mode) {
case UG_MODE_FULLVIEW:
{
debug_log("");
EmailMailboxUGD *mailbox_ugd = (EmailMailboxUGD *)data;
- Elm_Object_Item *item;
Evas_Object *genlist;
if (mailbox_ugd->ctxpopup) {
case VIEWBY_SENDER_ZTOA:
case VIEWBY_UNREAD:
case VIEWBY_ATTACHMENT:
- item = elm_genlist_item_append(genlist, &itc_popup, &viewby_req[index], NULL,
+ elm_genlist_item_append(genlist, &itc_popup, &viewby_req[index], NULL,
ELM_GENLIST_ITEM_NONE, _gl_viewby_popup_sel, NULL);
break;
case VIEWBY_IMPORTANT:
- item = elm_genlist_item_append(genlist, &itc_popup, &viewby_req[index], NULL,
+ elm_genlist_item_append(genlist, &itc_popup, &viewby_req[index], NULL,
ELM_GENLIST_ITEM_NONE, _gl_viewby_popup_sel, NULL);
break;
case VIEWBY_UNKNOWN:
}
evas_object_size_hint_min_set(ld->flag_ic, 38, 38);
return ld->flag_ic;
- }
+ }
} else if(!g_strcmp0(source, "elm.icon.4.touch")) {
Evas_Object *rect = evas_object_rectangle_add(evas_object_evas_get(obj));
evas_object_size_hint_align_set(rect, EVAS_HINT_FILL, EVAS_HINT_FILL);
if (mbox->mailbox_type == EMAIL_MAILBOX_TYPE_DRAFT && email_engine_check_body_download(ld->mail_id)) {
if (ld->mailbox_ugd->ug_composer) {
debug_log("Composer UG is already launched");
+ email_free_mailbox(&mbox, 1);
return;
}
service_h service;
if (SERVICE_ERROR_NONE != service_create(&service))
{
debug_log("creating service handle failed");
+ email_free_mailbox(&mbox, 1);
return;
}
static void _clear_genlist(EmailMailboxUGD *mailbox_ugd)
{
- debug_log("VIEW TYPE[%d]",mailbox_ugd->view_type);
+ debug_log();
+
if (mailbox_ugd == NULL) {
debug_log("mailbox_ugd is NULL");
return;
}
+ debug_log("VIEW TYPE[%d]",mailbox_ugd->view_type);
+
if (mailbox_ugd->gl[mailbox_ugd->view_type]) {
elm_genlist_clear(mailbox_ugd->gl[mailbox_ugd->view_type]);
_reset_refer_item_and_idx(mailbox_ugd);
mailbox_ugd->ug_setting = create_setting_ug(UG_NAME_EMAIL_SETTING, service, mailbox_ugd);
- service_destroy(service);
+ ret = service_destroy(service);
+ debug_log("service_destroy: %d", ret);
}
static void _process_update(EmailMailboxUGD *mailbox_ugd)
if (account_data->incoming_server_type == EMAIL_SERVER_TYPE_IMAP4 ||
account_data->incoming_server_type == EMAIL_SERVER_TYPE_POP3) {
i = 6;
- item = elm_genlist_item_append(p->genlist, &(p->itc_onoff), (void *)i,
+ elm_genlist_item_append(p->genlist, &(p->itc_onoff), (void *)i,
git, ELM_GENLIST_ITEM_NONE, _gl_sel_cb, (void *)i);
}
p->str_password = NULL;
}
- p->str_password = g_strdup((char *)elm_entry_markup_to_utf8(elm_entry_entry_get(eo)));
+ p->str_password = (char *)elm_entry_markup_to_utf8(elm_entry_entry_get(eo));
}
if (ugd->account_info == NULL) {