[nautilus] nautilus-file: fix code style
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-file: fix code style
- Date: Wed, 18 Feb 2015 09:12:49 +0000 (UTC)
commit 794e437be4ad4576729f940465c5d941a0c9b737
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Feb 18 10:04:22 2015 +0100
nautilus-file: fix code style
libnautilus-private/nautilus-file.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 70940dc..564b9ac 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]