elm: Always pass valid part name inside part APIs
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 29 Jun 2017 11:02:59 +0000 (20:02 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 30 Jun 2017 05:37:54 +0000 (14:37 +0900)
commit59081043a892f6db74a1d557c7422c7a543c909d
treeac24c589d8e811f56c5eebf1a5fc3530ebe9b80e
parent82a955be902ba4afd4cb0f0fbbaf46c1f2208155
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
14 files changed:
src/lib/elementary/efl_ui_flip.c
src/lib/elementary/efl_ui_win.c
src/lib/elementary/elc_ctxpopup.c
src/lib/elementary/elc_fileselector_entry.c
src/lib/elementary/elc_player.c
src/lib/elementary/elc_popup.c
src/lib/elementary/elm_entry.c
src/lib/elementary/elm_layout.c
src/lib/elementary/elm_mapbuf.c
src/lib/elementary/elm_notify.c
src/lib/elementary/elm_part_helper.h
src/lib/elementary/elm_scroller.c
src/lib/elementary/elm_widget.c
src/lib/elementary/elm_widget.h