[epiphany] ephy-history-service-urls-table: implement missing sorting modes



commit 1223aeb461e2b08b7b6302faee17e37d8ddff05f
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue Feb 4 21:48:04 2014 +0200

    ephy-history-service-urls-table: implement missing sorting modes

 lib/history/ephy-history-service-urls-table.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/history/ephy-history-service-urls-table.c b/lib/history/ephy-history-service-urls-table.c
index 752ddfa..c9c9058 100644
--- a/lib/history/ephy-history-service-urls-table.c
+++ b/lib/history/ephy-history-service-urls-table.c
@@ -280,6 +280,12 @@ ephy_history_service_find_url_rows (EphyHistoryService *self, EphyHistoryQuery *
   case EPHY_HISTORY_SORT_LEAST_VISITED:
     statement_str = g_string_append (statement_str, "ORDER BY urls.visit_count ");
     break;
+  case EPHY_HISTORY_SORT_MOST_RECENTLY_VISITED:
+    statement_str = g_string_append (statement_str, "ORDER BY urls.last_visit_time DESC ");
+    break;
+  case EPHY_HISTORY_SORT_LEAST_RECENTLY_VISITED:
+    statement_str = g_string_append (statement_str, "ORDER BY urls.last_visit_time ");
+    break;
   default:
     g_warning ("We don't support this sorting method yet.");
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]