aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-06 23:16:59 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-03-06 23:20:45 +0800
commit8c903b93204d4ea1f72c588dda25643d608d6d2d (patch)
treee544212ede094ab305e526434448d392f637e2b4
parent85aba549034af182771694090799f6dbd804cc56 (diff)
downloadgsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.tar
gsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.tar.gz
gsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.tar.bz2
gsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.tar.lz
gsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.tar.xz
gsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.tar.zst
gsoc2013-evolution-8c903b93204d4ea1f72c588dda25643d608d6d2d.zip
e-util-enums.h: Add EDateWeekday enum.
This enum type is intentionally compatible with GDateWeekday. It exists only because GLib does not provide a GEnumClass for GDateWeekday. If that ever changes, this enum can go away.
-rw-r--r--doc/reference/libeutil/libeutil-sections.txt1
-rw-r--r--e-util/e-util-enums.h38
2 files changed, 39 insertions, 0 deletions
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index d681b4e092..c09d885de8 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -2217,6 +2217,7 @@ EMenuToolButtonPrivate
<SECTION>
<FILE>e-misc-utils</FILE>
<TITLE>Miscellaneous Utilities</TITLE>
+EDateWeekday
EForeachFunc
e_get_accels_filename
e_show_uri
diff --git a/e-util/e-util-enums.h b/e-util/e-util-enums.h
index 71cacc6ecb..d36ed774b9 100644
--- a/e-util/e-util-enums.h
+++ b/e-util/e-util-enums.h
@@ -48,6 +48,44 @@ typedef enum {
} EActivityState;
/**
+ * EDateWeekday:
+ * @E_DATE_BAD_WEEKDAY:
+ * Invalid value
+ * @E_DATE_MONDAY:
+ * Monday
+ * @E_DATE_TUESDAY:
+ * Tuesday
+ * @E_DATE_WEDNESDAY:
+ * Wednesday
+ * @E_DATE_THURSDAY:
+ * Thursday
+ * @E_DATE_FRIDAY:
+ * Friday
+ * @E_DATE_SATURDAY:
+ * Saturday
+ * @E_DATE_SUNDAY:
+ * Sunday
+ *
+ * Enumeration representing a day of the week; @E_DATE_MONDAY,
+ * @E_DATE_TUESDAY, etc. @G_DATE_BAD_WEEKDAY is an invalid weekday.
+ *
+ * This enum type is intentionally compatible with #GDateWeekday.
+ * It exists only because GLib does not provide a #GEnumClass for
+ * #GDateWeekday. If that ever changes, this enum can go away.
+ **/
+/* XXX Be pedantic with the value assignments to ensure compatibility. */
+typedef enum {
+ E_DATE_BAD_WEEKDAY = G_DATE_BAD_WEEKDAY,
+ E_DATE_MONDAY = G_DATE_MONDAY,
+ E_DATE_TUESDAY = G_DATE_TUESDAY,
+ E_DATE_WEDNESDAY = G_DATE_WEDNESDAY,
+ E_DATE_THURSDAY = G_DATE_THURSDAY,
+ E_DATE_FRIDAY = G_DATE_FRIDAY,
+ E_DATE_SATURDAY = G_DATE_SATURDAY,
+ E_DATE_SUNDAY = G_DATE_SUNDAY
+} EDateWeekday;
+
+/**
* EDurationType:
* @E_DURATION_MINUTES:
* Duration value is in minutes.