summaryrefslogtreecommitdiff
path: root/setting/src/email-view-account-edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'setting/src/email-view-account-edit.c')
-rwxr-xr-xsetting/src/email-view-account-edit.c39
1 files changed, 35 insertions, 4 deletions
diff --git a/setting/src/email-view-account-edit.c b/setting/src/email-view-account-edit.c
index 5308d77..9caf9bd 100755
--- a/setting/src/email-view-account-edit.c
+++ b/setting/src/email-view-account-edit.c
@@ -441,10 +441,27 @@ static void _push_naviframe(struct viewdata *vd)
evas_object_smart_callback_add(p->r_button2, "clicked", _save_cb, vd);
evas_object_show(p->r_button2);*/
+ Evas_Object *title_ic = elm_icon_add(vd->ugd->navi_bar);
+ evas_object_size_hint_aspect_set(title_ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
+ elm_icon_resizable_set(title_ic, EINA_TRUE, EINA_TRUE);
+
+ account_user_data_t *user_data = (account_user_data_t *)account_data->user_data;
+
+ if (user_data->is_preset_account == GMAIL) {
+ elm_icon_file_set(title_ic, ACCOUNT_ICON_GMAIL, NULL);
+ } else if (user_data->is_preset_account == HOTMAIL) {
+ elm_icon_file_set(title_ic, ACCOUNT_ICON_HOTMAIL, NULL);
+ } else if (user_data->is_preset_account == YAHOOMAIL) {
+ elm_icon_file_set(title_ic, ACCOUNT_ICON_YAHOO, NULL);
+ } else if (user_data->is_preset_account == AOL) {
+ elm_icon_file_set(title_ic, ACCOUNT_ICON_AOL, NULL);
+ }
+
Elm_Object_Item *navi_it = NULL;
navi_it = elm_naviframe_item_push(vd->ugd->navi_bar, p->str_account_name, p->l_button, NULL, p->layout, NULL);
/*elm_object_item_part_content_set(navi_it, "title_left_btn", p->r_button1);
elm_object_item_part_content_set(navi_it, "title_right_btn", p->r_button2);*/
+ elm_object_item_part_content_set(navi_it, "icon", title_ic);
elm_object_item_part_content_set(navi_it, "controlbar", p->cbar);
evas_object_show(vd->ugd->navi_bar);
}
@@ -962,21 +979,25 @@ static void _onoff_cb(void *data, Evas_Object *obj, void *event_info)
/* user name */
if (p->gl_sending_user_item) {
elm_object_item_disabled_set(p->gl_sending_user_item, EINA_TRUE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_username, EINA_TRUE);
}
/* password */
if (p->gl_sending_pw_item) {
elm_object_item_disabled_set(p->gl_sending_pw_item, EINA_TRUE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_password, EINA_TRUE);
}
} else {
/* user name */
if (p->gl_sending_user_item) {
elm_object_item_disabled_set(p->gl_sending_user_item, EINA_FALSE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_username, EINA_FALSE);
}
/* password */
if (p->gl_sending_pw_item) {
elm_object_item_disabled_set(p->gl_sending_pw_item, EINA_FALSE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_password, EINA_FALSE);
}
}
}
@@ -1247,8 +1268,6 @@ static char *_gl_secure_text_get_cb(void *data, Evas_Object *obj, const char *pa
debug_enter();
int index = (int)data;
- struct viewdata *vd = g_vd;
- struct priv_data *p = vd->priv;
email_account_t *account = account_data;
char buf[MAX_STR_LEN] = { 0, };
@@ -1333,8 +1352,6 @@ static char *_gl_server_type_text_get_cb(void *data, Evas_Object *obj, const cha
{
debug_enter();
- struct viewdata *vd = g_vd;
- struct priv_data *p = vd->priv;
email_account_t *account = account_data;
char buf[MAX_STR_LEN] = { 0, };
@@ -1660,6 +1677,11 @@ static Evas_Object *_gl_ef_content_get_cb(void *data, Evas_Object *obj, const ch
elm_entry_input_panel_return_key_disabled_set(p->entry_sending_username, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_sending_username, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_sending_username, ELM_INPUT_PANEL_LAYOUT_EMAIL);
+ if (account_data->outgoing_server_use_same_authenticator) {
+ elm_entry_context_menu_disabled_set(p->entry_sending_username, EINA_TRUE);
+ } else {
+ elm_entry_context_menu_disabled_set(p->entry_sending_username, EINA_FALSE);
+ }
evas_object_smart_callback_add(p->entry_sending_username, "changed", _backup_input_cb, p->ef_sending_username);
evas_object_smart_callback_add(p->entry_sending_username, "focused", _entry_focused_cb, p->ef_sending_username);
@@ -1688,6 +1710,11 @@ static Evas_Object *_gl_ef_content_get_cb(void *data, Evas_Object *obj, const ch
elm_entry_password_set(p->entry_sending_password, 1);
elm_entry_cnp_mode_set(p->entry_sending_password, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_sending_password, ELM_INPUT_PANEL_LAYOUT_EMAIL);
+ if (account_data->outgoing_server_use_same_authenticator) {
+ elm_entry_context_menu_disabled_set(p->entry_sending_password, EINA_TRUE);
+ } else {
+ elm_entry_context_menu_disabled_set(p->entry_sending_password, EINA_FALSE);
+ }
evas_object_smart_callback_add(p->entry_sending_password, "changed", _backup_input_cb, p->ef_sending_password);
evas_object_smart_callback_add(p->entry_sending_password, "focused", _entry_focused_cb, p->ef_sending_password);
@@ -1969,21 +1996,25 @@ static void _gl_onoff_sel_cb(void *data, Evas_Object *obj, void *event_info)
/* user name */
if (p->gl_sending_user_item) {
elm_object_item_disabled_set(p->gl_sending_user_item, EINA_TRUE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_username, EINA_TRUE);
}
/* password */
if (p->gl_sending_pw_item) {
elm_object_item_disabled_set(p->gl_sending_pw_item, EINA_TRUE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_password, EINA_TRUE);
}
} else {
/* user name */
if (p->gl_sending_user_item) {
elm_object_item_disabled_set(p->gl_sending_user_item, EINA_FALSE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_username, EINA_FALSE);
}
/* password */
if (p->gl_sending_pw_item) {
elm_object_item_disabled_set(p->gl_sending_pw_item, EINA_FALSE);
+ elm_entry_context_menu_disabled_set(p->entry_sending_password, EINA_FALSE);
}
}
break;