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
This commit is contained in:
Vitalii Vorobiov 2015-05-15 11:02:47 +09:00 committed by Carsten Haitzler (Rasterman)
parent b4da061934
commit 7e0fa12710
2 changed files with 14 additions and 0 deletions

View 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)
{

View 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;