[epiphany/history-rewrite-second: 21/23] EphyHistoryQuery: add a EphyHistorySortType parameter to the query
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/history-rewrite-second: 21/23] EphyHistoryQuery: add a EphyHistorySortType parameter to the query
- Date: Tue, 10 Jan 2012 17:25:11 +0000 (UTC)
commit 8532b03dd053a0e0a35968861bfeb0b11b39e7e7
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Jan 10 19:17:51 2012 +0200
EphyHistoryQuery: add a EphyHistorySortType parameter to the query
lib/history/ephy-history-types.c | 1 +
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 ad91e40..bb83216 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 0f50ec1..8d32c5e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]