summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_ctxpopup.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-06-29 20:02:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-06-30 14:37:54 +0900
commit59081043a892f6db74a1d557c7422c7a543c909d (patch)
treeac24c589d8e811f56c5eebf1a5fc3530ebe9b80e /src/lib/elementary/elc_ctxpopup.c
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/elc_ctxpopup.c')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index a32a0e8..c60deb6 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -1568,20 +1568,22 @@ _elm_ctxpopup_elm_interface_atspi_accessible_state_set_get(Eo *obj, Elm_Ctxpopup
1568 return ret; 1568 return ret;
1569} 1569}
1570 1570
1571/* Internal EO APIs and hidden overrides */
1572
1573#define ELM_CTXPOPUP_EXTRA_OPS \
1574 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_ctxpopup)
1575
1576/* Efl.Part begin */ 1571/* Efl.Part begin */
1577 1572
1578ELM_PART_OVERRIDE(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data) 1573ELM_PART_OVERRIDE(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data)
1579ELM_PART_OVERRIDE_CONTENT_SET(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data) 1574ELM_PART_OVERRIDE_CONTENT_SET(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data)
1580ELM_PART_OVERRIDE_CONTENT_GET(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data) 1575ELM_PART_OVERRIDE_CONTENT_GET(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data)
1581ELM_PART_OVERRIDE_CONTENT_UNSET(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data) 1576ELM_PART_OVERRIDE_CONTENT_UNSET(elm_ctxpopup, ELM_CTXPOPUP, ELM_LAYOUT, Elm_Ctxpopup_Data, Elm_Part_Data)
1577ELM_PART_CONTENT_DEFAULT_SET(elm_ctxpopup, "default")
1582#include "elm_ctxpopup_internal_part.eo.c" 1578#include "elm_ctxpopup_internal_part.eo.c"
1583 1579
1584/* Efl.Part end */ 1580/* Efl.Part end */
1585 1581
1582/* Internal EO APIs and hidden overrides */
1583
1584#define ELM_CTXPOPUP_EXTRA_OPS \
1585 ELM_PART_CONTENT_DEFAULT_OPS(elm_ctxpopup), \
1586 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_ctxpopup)
1587
1586#include "elm_ctxpopup_item.eo.c" 1588#include "elm_ctxpopup_item.eo.c"
1587#include "elm_ctxpopup.eo.c" 1589#include "elm_ctxpopup.eo.c"