Summary:
Some APIs need to return specific values for their usage.
For Examples, elm_xx_select_mode_get function need to return
ELM_OBJECT_SELECT_MODE_MAX when invalid input comes.
**Fixed API list :**
elm_list_mode_get
elm_list_multi_select_mode_get
elm_genlist_mode_get
elm_genlist_select_mode_get
elm_genlist_multi_select_mode_get
elm_genlist_item_type_get
elm_genlist_ttem_index_get
elm_genlist_item_select_mode_get
elm_gengrid_select_mode_get
elm_gengrid_multi_select_mode_get
elm_gengrid_item_index_get
Test Plan: Call API with NULL parameter and check return value.
Reviewers: Hermet, seoz, jaehwan, raster, eunue
Subscribers: id213sin
Differential Revision: https://phab.enlightenment.org/D2306
@ingroup Gengrid */
}
values {
- Elm_Object_Select_Mode mode; /*@ The select mode */
+ Elm_Object_Select_Mode mode(4); /*@ The select mode */
}
}
reorder_mode {
@since 1.8 */
}
values {
- Elm_Object_Multi_Select_Mode mode; /*@ The multi select mode */
+ Elm_Object_Multi_Select_Mode mode(2); /*@ The multi select mode */
}
}
horizontal {
*/
}
values {
- int index; /*@ @return the position inside the list of item. */
+ int index(-1); /*@ @return the position inside the list of item. */
}
}
pos {
@ingroup Genlist */
}
values {
- Elm_Object_Select_Mode mode; /*@ The select mode */
+ Elm_Object_Select_Mode mode(4); /*@ The select mode */
}
}
focus_on_selection {
@since 1.8 */
}
values {
- Elm_Object_Multi_Select_Mode mode; /*@ The multi select mode */
+ Elm_Object_Multi_Select_Mode mode(2); /*@ The multi select mode */
}
}
block_count {
@ingroup Genlist */
}
values {
- Elm_List_Mode mode; /*@ The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT). */
+ Elm_List_Mode mode(4); /*@ The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT). */
}
}
decorated_item {
*/
}
values {
- int index; /*@ @return the position inside the list of item. */
+ int index(-1); /*@ @return the position inside the list of item. */
}
}
decorate_mode {
*/
}
values {
- Elm_Object_Select_Mode mode; /*@ The selected mode */
+ Elm_Object_Select_Mode mode(4); /*@ The selected mode */
}
}
type {
*/
}
values {
- Elm_Genlist_Item_Type type; /*@ Item tupe */
+ Elm_Genlist_Item_Type type(4); /*@ Item tupe */
}
}
}
@since 1.8 */
}
values {
- Elm_Object_Multi_Select_Mode mode; /*@ The multi select mode */
+ Elm_Object_Multi_Select_Mode mode(2); /*@ The multi select mode */
}
}
mode {
@ingroup List */
}
values {
- Elm_List_Mode mode; /*@ One of #Elm_List_Mode: #ELM_LIST_COMPRESS,
+ Elm_List_Mode mode(4); /*@ One of #Elm_List_Mode: #ELM_LIST_COMPRESS,
#ELM_LIST_SCROLL, #ELM_LIST_LIMIT or #ELM_LIST_EXPAND. */
}
}