aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-node-view.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-07-15 00:44:35 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-07-15 00:44:35 +0800
commita73d4d600b8be7e21cd6ea9e956f6a7c6c3e4828 (patch)
treef597297100d3eaeb0dc76819a37e43d966f06a84 /lib/widgets/ephy-node-view.h
parente1ddd3e07929a6200ae58272b22c8bb98de323c7 (diff)
downloadgsoc2013-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 'lib/widgets/ephy-node-view.h')
-rw-r--r--lib/widgets/ephy-node-view.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/lib/widgets/ephy-node-view.h b/lib/widgets/ephy-node-view.h
index 9af56e8a5..1896eb233 100644
--- a/lib/widgets/ephy-node-view.h
+++ b/lib/widgets/ephy-node-view.h
@@ -55,10 +55,10 @@ typedef enum
typedef enum
{
- EPHY_NODE_VIEW_AUTO_SORT = 1,
- EPHY_NODE_VIEW_USER_SORT = 2,
- EPHY_NODE_VIEW_EDITABLE = 4,
- EPHY_NODE_VIEW_SEARCHABLE = 8
+ EPHY_NODE_VIEW_SHOW_PRIORITY = 1 << 0,
+ EPHY_NODE_VIEW_SORTABLE = 1 << 1,
+ EPHY_NODE_VIEW_EDITABLE = 1 << 2,
+ EPHY_NODE_VIEW_SEARCHABLE = 1 << 3
} EphyNodeViewFlags;
typedef struct
@@ -81,17 +81,24 @@ void ephy_node_view_enable_dnd (EphyNodeView *view);
GtkTreeViewColumn *ephy_node_view_add_column (EphyNodeView *view,
const char *title,
GType value_type,
- int prop_id,
- int priority_prop_id,
+ guint prop_id,
EphyNodeViewFlags flags,
EphyTreeModelNodeValueFunc icon_func);
int ephy_node_view_add_data_column (EphyNodeView *view,
GType value_type,
- int prop_id,
+ guint prop_id,
EphyTreeModelNodeValueFunc func,
gpointer data);
+void ephy_node_view_set_sort (EphyNodeView *view,
+ GType value_type,
+ guint prop_id,
+ GtkSortType sort_type);
+
+void ephy_node_view_set_priority (EphyNodeView *view,
+ guint priority_prop_id);
+
void ephy_node_view_remove (EphyNodeView *view);
gboolean ephy_node_view_has_selection (EphyNodeView *view,