summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_notify.c')
-rw-r--r--src/lib/elementary/elm_notify.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/elementary/elm_notify.c b/src/lib/elementary/elm_notify.c
index c890264..f5e9122 100644
--- a/src/lib/elementary/elm_notify.c
+++ b/src/lib/elementary/elm_notify.c
@@ -20,7 +20,7 @@
20#define MY_CLASS_NAME "Elm_Notify" 20#define MY_CLASS_NAME "Elm_Notify"
21#define MY_CLASS_NAME_LEGACY "elm_notify" 21#define MY_CLASS_NAME_LEGACY "elm_notify"
22 22
23static Efl_Ui_Theme_Apply_Result 23static Eina_Error
24_notify_theme_apply(Evas_Object *obj) 24_notify_theme_apply(Evas_Object *obj)
25{ 25{
26 const char *style = elm_widget_style_get(obj); 26 const char *style = elm_widget_style_get(obj);
@@ -139,12 +139,12 @@ _sizing_eval(Evas_Object *obj)
139 evas_object_geometry_set(obj, x, y, w, h); 139 evas_object_geometry_set(obj, x, y, w, h);
140} 140}
141 141
142EOLIAN static Efl_Ui_Theme_Apply_Result 142EOLIAN static Eina_Error
143_elm_notify_efl_ui_widget_theme_apply(Eo *obj, Elm_Notify_Data *sd) 143_elm_notify_efl_ui_widget_theme_apply(Eo *obj, Elm_Notify_Data *sd)
144{ 144{
145 Efl_Ui_Theme_Apply_Result int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL; 145 Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
146 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS)); 146 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
147 if (!int_ret) return EFL_UI_THEME_APPLY_RESULT_FAIL; 147 if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
148 148
149 _mirrored_set(obj, efl_ui_mirrored_get(obj)); 149 _mirrored_set(obj, efl_ui_mirrored_get(obj));
150 150
@@ -374,6 +374,7 @@ _elm_notify_content_set(Eo *obj, Elm_Notify_Data *sd, const char *part, Evas_Obj
374 _changed_size_hints_cb, obj); 374 _changed_size_hints_cb, obj);
375 edje_object_part_swallow(sd->notify, "elm.swallow.content", content); 375 edje_object_part_swallow(sd->notify, "elm.swallow.content", content);
376 } 376 }
377 efl_event_callback_call(obj, EFL_CONTENT_EVENT_CONTENT_CHANGED, content);
377 378
378 _calc(obj); 379 _calc(obj);
379 380
@@ -399,6 +400,7 @@ _elm_notify_content_unset(Eo *obj, Elm_Notify_Data *sd, const char *part)
399 content = sd->content; 400 content = sd->content;
400 _elm_widget_sub_object_redirect_to_top(obj, sd->content); 401 _elm_widget_sub_object_redirect_to_top(obj, sd->content);
401 edje_object_part_unswallow(sd->notify, content); 402 edje_object_part_unswallow(sd->notify, content);
403 efl_event_callback_call(obj, EFL_CONTENT_EVENT_CONTENT_CHANGED, NULL);
402 404
403 return content; 405 return content;
404} 406}
@@ -733,4 +735,4 @@ _elm_notify_part_efl_ui_l10n_l10n_text_set(Eo *obj, void *_pd EINA_UNUSED, const
733 ELM_PART_CONTENT_DEFAULT_OPS(elm_notify), \ 735 ELM_PART_CONTENT_DEFAULT_OPS(elm_notify), \
734 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_notify) 736 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_notify)
735 737
736#include "elm_notify.eo.c" 738#include "elm_notify_eo.c"