diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-09-15 14:39:26 +0100 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-09-17 11:40:10 -0400 |
commit | 3e9fb52214da793ef1320775f1ab8226bdca6ae2 (patch) | |
tree | 501a294e1d5cbbc29d21fdce6fb911a170a986e7 /glib/gdatetime.c | |
parent | 4bac6613cfca4b0676a51e1df0848fa2e4d35120 (diff) | |
download | glib-3e9fb52214da793ef1320775f1ab8226bdca6ae2.tar.gz |
datetime: Rename g_date_time_printf() to g_date_time_format()
The function does not use any printf() modifiers, so using printf() is a
misnomer.
Prior art: strftime, g_ascii_formatd
https://bugzilla.gnome.org/show_bug.cgi?id=50076
Diffstat (limited to 'glib/gdatetime.c')
-rw-r--r-- | glib/gdatetime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/glib/gdatetime.c b/glib/gdatetime.c index e5b55c6be..7283fce4b 100644 --- a/glib/gdatetime.c +++ b/glib/gdatetime.c @@ -121,10 +121,10 @@ #define MONTH_FULL(d) (get_month_name (g_date_time_get_month (datetime))) /* Translators: this is the preferred format for expressing the date */ -#define GET_PREFERRED_DATE(d) (g_date_time_printf ((d), C_("GDateTime", "%m/%d/%y"))) +#define GET_PREFERRED_DATE(d) (g_date_time_format ((d), C_("GDateTime", "%m/%d/%y"))) /* Translators: this is the preferred format for expressing the time */ -#define GET_PREFERRED_TIME(d) (g_date_time_printf ((d), C_("GDateTime", "%H:%M:%S"))) +#define GET_PREFERRED_TIME(d) (g_date_time_format ((d), C_("GDateTime", "%H:%M:%S"))) #define SECS_PER_MINUTE (60) #define SECS_PER_HOUR (60 * SECS_PER_MINUTE) @@ -2237,7 +2237,7 @@ g_date_time_new_now (void) } /** - * g_date_time_printf: + * g_date_time_format: * @datetime: A #GDateTime * @format: a valid UTF-8 string, containing the format for the #GDateTime * @@ -2293,7 +2293,7 @@ g_date_time_new_now (void) * Since: 2.26 */ gchar * -g_date_time_printf (const GDateTime *datetime, +g_date_time_format (const GDateTime *datetime, const gchar *format) { GString *outstr; |