Commit 8c903b93 authored by Matthew Barnes's avatar Matthew Barnes
Browse files

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.
parent 85aba549
......@@ -2217,6 +2217,7 @@ EMenuToolButtonPrivate
<SECTION>
<FILE>e-misc-utils</FILE>
<TITLE>Miscellaneous Utilities</TITLE>
EDateWeekday
EForeachFunc
e_get_accels_filename
e_show_uri
......
......@@ -47,6 +47,44 @@ typedef enum {
E_ACTIVITY_COMPLETED
} 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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment