[evolution] Add EAutomaticActionPolicy enum.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Add EAutomaticActionPolicy enum.
- Date: Tue, 4 Jun 2013 18:43:52 +0000 (UTC)
commit f925dac7c498cda34ac891c627b7ba3598fcd4f4
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jun 4 08:52:59 2013 -0400
Add EAutomaticActionPolicy enum.
To have a proper GEnumClass registered for ask/always/never choices.
.../evolution-util/evolution-util-sections.txt | 1 +
e-util/e-util-enums.h | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt
b/doc/reference/evolution-util/evolution-util-sections.txt
index 7b4df3e..159ad1a 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -2239,6 +2239,7 @@ EMenuToolButtonPrivate
<SECTION>
<FILE>e-misc-utils</FILE>
<TITLE>Miscellaneous Utilities</TITLE>
+EAutomaticActionPolicy
EDateWeekday
EForeachFunc
e_get_accels_filename
diff --git a/e-util/e-util-enums.h b/e-util/e-util-enums.h
index d36ed77..36da5f4 100644
--- a/e-util/e-util-enums.h
+++ b/e-util/e-util-enums.h
@@ -48,6 +48,26 @@ typedef enum {
} 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:
* Invalid value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]