From 5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 7 Mar 2013 09:57:35 -0500 Subject: Add e_get_next_weekday() and e_get_prev_weekday(). These just cycle over the GDateWeekday enum. Trivial functions, but they help make loops a little easier to read. --- e-util/e-misc-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'e-util/e-misc-utils.h') diff --git a/e-util/e-misc-utils.h b/e-util/e-misc-utils.h index e41689bd43..ee7e276152 100644 --- a/e-util/e-misc-utils.h +++ b/e-util/e-misc-utils.h @@ -139,6 +139,8 @@ const gchar * e_get_month_name (GDateMonth month, gboolean abbreviated); const gchar * e_get_weekday_name (GDateWeekday weekday, gboolean abbreviated); +GDateWeekday e_get_next_weekday (GDateWeekday weekday); +GDateWeekday e_get_prev_weekday (GDateWeekday weekday); gboolean e_file_lock_create (void); void e_file_lock_destroy (void); -- cgit v1.2.3