forked from enlightenment/efl
win: fix parameter order in elm_win_available_profiles_get() for consistency
This commit is contained in:
parent
e2e1814a4f
commit
b45b864c36
|
@ -4054,16 +4054,16 @@ elm_win_available_profiles_get(Evas_Object *obj,
|
|||
{
|
||||
ELM_WIN_CHECK(obj) EINA_FALSE;
|
||||
Eina_Bool ret = EINA_FALSE;
|
||||
eo_do((Eo *) obj, elm_obj_win_available_profiles_get(&ret, profiles, count));
|
||||
eo_do((Eo *) obj, elm_obj_win_available_profiles_get(profiles, count, &ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
_available_profiles_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
||||
{
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
char ***profiles = va_arg(*list, char ***);
|
||||
unsigned int *count = va_arg(*list, unsigned int *);
|
||||
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
|
||||
Elm_Win_Smart_Data *sd = _pd;
|
||||
Eina_Bool res;
|
||||
|
||||
|
@ -4079,7 +4079,7 @@ _available_profiles_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list)
|
|||
if (count) *count = sd->profile.count;
|
||||
res = EINA_TRUE;
|
||||
}
|
||||
*ret = res;
|
||||
if (ret) *ret = res;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
|
|
@ -538,13 +538,13 @@ enum
|
|||
*
|
||||
* Get the array of available profiles of a window.
|
||||
*
|
||||
* @param[out] ret
|
||||
* @param[out] profiles
|
||||
* @param[out] count
|
||||
* @param[out] ret
|
||||
*
|
||||
* @see elm_win_available_profiles_get
|
||||
*/
|
||||
#define elm_obj_win_available_profiles_get(ret, profiles, count) ELM_OBJ_WIN_ID(ELM_OBJ_WIN_SUB_ID_AVAILABLE_PROFILES_GET), EO_TYPECHECK(Eina_Bool *, ret), EO_TYPECHECK(char ***, profiles), EO_TYPECHECK(unsigned int *, count)
|
||||
#define elm_obj_win_available_profiles_get(profiles, count, ret) ELM_OBJ_WIN_ID(ELM_OBJ_WIN_SUB_ID_AVAILABLE_PROFILES_GET), EO_TYPECHECK(char ***, profiles), EO_TYPECHECK(unsigned int *, count), EO_TYPECHECK(Eina_Bool *, ret)
|
||||
|
||||
/**
|
||||
* @def elm_obj_win_profile_set
|
||||
|
|
Loading…
Reference in New Issue