gnome-main-menu r428 - trunk/libslab



Author: federico
Date: Sat Apr  5 00:44:01 2008
New Revision: 428
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=428&view=rev

Log:
Don't emit notifications for BookmarkAgent of type recently-used when it updates itself

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:44:01 2008
@@ -739,7 +739,11 @@
 			g_bookmark_file_get_icon (priv->store, uris_ordered [i], & priv->items [i]->icon, NULL, NULL);
 		}
 
-		g_object_notify (G_OBJECT (this), BOOKMARK_AGENT_ITEMS_PROP);
+		/* Since the bookmark store for recently-used items is updated by the caller of BookmarkAgent,
+		 * we don't emit notifications in that case.  The caller will know when to update itself.
+		 */
+		if (!TYPE_IS_RECENT (priv->type))
+			g_object_notify (G_OBJECT (this), BOOKMARK_AGENT_ITEMS_PROP);
 	}
 
 	if (store_corrupted)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]