Elm_Notify: adding elm_object_part_text_set/get functionality
authorVitalii Vorobiov <vi.vorobiov@samsung.com>
Fri, 15 May 2015 02:02:47 +0000 (11:02 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 15 May 2015 02:23:25 +0000 (11:23 +0900)
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
src/lib/elm_notify.eo

index c48d41b..4c44fb6 100644 (file)
@@ -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)
 {
index 2275545..3eb35dc 100644 (file)
@@ -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;