diff options
author | Xan Lopez <xan@igalia.com> | 2012-03-07 05:53:35 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-07 05:53:35 +0800 |
commit | 99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4 (patch) | |
tree | 708a61b32fdae6a9437f3e5c30c7cecde6e9fb9a | |
parent | a3ab578d379f429d9557e029a1beea751d1d8667 (diff) | |
download | gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.tar gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.tar.gz gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.tar.bz2 gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.tar.lz gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.tar.xz gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.tar.zst gsoc2013-epiphany-99f0e389fe80b474204d09bd5e5fa64dd5ebf3a4.zip |
ephy-history-window: correctly handle 2 and 10 days of history
-rw-r--r-- | lib/ephy-prefs.h | 1 | ||||
-rw-r--r-- | src/ephy-history-window.c | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/ephy-prefs.h b/lib/ephy-prefs.h index 9eadad036..f08bce0f9 100644 --- a/lib/ephy-prefs.h +++ b/lib/ephy-prefs.h @@ -48,6 +48,7 @@ typedef enum EPHY_PREFS_STATE_HISTORY_DATE_FILTER_TODAY, EPHY_PREFS_STATE_HISTORY_DATE_FILTER_LAST_TWO_DAYS, EPHY_PREFS_STATE_HISTORY_DATE_FILTER_LAST_THREE_DAYS, + EPHY_PREFS_STATE_HISTORY_DATE_FILTER_LAST_TEN_DAYS, EPHY_PREFS_STATE_HISTORY_DATE_FILTER_EVER, } EphyPrefsStateHistoryDateFilter; diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 18f8e6d79..2cec78d7f 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -969,11 +969,15 @@ setup_time_filters (EphyHistoryWindow *editor, cmp_time = midnight; break; case EPHY_PREFS_STATE_HISTORY_DATE_FILTER_LAST_TWO_DAYS: - days++; + days = 1; cmp_time = midnight; break; case EPHY_PREFS_STATE_HISTORY_DATE_FILTER_LAST_THREE_DAYS: - days++; + days = 2; + cmp_time = midnight; + break; + case EPHY_PREFS_STATE_HISTORY_DATE_FILTER_LAST_TEN_DAYS: + days = 9; cmp_time = midnight; break; default: |