diff options
Diffstat (limited to 'src/lib/elementary/efl_ui_alert_popup.c')
-rw-r--r-- | src/lib/elementary/efl_ui_alert_popup.c | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/src/lib/elementary/efl_ui_alert_popup.c b/src/lib/elementary/efl_ui_alert_popup.c index 0c5fc1b..65dcb49 100644 --- a/src/lib/elementary/efl_ui_alert_popup.c +++ b/src/lib/elementary/efl_ui_alert_popup.c | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | #include "elm_priv.h" | 9 | #include "elm_priv.h" |
10 | #include "efl_ui_alert_popup_private.h" | 10 | #include "efl_ui_alert_popup_private.h" |
11 | #include "efl_ui_alert_popup_part.eo.h" | 11 | #include "efl_ui_alert_popup_part_title.eo.h" |
12 | #include "elm_part_helper.h" | 12 | #include "elm_part_helper.h" |
13 | 13 | ||
14 | #define MY_CLASS EFL_UI_ALERT_POPUP_CLASS | 14 | #define MY_CLASS EFL_UI_ALERT_POPUP_CLASS |
@@ -257,18 +257,42 @@ _efl_ui_alert_popup_efl_object_destructor(Eo *obj, Efl_Ui_Alert_Popup_Data *pd) | |||
257 | } | 257 | } |
258 | 258 | ||
259 | static Eina_Bool | 259 | static Eina_Bool |
260 | _part_is_efl_ui_alert_popup_part(const Eo *obj, const char *part) | 260 | _part_is_efl_ui_alert_popup_part_title(const Eo *obj, const char *part) |
261 | { | 261 | { |
262 | if (!_elm_layout_part_aliasing_eval(obj, &part, EINA_TRUE)) return EINA_FALSE; | 262 | if (!_elm_layout_part_aliasing_eval(obj, &part, EINA_TRUE)) return EINA_FALSE; |
263 | return eina_streq(part, "efl.text.title"); | 263 | return eina_streq(part, "efl.text.title"); |
264 | } | 264 | } |
265 | 265 | ||
266 | /* Efl.Part begin */ | 266 | /* Efl.Part begin */ |
267 | ELM_PART_OVERRIDE_PARTIAL(efl_ui_alert_popup, EFL_UI_ALERT_POPUP, | 267 | EOLIAN static Efl_Object * |
268 | Efl_Ui_Alert_Popup_Data, _part_is_efl_ui_alert_popup_part) | 268 | _efl_ui_alert_popup_efl_part_part_get(const Eo *obj, Efl_Ui_Alert_Popup_Data *priv EINA_UNUSED, const char *part) |
269 | ELM_PART_OVERRIDE_TEXT_SET(efl_ui_alert_popup, EFL_UI_ALERT_POPUP, Efl_Ui_Alert_Popup_Data) | 269 | { |
270 | ELM_PART_OVERRIDE_TEXT_GET(efl_ui_alert_popup, EFL_UI_ALERT_POPUP, Efl_Ui_Alert_Popup_Data) | 270 | EINA_SAFETY_ON_NULL_RETURN_VAL(part, NULL); |
271 | #include "efl_ui_alert_popup_part.eo.c" | 271 | if (_part_is_efl_ui_alert_popup_part_title(obj, part)) |
272 | return ELM_PART_IMPLEMENT(EFL_UI_ALERT_POPUP_PART_TITLE_CLASS, obj, part); | ||
273 | return efl_part_get(efl_super(obj, EFL_UI_ALERT_POPUP_CLASS), part); | ||
274 | } | ||
275 | |||
276 | EOLIAN static void | ||
277 | _efl_ui_alert_popup_part_title_efl_text_text_set(Eo *obj, void *_pd EINA_UNUSED, const char *text) | ||
278 | { | ||
279 | Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); | ||
280 | Efl_Ui_Alert_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_ALERT_POPUP_CLASS); | ||
281 | |||
282 | _efl_ui_alert_popup_text_set(pd->obj, sd, pd->part, text); | ||
283 | } | ||
284 | |||
285 | EOLIAN static const char* | ||
286 | _efl_ui_alert_popup_part_title_efl_text_text_get(const Eo *obj, void *_pd EINA_UNUSED) | ||
287 | { | ||
288 | Elm_Part_Data *pd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS); | ||
289 | Efl_Ui_Alert_Popup_Data *sd = efl_data_scope_get(pd->obj, EFL_UI_ALERT_POPUP_CLASS); | ||
290 | |||
291 | return _efl_ui_alert_popup_text_get(pd->obj, sd, pd->part); | ||
292 | } | ||
293 | |||
294 | |||
295 | #include "efl_ui_alert_popup_part_title.eo.c" | ||
272 | 296 | ||
273 | /* Efl.Part end */ | 297 | /* Efl.Part end */ |
274 | EFL_UI_LAYOUT_TEXT_ALIASES_IMPLEMENT(efl_ui_alert_popup) | 298 | EFL_UI_LAYOUT_TEXT_ALIASES_IMPLEMENT(efl_ui_alert_popup) |