[epiphany] EphyHistoryQuery: add a EphyHistorySortType parameter to the query
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyHistoryQuery: add a EphyHistorySortType parameter to the query
- Date: Tue, 6 Mar 2012 20:51:52 +0000 (UTC)
commit 52a0d24d40b26f4cae80f09bca19ea40c429cf84
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]