jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=287496b0778396997f5bd3d820c60191bb0840e6

commit 287496b0778396997f5bd3d820c60191bb0840e6
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Mon Apr 17 17:38:44 2017 +0900

    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.
---
 src/bin/text_setting.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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,
           }
      }
    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);

-- 


Reply via email to