forked from enlightenment/enventor
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.
This commit is contained in:
parent
f911b6067b
commit
287496b077
|
@ -815,7 +815,10 @@ font_name_selected_cb(void *data, Evas_Object *obj,
|
|||
}
|
||||
}
|
||||
elm_list_go(tsd->list_font_style);
|
||||
if (font_style_it) elm_list_item_selected_set(font_style_it, EINA_TRUE);
|
||||
|
||||
if (!font_style_it)
|
||||
font_style_it = elm_list_first_item_get(tsd->list_font_style);
|
||||
elm_list_item_selected_set(font_style_it, EINA_TRUE);
|
||||
|
||||
eina_stringshare_replace(&tsd->font_name, sel_font_name);
|
||||
text_setting_font_apply(tsd);
|
||||
|
|
Loading…
Reference in New Issue