diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2004-07-15 00:44:35 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-07-15 00:44:35 +0800 |
commit | a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828 (patch) | |
tree | f597297100d3eaeb0dc76819a37e43d966f06a84 /src/ephy-history-window.c | |
parent | e1ddd3e07929a6200ae58272b22c8bb98de323c7 (diff) | |
download | gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.tar gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.tar.gz gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.tar.bz2 gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.tar.lz gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.tar.xz gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.tar.zst gsoc2013-epiphany-a73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828.zip |
Improve sort/priority API.
2004-07-14 Marco Pesenti Gritti <marco@gnome.org>
* lib/widgets/ephy-node-view.c: (compare_string_values),
(ephy_node_view_sort_func), (ephy_node_view_add_data_column),
(ephy_node_view_add_column), (ephy_node_view_set_priority),
(ephy_node_view_set_sort), (ephy_node_view_init):
* lib/widgets/ephy-node-view.h:
Improve sort/priority API.
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_construct):
* src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init):
* src/ephy-history-window.c: (ephy_history_window_construct):
Sort history items by last visit
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r-- | src/ephy-history-window.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 76da44ec3..69f3a3c91 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -1272,10 +1272,14 @@ ephy_history_window_construct (EphyHistoryWindow *editor) ephy_node_view_add_column (EPHY_NODE_VIEW (sites_view), _("Sites"), G_TYPE_STRING, EPHY_NODE_PAGE_PROP_TITLE, - EPHY_NODE_PAGE_PROP_PRIORITY, - EPHY_NODE_VIEW_AUTO_SORT | - EPHY_NODE_VIEW_SEARCHABLE, + EPHY_NODE_VIEW_SEARCHABLE | + EPHY_NODE_VIEW_SHOW_PRIORITY, provide_favicon); + ephy_node_view_set_priority (EPHY_NODE_VIEW (sites_view), + EPHY_NODE_PAGE_PROP_PRIORITY); + ephy_node_view_set_sort (EPHY_NODE_VIEW (sites_view), G_TYPE_STRING, + EPHY_NODE_PAGE_PROP_TITLE, + GTK_SORT_ASCENDING); gtk_container_add (GTK_CONTAINER (scrolled_window), sites_view); gtk_widget_show (sites_view); editor->priv->sites_view = sites_view; @@ -1325,15 +1329,18 @@ ephy_history_window_construct (EphyHistoryWindow *editor) n_page_drag_types, col_id); col = ephy_node_view_add_column (EPHY_NODE_VIEW (pages_view), _("Title"), G_TYPE_STRING, EPHY_NODE_PAGE_PROP_TITLE, - -1, EPHY_NODE_VIEW_USER_SORT | + EPHY_NODE_VIEW_SORTABLE | EPHY_NODE_VIEW_SEARCHABLE, NULL); gtk_tree_view_column_set_max_width (col, 250); editor->priv->title_col = col; col = ephy_node_view_add_column (EPHY_NODE_VIEW (pages_view), _("Address"), G_TYPE_STRING, EPHY_NODE_PAGE_PROP_LOCATION, - -1, EPHY_NODE_VIEW_USER_SORT, NULL); + EPHY_NODE_VIEW_SORTABLE, NULL); gtk_tree_view_column_set_max_width (col, 200); editor->priv->address_col = col; + ephy_node_view_set_sort (EPHY_NODE_VIEW (pages_view), G_TYPE_INT, + EPHY_NODE_PAGE_PROP_LAST_VISIT, + GTK_SORT_DESCENDING); gtk_container_add (GTK_CONTAINER (scrolled_window), pages_view); gtk_widget_show (pages_view); editor->priv->pages_view = pages_view; |