aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-04 20:52:59 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-05 01:10:22 +0800
commitf069f135de42f7bd3d8bd80d1c0ef55bc732c182 (patch)
tree7ba592a78b0f428e622b784e932566b5b71f83ce
parentc21d4bc7d69829918311c991dfffeb33282ca861 (diff)
downloadgsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.tar
gsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.tar.gz
gsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.tar.bz2
gsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.tar.lz
gsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.tar.xz
gsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.tar.zst
gsoc2013-evolution-f069f135de42f7bd3d8bd80d1c0ef55bc732c182.zip
Add EAutomaticActionPolicy enum.
To have a proper GEnumClass registered for ask/always/never choices. (cherry picked from commit f925dac7c498cda34ac891c627b7ba3598fcd4f4)
-rw-r--r--doc/reference/libeutil/libeutil-sections.txt1
-rw-r--r--e-util/e-util-enums.h20
2 files changed, 21 insertions, 0 deletions
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index 912691b3a0..53743cce51 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -2220,6 +2220,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 d36ed774b9..36da5f4fd5 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