[libslab] Fix crash when adding a document to favorites from recent documents



commit 119e60b7082c6bc96a8059cb83cbafaeb3f957c9
Author: David Liang <dliang novell com>
Date:   Tue Mar 30 02:24:30 2010 +0200

    Fix crash when adding a document to favorites from recent documents
    
    https://bugzilla.novell.com/show_bug.cgi?id=187879

 libslab/document-tile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libslab/document-tile.c b/libslab/document-tile.c
index 94e5033..84a7484 100644
--- a/libslab/document-tile.c
+++ b/libslab/document-tile.c
@@ -1053,7 +1053,7 @@ user_docs_trigger (Tile *tile, TileEvent *event, TileAction *action)
 
 
 	if (priv->is_bookmarked)
-		bookmark_agent_remove_item (priv->agent, tile->uri);
+                bookmark_agent_remove_item (bookmark_agent_get_instance (BOOKMARK_STORE_USER_DOCS), tile->uri);
 	else {
 		item = g_new0 (BookmarkItem, 1);
 		item->uri       = tile->uri;
@@ -1064,7 +1064,7 @@ user_docs_trigger (Tile *tile, TileEvent *event, TileAction *action)
 			item->app_exec  = (gchar *) g_app_info_get_executable (priv->default_app);
 		}
 
-		bookmark_agent_add_item (priv->agent, item);
+                bookmark_agent_add_item (bookmark_agent_get_instance (BOOKMARK_STORE_USER_DOCS), item);
 		g_free (item);
 	}
 



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