summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-03-17 15:28:32 +0900
committerYoungbok Shin <youngb.shin@samsung.com>2016-03-17 15:28:32 +0900
commit854d2fe869c49ce45303b44c43fabdbf5950c8c5 (patch)
tree6c80c5a9b5c3b5c2628e2c68fd688621eaa4a6aa
parente0f4718982ec25d01dffdde25c694aa7af4f4304 (diff)
Label: Enable/Disable single line mode according to line wrap mode
-rw-r--r--src/lib/elm_label.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c
index 089f76e76..122d12de1 100644
--- a/src/lib/elm_label.c
+++ b/src/lib/elm_label.c
@@ -381,6 +381,10 @@ _elm_label_slide_mode_get(Eo *obj EINA_UNUSED, Elm_Label_Data *sd)
381EAPI void 381EAPI void
382elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap) 382elm_label_line_wrap_set(Evas_Object *obj, Elm_Wrap_Type wrap)
383{ 383{
384 if (wrap == ELM_WRAP_NONE)
385 elm_obj_entry_single_line_set(eo_super(obj, MY_CLASS), EINA_TRUE);
386 else
387 elm_obj_entry_single_line_set(eo_super(obj, MY_CLASS), EINA_FALSE);
384 elm_obj_entry_line_wrap_set(eo_super(obj, MY_CLASS), wrap); 388 elm_obj_entry_line_wrap_set(eo_super(obj, MY_CLASS), wrap);
385} 389}
386 390