forked from enlightenment/efl
elm: Put back Policy and Policy_Quit in EO files
In e027ad2626
these enums were moved to header files, which is correct,
since they are legacy and should not be present in EO files.
However, the C# bindings are still using them.
Until nobody is using these two enums, adding them back to EO fixes the build.
This commit is contained in:
parent
7ef58f9581
commit
a9132a9a66
|
@ -2,6 +2,33 @@
|
|||
* NOTE: Some of those types still need to be moved to Efl.Ui
|
||||
*/
|
||||
|
||||
enum Elm.Policy
|
||||
{
|
||||
[[Policy identifiers.]]
|
||||
quit, [[under which circumstances the application should quit automatically.
|
||||
See also @Elm.Policy.quit.]]
|
||||
exit, [[defines elm_exit() behaviour. See also @Elm.Policy.exit.
|
||||
|
||||
@since 1.8
|
||||
]]
|
||||
throttle, [[defines how throttling should work. See also @Elm.Policy.throttle
|
||||
|
||||
@since 1.8
|
||||
]]
|
||||
last [[Sentinel value to indicate last enum field during iteration]]
|
||||
}
|
||||
|
||||
/* FIXME: elm_policy API is not bound to EO */
|
||||
enum Elm.Policy_Quit
|
||||
{
|
||||
[[Possible values for the @Elm.Policy.quit policy]]
|
||||
none = 0, [[never quit the application automatically]]
|
||||
last_window_closed, [[quit when the application's last window is closed]]
|
||||
last_window_hidden [[quit when the application's last window is hidden
|
||||
|
||||
@since 1.14]]
|
||||
}
|
||||
|
||||
/* Legacy-only function pointer types, for the legacy EO classes (genlist, etc...) */
|
||||
type Evas_Smart_Cb: __undefined_type; [[Evas smart callback type]]
|
||||
|
||||
|
|
|
@ -32,41 +32,6 @@ typedef struct _Elm_Event_Policy_Changed
|
|||
int old_value; /**< new value the policy got */
|
||||
} Elm_Event_Policy_Changed;
|
||||
|
||||
/** Policy identifiers.
|
||||
*
|
||||
* @ingroup Elm
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ELM_POLICY_QUIT = 0, /**< under which circumstances the application should
|
||||
* quit automatically. See also @ref ELM_POLICY_QUIT. */
|
||||
ELM_POLICY_EXIT, /**< defines elm_exit() behaviour. See also
|
||||
* @ref ELM_POLICY_EXIT.
|
||||
*
|
||||
* @since 1.8 */
|
||||
ELM_POLICY_THROTTLE, /**< defines how throttling should work. See also
|
||||
* @ref ELM_POLICY_THROTTLE
|
||||
*
|
||||
* @since 1.8 */
|
||||
ELM_POLICY_LAST /**< Sentinel value to indicate last enum field during
|
||||
* iteration */
|
||||
} Elm_Policy;
|
||||
|
||||
/** Possible values for the @ref ELM_POLICY_QUIT policy
|
||||
*
|
||||
* @ingroup Elm
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ELM_POLICY_QUIT_NONE = 0, /**< never quit the application automatically */
|
||||
ELM_POLICY_QUIT_LAST_WINDOW_CLOSED, /**< quit when the application's last
|
||||
* window is closed */
|
||||
ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN /**< quit when the application's last
|
||||
* window is hidden
|
||||
*
|
||||
* @since 1.14 */
|
||||
} Elm_Policy_Quit;
|
||||
|
||||
/** Possible values for the @ref ELM_POLICY_EXIT policy.
|
||||
*
|
||||
* @since 1.8
|
||||
|
|
Loading…
Reference in New Issue