aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-29 21:29:21 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-29 21:29:21 +0800
commit29e6bdcbc9eda0694e67689eabc97070f0911437 (patch)
tree94165ee59f02993004840a1fe42c2a6d37c755d5 /src/bookmarks
parent7638b82e1c60be930d3b9f98e403e21ee61df2f3 (diff)
downloadgsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.tar
gsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.tar.gz
gsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.tar.bz2
gsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.tar.lz
gsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.tar.xz
gsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.tar.zst
gsoc2013-epiphany-29e6bdcbc9eda0694e67689eabc97070f0911437.zip
Separately profile bookmarks menu clean and rebuild.
2004-02-29 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_clean), (ephy_bookmarks_menu_rebuild): Separately profile bookmarks menu clean and rebuild.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks-menu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-menu.c b/src/bookmarks/ephy-bookmarks-menu.c
index c3e8e944c..18c00aa41 100644
--- a/src/bookmarks/ephy-bookmarks-menu.c
+++ b/src/bookmarks/ephy-bookmarks-menu.c
@@ -92,6 +92,8 @@ ephy_bookmarks_menu_clean (EphyBookmarksMenu *menu)
{
EphyBookmarksMenuPrivate *p = menu->priv;
+ START_PROFILER ("Cleaning bookmarks menu")
+
if (p->ui_id > 0)
{
gtk_ui_manager_remove_ui (p->merge, p->ui_id);
@@ -104,6 +106,8 @@ ephy_bookmarks_menu_clean (EphyBookmarksMenu *menu)
gtk_ui_manager_remove_action_group (p->merge, p->action_group);
g_object_unref (p->action_group);
}
+
+ STOP_PROFILER ("Cleaning bookmarks menu")
}
static void
@@ -234,10 +238,10 @@ ephy_bookmarks_menu_rebuild (EphyBookmarksMenu *menu)
LOG ("Rebuilding bookmarks menu")
- START_PROFILER ("Rebuilding bookmarks menu")
-
ephy_bookmarks_menu_clean (menu);
+ START_PROFILER ("Rebuilding bookmarks menu")
+
topics = ephy_bookmarks_get_keywords (p->bookmarks);
not_categorized = ephy_bookmarks_get_not_categorized (p->bookmarks);
children = ephy_node_get_children (topics);