diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-01-11 01:17:51 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-07 04:49:44 +0800 |
commit | 52a0d24d40b26f4cae80f09bca19ea40c429cf84 (patch) | |
tree | c94ff77e566169c472752013f801a96ab16bf79b /lib | |
parent | 6267e6e241400daf0d986ea2e57d673beac06208 (diff) | |
download | gsoc2013-epiphany-52a0d24d40b26f4cae80f09bca19ea40c429cf84.tar.gz gsoc2013-epiphany-52a0d24d40b26f4cae80f09bca19ea40c429cf84.tar.zst gsoc2013-epiphany-52a0d24d40b26f4cae80f09bca19ea40c429cf84.zip |
EphyHistoryQuery: add a EphyHistorySortType parameter to the query
Diffstat (limited to 'lib')
-rw-r--r-- | lib/history/ephy-history-types.c | 1 | ||||
-rw-r--r-- | lib/history/ephy-history-types.h | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/history/ephy-history-types.c b/lib/history/ephy-history-types.c index ad91e409b..bb8321653 100644 --- a/lib/history/ephy-history-types.c +++ b/lib/history/ephy-history-types.c @@ -209,6 +209,7 @@ ephy_history_query_copy (EphyHistoryQuery *query) copy->from = query->from; copy->to = query->to; copy->limit = query->limit; + copy->sort_type = query->sort_type; for (iter = query->substring_list; iter != NULL; iter = iter->next) { copy->substring_list = g_list_prepend (copy->substring_list, g_strdup (iter->data)); diff --git a/lib/history/ephy-history-types.h b/lib/history/ephy-history-types.h index 0f50ec1f9..8d32c5e6c 100644 --- a/lib/history/ephy-history-types.h +++ b/lib/history/ephy-history-types.h @@ -42,6 +42,14 @@ typedef enum { EPHY_HISTORY_URL_ZOOM_LEVEL } EphyHistoryURLProperty; +typedef enum { + EPHY_HISTORY_SORT_NONE = 0, + EPHY_HISTORY_SORT_MRV, /* Most recently visited first. */ + EPHY_HISTORY_SORT_LRV, /* Least recently visited first. */ + EPHY_HISTORY_SORT_MV, /* Most visited first. */ + EPHY_HISTORY_SORT_LV /* Least visited first. */ +} EphyHistorySortType; + typedef struct { int id; @@ -76,6 +84,7 @@ typedef struct _EphyHistoryQuery gint64 to; guint limit; GList* substring_list; + EphyHistorySortType sort_type; } EphyHistoryQuery; EphyHistoryPageVisit * ephy_history_page_visit_new (const char *url, gint64 visit_time, EphyHistoryPageVisitType visit_type); |