summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2015-05-15 11:02:47 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-15 11:23:25 +0900
commitd53075eadd5e616c224e0a522f7f026f22c15493 (patch)
tree5e560cfa4bee0ce9852e9a5ae5bfaa474815d397
parent58686474d6f2d85e34b021cf2a2a1dba4ef34a8c (diff)
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
-rw-r--r--src/lib/elm_notify.c12
-rw-r--r--src/lib/elm_notify.eo2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c
index c48d41b37..4c44fb6b5 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)
163 return EINA_TRUE; 163 return EINA_TRUE;
164} 164}
165 165
166EOLIAN static void
167_elm_notify_elm_widget_part_text_set(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part, const char *label)
168{
169 edje_object_part_text_set(sd->notify, part, label);
170}
171
172EOLIAN static const char*
173_elm_notify_elm_widget_part_text_get(Eo *obj EINA_UNUSED, Elm_Notify_Data *sd, const char *part)
174{
175 return edje_object_part_text_get(sd->notify, part);
176}
177
166static void 178static void
167_calc(Evas_Object *obj) 179_calc(Evas_Object *obj)
168{ 180{
diff --git a/src/lib/elm_notify.eo b/src/lib/elm_notify.eo
index 22755456a..3eb35dcaf 100644
--- a/src/lib/elm_notify.eo
+++ b/src/lib/elm_notify.eo
@@ -99,6 +99,8 @@ class Elm.Notify (Elm.Container)
99 Elm.Widget.focus_next_manager_is; 99 Elm.Widget.focus_next_manager_is;
100 Elm.Widget.focus_next; 100 Elm.Widget.focus_next;
101 Elm.Widget.sub_object_del; 101 Elm.Widget.sub_object_del;
102 Elm_Widget.part_text.set;
103 Elm_Widget.part_text.get;
102 Elm.Container.content_get; 104 Elm.Container.content_get;
103 Elm.Container.content_set; 105 Elm.Container.content_set;
104 Elm.Container.content_unset; 106 Elm.Container.content_unset;