aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-menu.c')
-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);