diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-03-22 23:15:07 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-03-22 23:15:07 +0800 |
commit | 63135332334125311908d415423cd15602cd6535 (patch) | |
tree | a810ec0e8ceced82d4003f9bf0d1d4d449260097 /src/bookmarks/ephy-topics-selector.c | |
parent | 7038fa5c1a3d6eee199e0731e1fae8430498eeab (diff) | |
download | gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.tar gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.tar.gz gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.tar.bz2 gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.tar.lz gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.tar.xz gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.tar.zst gsoc2013-epiphany-63135332334125311908d415423cd15602cd6535.zip |
Some more bookmarks work ...
2003-03-22 Marco Pesenti Gritti <marco@it.gnome.org>
* data/ui/epiphany-bookmark-editor-ui.xml.in:
* src/bookmarks/ephy-bookmark-properties.c: (update_entry),
(title_entry_changed_cb), (location_entry_changed_cb), (build_ui):
* src/bookmarks/ephy-bookmarks-editor.c: (cmd_add_topic),
(cmd_remove_topic), (cmd_rename_bookmark),
(cmd_open_bookmarks_in_tabs), (cmd_open_bookmarks_in_browser),
(cmd_remove_bookmarks), (cmd_bookmark_properties), (add_widget),
(ephy_bookmarks_editor_construct):
* src/bookmarks/ephy-bookmarks.c: (bookmarks_removed_cb),
(ephy_bookmarks_has_keyword), (ephy_bookmarks_unset_keyword):
* src/bookmarks/ephy-bookmarks.h:
* src/bookmarks/ephy-new-bookmark.c: (build_editing_table):
* src/bookmarks/ephy-topics-selector.c: (fill_model),
(topic_toggled), (ephy_topics_selector_new):
* src/bookmarks/ephy-topics-selector.h:
Some more bookmarks work ...
Diffstat (limited to 'src/bookmarks/ephy-topics-selector.c')
-rw-r--r-- | src/bookmarks/ephy-topics-selector.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c index f0c64b59d..9ebccb97e 100644 --- a/src/bookmarks/ephy-topics-selector.c +++ b/src/bookmarks/ephy-topics-selector.c @@ -201,7 +201,7 @@ fill_model (EphyTopicsSelector *editor) { EphyNode *kid; const char *name; - gboolean has_keyword; + gboolean has_keyword = FALSE; gboolean real_topic; GtkTreeIter iter; @@ -209,7 +209,14 @@ fill_model (EphyTopicsSelector *editor) name = ephy_node_get_property_string (kid, EPHY_NODE_KEYWORD_PROP_NAME); - has_keyword = FALSE; + + if (editor->priv->bookmark != NULL) + { + has_keyword = ephy_bookmarks_has_keyword + (editor->priv->bookmarks, kid, + editor->priv->bookmark); + } + real_topic = !ephy_node_get_property_boolean (kid, EPHY_NODE_KEYWORD_PROP_ALL_PRIORITY); @@ -242,6 +249,7 @@ topic_toggled (GtkCellRendererToggle *cell, gtk_list_store_set (GTK_LIST_STORE (model), &iter, COL_HAS_TOPIC, has_topic, -1); + ephy_topics_selector_apply (selector); } void @@ -328,7 +336,8 @@ ephy_topics_selector_init (EphyTopicsSelector *editor) } GtkWidget * -ephy_topics_selector_new (EphyBookmarks *bookmarks) +ephy_topics_selector_new (EphyBookmarks *bookmarks, + EphyNode *bookmark) { EphyTopicsSelector *editor; @@ -337,6 +346,7 @@ ephy_topics_selector_new (EphyBookmarks *bookmarks) editor = EPHY_TOPICS_SELECTOR (g_object_new (EPHY_TYPE_TOPIC_SELECTOR, "bookmarks", bookmarks, + "bookmark", bookmark, "hadjustment", NULL, "vadjustment", NULL, "hscrollbar_policy", GTK_POLICY_AUTOMATIC, |