aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-tree-model-node.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-02-26 20:21:43 +0800
committerXan Lopez <xan@src.gnome.org>2003-02-26 20:21:43 +0800
commit534e068d3e702d23643f8a0bc7d84e3b3e0b990f (patch)
tree5bb2e2c6e264c409942fce697b3d814ba451cdba /src/bookmarks/ephy-tree-model-node.c
parentdb6e87f093cbd92f35b65f8b9875c07e01d3be30 (diff)
downloadgsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.tar
gsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.tar.gz
gsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.tar.bz2
gsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.tar.lz
gsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.tar.xz
gsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.tar.zst
gsoc2013-epiphany-534e068d3e702d23643f8a0bc7d84e3b3e0b990f.zip
BE auto sort.
BE auto sort.
Diffstat (limited to 'src/bookmarks/ephy-tree-model-node.c')
-rw-r--r--src/bookmarks/ephy-tree-model-node.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-tree-model-node.c b/src/bookmarks/ephy-tree-model-node.c
index 41bdc235e..e62acbad7 100644
--- a/src/bookmarks/ephy-tree-model-node.c
+++ b/src/bookmarks/ephy-tree-model-node.c
@@ -360,7 +360,10 @@ ephy_tree_model_node_get_column_type (GtkTreeModel *tree_model,
case EPHY_TREE_MODEL_NODE_COL_BOOKMARK:
case EPHY_TREE_MODEL_NODE_COL_KEYWORD:
return G_TYPE_STRING;
+ case EPHY_TREE_MODEL_NODE_COL_TITLE_WEIGHT:
+ return G_TYPE_INT;
case EPHY_TREE_MODEL_NODE_COL_VISIBLE:
+ case EPHY_TREE_MODEL_NODE_COL_PRIORITY:
return G_TYPE_BOOLEAN;
case EPHY_TREE_MODEL_NODE_COL_ICON:
return GDK_TYPE_PIXBUF;
@@ -504,6 +507,18 @@ ephy_tree_model_node_get_value (GtkTreeModel *tree_model,
g_value_set_boolean (value, TRUE);
}
break;
+ case EPHY_TREE_MODEL_NODE_COL_TITLE_WEIGHT:
+ g_value_init (value, G_TYPE_INT);
+ if (!ephy_node_get_property_boolean (node, EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY))
+ g_value_set_int (value, PANGO_WEIGHT_NORMAL);
+ else
+ g_value_set_int (value, PANGO_WEIGHT_BOLD);
+ break;
+ case EPHY_TREE_MODEL_NODE_COL_PRIORITY:
+ g_value_init (value, G_TYPE_BOOLEAN);
+ g_value_set_boolean (value, !ephy_node_get_property_boolean (node,
+ EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY));
+ break;
default:
g_assert_not_reached ();
break;
@@ -714,6 +729,8 @@ ephy_tree_model_node_column_get_type (void)
{ EPHY_TREE_MODEL_NODE_COL_KEYWORD, "EPHY_TREE_MODEL_NODE_COL_KEYWORD", "keyword" },
{ EPHY_TREE_MODEL_NODE_COL_ICON, "EPHY_TREE_MODEL_NODE_COL_ICON", "icon" },
{ EPHY_TREE_MODEL_NODE_COL_VISIBLE, "EPHY_TREE_MODEL_NODE_COL_VISIBLE", "visible" },
+ { EPHY_TREE_MODEL_NODE_COL_TITLE_WEIGHT, "EPHY_TREE_MODEL_NODE_COL_TITLE_WEIGHT", "title weight" },
+ { EPHY_TREE_MODEL_NODE_COL_PRIORITY, "EPHY_TREE_MODEL_NODE_COL_PRIORITY", "priority" },
{ 0, 0, 0 }
};