diff options
Diffstat (limited to 'src/bookmarks/ephy-topics-entry.c')
-rw-r--r-- | src/bookmarks/ephy-topics-entry.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-topics-entry.c b/src/bookmarks/ephy-topics-entry.c index 385fe2eea..53de7535e 100644 --- a/src/bookmarks/ephy-topics-entry.c +++ b/src/bookmarks/ephy-topics-entry.c @@ -168,15 +168,16 @@ update_widget (EphyTopicsEntry *entry) gtk_editable_delete_text (editable, 0, -1); } - for (pos = -1, i = 0; i < topics->len; i++) + for (pos = 0, i = 0; i < topics->len; i++) { node = g_ptr_array_index (topics, i); title = ephy_node_get_property_string (node, EPHY_NODE_KEYWORD_PROP_NAME); if (!is_focus && ephy_node_has_child (node, priv->bookmark)) { + if (pos > 0) + gtk_editable_insert_text (editable, ", ", -1, &pos); gtk_editable_insert_text (editable, title, -1, &pos); - gtk_editable_insert_text (editable, ", ", -1, &pos); } tmp1 = g_utf8_casefold (title, -1); |