From eae4f547800077d9530eaeef073e9b78f235ac42 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 1 Feb 2016 15:31:26 +0100 Subject: search-popover: use full more descriptive var name "n" is not really useful. --- src/nautilus-search-popover.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/nautilus-search-popover.c b/src/nautilus-search-popover.c index bcbbdc6e5..8a54edad6 100644 --- a/src/nautilus-search-popover.c +++ b/src/nautilus-search-popover.c @@ -610,48 +610,48 @@ fill_fuzzy_dates_listbox (NautilusSearchPopover *popover) while (days < max_days) { gchar *label; - gint n, step; + gint normalized, step; if (days == 0) { - n = 0; + normalized = 0; step = 1; } else if (days < 7) { /* days */ - n = days; + normalized = days; step = 2; } else if (days < 30) { /* weeks */ - n = days / 7; + normalized = days / 7; step = 7; } else if (days < 365) { /* months */ - n = days / 30; + normalized = days / 30; step = 84; } else if (days < 1825) { /* years */ - n = days / 365; + normalized = days / 365; step = 365; } else { /* after the first 5 years, jump at a 5-year pace */ - n = days / 365; + normalized = days / 365; step = 1825; } - label = g_strdup_printf (get_text_for_day (days), n); + label = g_strdup_printf (get_text_for_day (days), normalized); - row = create_row_for_label (label, n == 1); g_object_set_data (G_OBJECT (row), "days", GINT_TO_POINTER (days)); + row = create_row_for_label (label, normalized == 1); gtk_container_add (GTK_CONTAINER (popover->dates_listbox), row); -- cgit v1.2.1