diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-07 22:57:35 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-07 23:00:31 +0800 |
commit | 5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6 (patch) | |
tree | 9ab058b44d2e51d1e856c155727af9e6ef584be9 /e-util/e-misc-utils.h | |
parent | 8a3453fee1c8150336169f55261c26699084a4ce (diff) | |
download | gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.tar gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.tar.gz gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.tar.bz2 gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.tar.lz gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.tar.xz gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.tar.zst gsoc2013-evolution-5e9bdd4509614f459aaeb6b7e218f9cc7fe031a6.zip |
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.
Diffstat (limited to 'e-util/e-misc-utils.h')
-rw-r--r-- | e-util/e-misc-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |