aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-node-view.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-03-24 04:10:33 +0800
committerXan Lopez <xan@src.gnome.org>2003-03-24 04:10:33 +0800
commit0e595f395732cc4c2e6a18dd460beb9335f81188 (patch)
tree1540cf39044fb24a113b399d008b4933503436ca /src/bookmarks/ephy-node-view.c
parent9e061fdc100ec5c71288049e4daffedd4253733d (diff)
downloadgsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.tar
gsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.tar.gz
gsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.tar.bz2
gsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.tar.lz
gsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.tar.xz
gsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.tar.zst
gsoc2013-epiphany-0e595f395732cc4c2e6a18dd460beb9335f81188.zip
Some ground work on the PRIORITY property, change it from bool to int, add
Some ground work on the PRIORITY property, change it from bool to int, add more priority types (ALL, SPECIAL, NORMAL), and use it in the WEIGTH_TEXT property (just ALL is bold now).
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r--src/bookmarks/ephy-node-view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c
index e91f7f912..afa9505c4 100644
--- a/src/bookmarks/ephy-node-view.c
+++ b/src/bookmarks/ephy-node-view.c
@@ -458,6 +458,14 @@ ephy_node_view_sort_func (GtkTreeModel *model,
column == EPHY_TREE_MODEL_NODE_COL_KEYWORD)
retval = strcmp (stra, strb);
break;
+ case G_TYPE_INT:
+ if (g_value_get_int (&a_value) < g_value_get_int (&b_value))
+ retval = -1;
+ else if (g_value_get_int (&a_value) == g_value_get_int (&b_value))
+ retval = 0;
+ else
+ retval = 1;
+ break;
case G_TYPE_BOOLEAN:
if (g_value_get_boolean (&a_value) < g_value_get_boolean (&b_value))
retval = -1;