summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2017-04-17 17:38:44 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-04-17 17:40:25 +0900
commit287496b0778396997f5bd3d820c60191bb0840e6 (patch)
tree9909df46fbd2a511198303e67ed28ed0b23b9b14
parentf911b6067b61c0a62c342d8908789c9980ff87a2 (diff)
text_setting: Fix to set font style by default
Previously, font style was not selected automatically when font name is selected. Now, the first font style is selected automatically when font name is selected.
-rw-r--r--src/bin/text_setting.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/text_setting.c b/src/bin/text_setting.c
index 5a2181c..c0800da 100644
--- a/src/bin/text_setting.c
+++ b/src/bin/text_setting.c
@@ -815,7 +815,10 @@ font_name_selected_cb(void *data, Evas_Object *obj,
815 } 815 }
816 } 816 }
817 elm_list_go(tsd->list_font_style); 817 elm_list_go(tsd->list_font_style);
818 if (font_style_it) elm_list_item_selected_set(font_style_it, EINA_TRUE); 818
819 if (!font_style_it)
820 font_style_it = elm_list_first_item_get(tsd->list_font_style);
821 elm_list_item_selected_set(font_style_it, EINA_TRUE);
819 822
820 eina_stringshare_replace(&tsd->font_name, sel_font_name); 823 eina_stringshare_replace(&tsd->font_name, sel_font_name);
821 text_setting_font_apply(tsd); 824 text_setting_font_apply(tsd);