From f925dac7c498cda34ac891c627b7ba3598fcd4f4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 4 Jun 2013 08:52:59 -0400 Subject: Add EAutomaticActionPolicy enum. To have a proper GEnumClass registered for ask/always/never choices. --- e-util/e-util-enums.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'e-util') diff --git a/e-util/e-util-enums.h b/e-util/e-util-enums.h index d36ed774b9..36da5f4fd5 100644 --- a/e-util/e-util-enums.h +++ b/e-util/e-util-enums.h @@ -47,6 +47,26 @@ typedef enum { E_ACTIVITY_COMPLETED } EActivityState; +/** + * EAutomaticActionPolicy: + * @E_AUTOMATIC_ACTION_POLICY_ASK: + * Ask the user whether to perform the action. + * @E_AUTOMATIC_ACTION_POLICY_ALWAYS: + * Perform the action without interrupting the user. + * @E_AUTOMATIC_ACTION_POLICY_NEVER: + * Do not perform the action and do not interrupt the user. + * + * Used for automatable actions based on the user's preference. The user + * is initially asked whether to perform the action automatically, and is + * given either-or choices like "Yes, Always" or "No, Never". The user's + * response is then remembered for future sessions. + **/ +typedef enum { + E_AUTOMATIC_ACTION_POLICY_ASK, + E_AUTOMATIC_ACTION_POLICY_ALWAYS, + E_AUTOMATIC_ACTION_POLICY_NEVER +} EAutomaticActionPolicy; + /** * EDateWeekday: * @E_DATE_BAD_WEEKDAY: -- cgit v1.2.3