event-widget: factor out clock format function

This function will be used by other pieces of code later. We also gain
a tiny performance improvement, as only one GSetting is ever created.
This commit is contained in:
Georges Basile Stavracas Neto
2016-12-13 20:17:28 -02:00
parent 9a07dad0e9
commit ab3b80f3b9
3 changed files with 17 additions and 8 deletions
+2
View File
@@ -105,6 +105,8 @@ GDateTime* get_start_of_week (icaltimetype
GDateTime* get_end_of_week (icaltimetype *date);
gboolean is_clock_format_24h (void);
/* code brought from evolution */
gsize e_strftime_fix_am_pm (gchar *str,
gsize max,