From 29e6bdcbc9eda0694e67689eabc97070f0911437 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 29 Feb 2004 13:29:21 +0000 Subject: Separately profile bookmarks menu clean and rebuild. 2004-02-29 Christian Persch * src/bookmarks/ephy-bookmarks-menu.c: (ephy_bookmarks_menu_clean), (ephy_bookmarks_menu_rebuild): Separately profile bookmarks menu clean and rebuild. --- src/bookmarks/ephy-bookmarks-menu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/bookmarks') 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); -- cgit v1.2.3