path: root/src/lib/elementary/elm_widget.h
diff options
authorJean-Philippe Andre <>2017-06-29 20:02:59 +0900
committerJean-Philippe Andre <>2017-06-30 14:37:54 +0900
commit59081043a892f6db74a1d557c7422c7a543c909d (patch)
treeac24c589d8e811f56c5eebf1a5fc3530ebe9b80e /src/lib/elementary/elm_widget.h
parent82a955be902ba4afd4cb0f0fbbaf46c1f2208155 (diff)
elm: Always pass valid part name inside part APIs
This affects the legacy content_set/get/unset part APIs. This should avoid some unwanted ERR messages in case an elm_object_ API is used on an elm widget that doesn't implement said API. What this does is request the widget for the name of the default part if NULL was passed in. Since some widgets are not elm_layout, they have to override the API themselves, which is why I made it an internal EO API (rather than a series of efl_isa()). In theory, part should never be NULL when reaching the internal implementation code in the widgets, at least for content. In EO, efl_part(obj, NULL) should be invalid. Ref T5629
Diffstat (limited to 'src/lib/elementary/elm_widget.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_widget.h b/src/lib/elementary/elm_widget.h
index 2d7f49b132..01b2cccdc6 100644
--- a/src/lib/elementary/elm_widget.h
+++ b/src/lib/elementary/elm_widget.h
@@ -866,6 +866,9 @@ EAPI Eina_Bool _elm_layout_part_aliasing_eval(const Evas_Object *obj,
866 const char **part, 866 const char **part,
867 Eina_Bool is_text); 867 Eina_Bool is_text);
868 868
869/* Internal EO APIs */
870const char *elm_widget_default_content_part_get(const Eo *obj);
869 872
871#include "elm_widget_item.eo.h" 874#include "elm_widget_item.eo.h"