elementary: apply slide ALWAYS mode for Edje marquee 23/162623/2
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 4 Dec 2017 08:36:30 +0000 (17:36 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 21 Dec 2017 09:12:46 +0000 (09:12 +0000)
Dependency warning: It should be applied with the following patch.
https://review.tizen.org/gerrit/162567

@tizen_fix

Change-Id: I0ff3a8dee81aef26f3cbce38477b816e7bd576f2
(cherry picked from commit 6292aca2b931efbe286dec1dd92127d1b26a9dd8)

src/lib/elm_label.c

index b2a7876..57fb2f0 100644 (file)
@@ -267,6 +267,12 @@ _elm_label_horizontal_size_policy_update(Eo *obj, Elm_Label_Data *sd)
      edje_object_signal_emit(wd->resize_obj, "elm,state,horizontal,expandable", "elm");
    else
      edje_object_signal_emit(wd->resize_obj, "elm,state,horizontal,fixed", "elm");
+
+   if (sd->slide_mode == ELM_LABEL_SLIDE_MODE_ALWAYS)
+     edje_object_part_text_marquee_always_set(wd->resize_obj, "elm.text", EINA_TRUE);
+   else
+     edje_object_part_text_marquee_always_set(wd->resize_obj, "elm.text", EINA_FALSE);
+
    edje_object_message_signal_process(wd->resize_obj);
 }
 /* END */