nautilus-file: fix code style

parent 97048dd7
......@@ -4681,7 +4681,7 @@ nautilus_file_get_date_as_string (NautilusFile *file,
{
time_t file_time_raw;
GDateTime *file_date, *now;
gint daysAgo;
gint days_ago;
gboolean use_24;
gchar *format;
gchar *result;
......@@ -4694,13 +4694,13 @@ nautilus_file_get_date_as_string (NautilusFile *file,
if (date_format != NAUTILUS_DATE_FORMAT_FULL) {
now = g_date_time_new_now_local ();
daysAgo = g_date_time_difference (now, file_date) / (24 * 60 * 60 * 1000 * 1000L);
days_ago = g_date_time_difference (now, file_date) / (24 * 60 * 60 * 1000 * 1000L);
use_24 = g_settings_get_enum (gnome_interface_preferences, "clock-format") ==
G_DESKTOP_CLOCK_FORMAT_24H;
// Show only the time if date is on today
if (daysAgo < 1) {
if (days_ago < 1) {
if (use_24) {
/* Translators: Time in 24h format */
format = N_("%H:%M");
......@@ -4710,7 +4710,7 @@ nautilus_file_get_date_as_string (NautilusFile *file,
}
}
// Show the word "Yesterday" and time if date is on yesterday
else if (daysAgo < 2) {
else if (days_ago < 2) {
if (date_format == NAUTILUS_DATE_FORMAT_REGULAR) {
// xgettext:no-c-format
format = N_("Yesterday");
......@@ -4729,7 +4729,7 @@ nautilus_file_get_date_as_string (NautilusFile *file,
}
}
// Show a week day and time if date is in the last week
else if (daysAgo < 7) {
else if (days_ago < 7) {
if (date_format == NAUTILUS_DATE_FORMAT_REGULAR) {
// xgettext:no-c-format
format = N_("%a");
......
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