aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmarks-menu.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c460388f..a0223ced1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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.
+
+2004-02-29 Christian Persch <chpe@cvs.gnome.org>
+
* embed/ephy-embed-persist.c: (ephy_embed_persist_class_init):
* embed/ephy-embed-persist.h:
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);