diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-03-25 03:18:32 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-03-25 03:18:32 +0800 |
commit | 1b741a09f48f593702e998d83bd11b8ce4dd1793 (patch) | |
tree | f089fc8ff965807306a3f68966610c39266a24b4 /src/bookmarks/ephy-tree-model-node.c | |
parent | bb4528f9eef4b9417a4d7a2c7c012d8a3136170a (diff) | |
download | gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.tar gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.tar.gz gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.tar.bz2 gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.tar.lz gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.tar.xz gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.tar.zst gsoc2013-epiphany-1b741a09f48f593702e998d83bd11b8ce4dd1793.zip |
s/EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY/EPHY_NODE_KEYWORD_PROP_PRIORITY/ Add
s/EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY/EPHY_NODE_KEYWORD_PROP_PRIORITY/
Add a "Most Visited" topic, featuring the 10 most visited
bookmarks.
Now special topics are bold too.
Diffstat (limited to 'src/bookmarks/ephy-tree-model-node.c')
-rw-r--r-- | src/bookmarks/ephy-tree-model-node.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bookmarks/ephy-tree-model-node.c b/src/bookmarks/ephy-tree-model-node.c index bf8e0570c..f1a6fe758 100644 --- a/src/bookmarks/ephy-tree-model-node.c +++ b/src/bookmarks/ephy-tree-model-node.c @@ -510,15 +510,16 @@ ephy_tree_model_node_get_value (GtkTreeModel *tree_model, break; case EPHY_TREE_MODEL_NODE_COL_TITLE_WEIGHT: g_value_init (value, G_TYPE_INT); - /* Only priority ALL (0) has bold text */ - if (ephy_node_get_property_int (node, EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY)) - g_value_set_int (value, PANGO_WEIGHT_NORMAL); - else + priority = ephy_node_get_property_int (node, EPHY_NODE_KEYWORD_PROP_PRIORITY); + if (priority == EPHY_TREE_MODEL_ALL_PRIORITY || + priority == EPHY_TREE_MODEL_SPECIAL_PRIORITY) g_value_set_int (value, PANGO_WEIGHT_BOLD); + else + g_value_set_int (value, PANGO_WEIGHT_NORMAL); break; case EPHY_TREE_MODEL_NODE_COL_PRIORITY: g_value_init (value, G_TYPE_INT); - priority = ephy_node_get_property_int (node, EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY); + priority = ephy_node_get_property_int (node, EPHY_NODE_KEYWORD_PROP_PRIORITY); if (priority == EPHY_TREE_MODEL_ALL_PRIORITY || priority == EPHY_TREE_MODEL_SPECIAL_PRIORITY) g_value_set_int (value, priority); |