diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-01-21 20:33:23 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-01-21 20:33:23 +0800 |
commit | 3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4 (patch) | |
tree | f3a6007429aee289b81f6fcc555ead9abfd83caf /embed/ephy-history.c | |
parent | 98a7051020195ab2b8a1174e60ab72e950dda42e (diff) | |
download | gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.tar gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.tar.gz gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.tar.bz2 gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.tar.lz gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.tar.xz gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.tar.zst gsoc2013-epiphany-3b1d26f1fd1107ed5196c8fb48dd40bbf888cda4.zip |
Api changes.
2003-01-21 Marco Pesenti Gritti <marco@it.gnome.org>
* embed/mozilla/BaseProtocolContentHandler.cpp:
* embed/mozilla/StartHereProtocolHandler.cpp:
Api changes.
* embed/ephy-embed-shell.c: (ephy_embed_shell_finalize):
* embed/ephy-favicon-cache.c: (ephy_favicon_cache_finalize):
* embed/ephy-history.c: (ephy_history_host_visited),
(ephy_history_set_page_title), (ephy_history_remove):
* lib/widgets/ephy-spinner.c: (ephy_spinner_expose),
(ephy_spinner_size_request):
* lib/widgets/ephy-spinner.h:
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_finalize):
* src/ephy-shell.c: (ephy_shell_finalize),
(ephy_shell_get_autocompletion):
* src/ephy-spinner-action.c: (create_tool_item):
Nicer spinner size. Fix references problem
and a lot of logs to make it easy to debug it.
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r-- | embed/ephy-history.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c index da304ed6e..f818ceb21 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -500,6 +500,8 @@ ephy_history_host_visited (EphyHistory *eh, GValue value = { 0, }; int visits; + LOG ("Host visited") + visits = ephy_node_get_property_int (host, EPHY_NODE_PAGE_PROP_VISITS); if (visits < 0) visits = 0; @@ -762,20 +764,21 @@ ephy_history_set_page_title (EphyHistory *gh, { EphyNode *node; guint host_id; + GValue value = { 0, }; + + LOG ("Set page title") node = ephy_history_get_page (gh, url); - if (node) - { - GValue value = { 0, }; + if (!node) return; - g_value_init (&value, G_TYPE_STRING); - g_value_set_string (&value, title); - ephy_node_set_property - (node, EPHY_NODE_PAGE_PROP_TITLE, &value); - g_value_unset (&value); - } + g_value_init (&value, G_TYPE_STRING); + g_value_set_string (&value, title); + ephy_node_set_property + (node, EPHY_NODE_PAGE_PROP_TITLE, &value); + g_value_unset (&value); - host_id = ephy_node_get_property_int (node, EPHY_NODE_PAGE_PROP_HOST_ID); + host_id = ephy_node_get_property_int + (node, EPHY_NODE_PAGE_PROP_HOST_ID); if (host_id >= 0) { ephy_history_host_set_title (gh, ephy_node_get_from_id (host_id), @@ -828,6 +831,8 @@ ephy_history_remove (EphyHistory *gh, EphyNode *node) EphyNode *host; int host_id; + LOG ("Remove history item") + host_id = ephy_node_get_property_int (node, EPHY_NODE_PAGE_PROP_HOST_ID); if (host_id < 0) { |