raster pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=d53075eadd5e616c224e0a522f7f026f22c15493
commit d53075eadd5e616c224e0a522f7f026f22c15493 Author: Vitalii Vorobiov <vi.vorob...@samsung.com> Date: Fri May 15 11:02:47 2015 +0900 Elm_Notify: adding elm_object_part_text_set/get functionality Summary: Currently elm_notify doesn't allow to set or get text if user's style contain some text parts and he need to set text into them. Reviewers: cedric, seoz Subscribers: raster, stefan_schmidt, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1333 --- src/lib/elm_notify.c | 12 ++++++++++++ src/lib/elm_notify.eo | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c index c48d41b..4c44fb6 100644 --- a/src/lib/elm_notify.c +++ b/src/lib/elm_notify.c @@ -163,6 +163,18 @@ _elm_notify_elm_widget_theme_apply(Eo *obj, Elm_Notify_Data *sd) return EINA_TRUE; } +EOLIAN static void +_elm_notify_elm_widget_part_text_set(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part, const char *label) +{ + edje_object_part_text_set(sd->notify, part, label); +} + +EOLIAN static const char* +_elm_notify_elm_widget_part_text_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part) +{ + return edje_object_part_text_get(sd->notify, part); +} + static void _calc(Evas_Object *obj) { diff --git a/src/lib/elm_notify.eo b/src/lib/elm_notify.eo index 2275545..3eb35dc 100644 --- a/src/lib/elm_notify.eo +++ b/src/lib/elm_notify.eo @@ -99,6 +99,8 @@ class Elm.Notify (Elm.Container) Elm.Widget.focus_next_manager_is; Elm.Widget.focus_next; Elm.Widget.sub_object_del; + Elm_Widget.part_text.set; + Elm_Widget.part_text.get; Elm.Container.content_get; Elm.Container.content_set; Elm.Container.content_unset; --