[elm] Fix bad placement of type declaration.

SVN revision: 79943
This commit is contained in:
Gustavo Lima Chaves 2012-11-30 19:57:36 +00:00
parent 166cf36825
commit 6c638b0279
3 changed files with 24 additions and 26 deletions

View File

@ -1497,7 +1497,7 @@ _elm_prefs_item_value_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
Elm_Prefs_Item_Node *it;
const char *name = va_arg(*list, const char *);
const Eina_Value *value = va_arg(*list, const Eina_Value *);
Eina_Value *value = va_arg(*list, Eina_Value *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
it = _elm_prefs_item_api_entry_common(obj, name);

View File

@ -423,29 +423,6 @@ enum
* @li @ref prefs_example_03
*/
/**
* Elm Prefs item types.
*
* @since 1.8
*/
enum _Elm_Prefs_Item_Type
{
ELM_PREFS_TYPE_UNKNOWN = 0,
ELM_PREFS_TYPE_ACTION, /***< action type, bound to button-like UI elements */
ELM_PREFS_TYPE_BOOL, /**< boolean type, bound to checkbox-like UI elements */
ELM_PREFS_TYPE_INT, /**< integer type, bound to spinner-like UI elements */
ELM_PREFS_TYPE_FLOAT, /**< floating point type, bound to spinner-like UI elements */
ELM_PREFS_TYPE_LABEL, /**< label type, bound to read-only, label UI elements */
ELM_PREFS_TYPE_DATE, /**< date type, bound to date selection UI elements */
ELM_PREFS_TYPE_TEXT, /**< text type, bound to single-line, text entry UI elements */
ELM_PREFS_TYPE_TEXTAREA, /**< text area type, bound to multi-line, text entry UI elements */
ELM_PREFS_TYPE_PAGE, /**< page type, used to nest pages */
ELM_PREFS_TYPE_RESET, /**< values resetting trigger type, bound to button-like UI elements */
ELM_PREFS_TYPE_SAVE, /**< saving trigger type, bound to button-like UI elements */
ELM_PREFS_TYPE_SEPARATOR, /**< separator type, bound to separator-like UI elements */
ELM_PREFS_TYPE_SWALLOW /**< swallow type, bound to an empty 'spot' on the UI meant to receive and display external content */
};
/**
* Modes of resetting a prefs widget.
*

View File

@ -30,6 +30,29 @@
* @{
*/
/**
* Elm Prefs item types.
*
* @since 1.8
*/
typedef enum _Elm_Prefs_Item_Type
{
ELM_PREFS_TYPE_UNKNOWN = 0,
ELM_PREFS_TYPE_ACTION, /***< action type, bound to button-like UI elements */
ELM_PREFS_TYPE_BOOL, /**< boolean type, bound to checkbox-like UI elements */
ELM_PREFS_TYPE_INT, /**< integer type, bound to spinner-like UI elements */
ELM_PREFS_TYPE_FLOAT, /**< floating point type, bound to spinner-like UI elements */
ELM_PREFS_TYPE_LABEL, /**< label type, bound to read-only, label UI elements */
ELM_PREFS_TYPE_DATE, /**< date type, bound to date selection UI elements */
ELM_PREFS_TYPE_TEXT, /**< text type, bound to single-line, text entry UI elements */
ELM_PREFS_TYPE_TEXTAREA, /**< text area type, bound to multi-line, text entry UI elements */
ELM_PREFS_TYPE_PAGE, /**< page type, used to nest pages */
ELM_PREFS_TYPE_RESET, /**< values resetting trigger type, bound to button-like UI elements */
ELM_PREFS_TYPE_SAVE, /**< saving trigger type, bound to button-like UI elements */
ELM_PREFS_TYPE_SEPARATOR, /**< separator type, bound to separator-like UI elements */
ELM_PREFS_TYPE_SWALLOW /**< swallow type, bound to an empty 'spot' on the UI meant to receive and display external content */
} Elm_Prefs_Item_Type;
/**
* Types of events a given prefs data handle may issue.
*
@ -172,8 +195,6 @@ EAPI void elm_prefs_data_unref(Elm_Prefs_Data *prefs_data);
*
* @since 1.8
*/
typedef enum _Elm_Prefs_Item_Type Elm_Prefs_Item_Type;
EAPI Eina_Bool elm_prefs_data_value_set(Elm_Prefs_Data *prefs_data,
const char *path,
const Elm_Prefs_Item_Type type,