gnome-main-menu r414 - trunk/libslab
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-main-menu r414 - trunk/libslab
- Date: Sat, 5 Apr 2008 00:40:28 +0100 (BST)
Author: federico
Date: Sat Apr 5 00:40:28 2008
New Revision: 414
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=414&view=rev
Log:
Checkpoint loading the recent-store
Signed-off-by: Federico Mena Quintero <federico gnu org>
Modified:
trunk/libslab/bookmark-agent.c
Modified: trunk/libslab/bookmark-agent.c
==============================================================================
--- trunk/libslab/bookmark-agent.c (original)
+++ trunk/libslab/bookmark-agent.c Sat Apr 5 00:40:28 2008
@@ -767,9 +767,17 @@
GError *error = NULL;
gint i;
+ gboolean success;
+ if (!priv->store_path)
+ success = FALSE;
+ else {
+ libslab_checkpoint ("load_xbel_store(): start loading %s", priv->store_path);
+ success = g_bookmark_file_load_from_file (priv->store, priv->store_path, & error);
+ libslab_checkpoint ("load_xbel_store(): end loading %s", priv->store_path);
+ }
- if (! (priv->store_path && g_bookmark_file_load_from_file (priv->store, priv->store_path, & error))) {
+ if (!success) {
g_bookmark_file_free (priv->store);
priv->store = g_bookmark_file_new ();
@@ -780,10 +788,14 @@
return;
}
+ libslab_checkpoint ("load_xbel_store(): start creating items from %s", priv->store_path);
+
uris = g_bookmark_file_get_uris (priv->store, NULL);
for (i = 0; uris && uris [i]; ++i)
priv->create_item (this, uris [i]);
+
+ libslab_checkpoint ("load_xbel_store(): end creating items from %s", priv->store_path);
}
static void
@@ -867,8 +879,12 @@
store = g_bookmark_file_new ();
+
+ libslab_checkpoint ("load_recent_store(): start loading %s", priv->store_path);
g_bookmark_file_load_from_file (store, priv->store_path, NULL);
+ libslab_checkpoint ("load_recent_store(): end loading %s", priv->store_path);
+ libslab_checkpoint ("load_recent_store(): start processing items from %s", priv->store_path);
uris = g_bookmark_file_get_uris (store, NULL);
for (i = 0; uris && uris [i]; ++i) {
@@ -902,6 +918,8 @@
bookmark_item_free (item);
}
+
+ libslab_checkpoint ("load_recent_store(): end processing items from %s", priv->store_path);
}
static gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]