diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-02-01 15:31:26 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-02 22:22:38 +0100 |
commit | eae4f547800077d9530eaeef073e9b78f235ac42 (patch) | |
tree | 1f591ce6cc5689914b3e5b0925bacf7742f207d3 | |
parent | 6444e9d3187f9d61489af0504963027478ec226b (diff) | |
download | nautilus-eae4f547800077d9530eaeef073e9b78f235ac42.tar.gz |
search-popover: use full more descriptive var name
"n" is not really useful.
-rw-r--r-- | src/nautilus-search-popover.c | 18 |
1 files 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); |