From 8d45bae07cc322c80025e2191d691ef33939a201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Mon, 13 Mar 2006 17:07:12 +0000 Subject: [PATCH] Save a QofBook instead of its GUID in the list of books in plugin pages. This should renable the deletion of some plugin pages. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13618 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/gnome-utils/gnc-plugin-page.c | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index b23c464c6b..127bf0fe99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-13 Andreas Köhler + + * src/gnome-utils/gnc-plugin-page.c (gnc_plugin_page_add_book): + Save a QofBook instead of its GUID in the list of books. This + should renable the deletion of some plugin pages. + 2006-03-13 Christian Stimming * */*.scm: Reduce debug stack size from 2,000,000 to 200,000 diff --git a/src/gnome-utils/gnc-plugin-page.c b/src/gnome-utils/gnc-plugin-page.c index 97b5a7c726..f57a2c0b1a 100644 --- a/src/gnome-utils/gnc-plugin-page.c +++ b/src/gnome-utils/gnc-plugin-page.c @@ -679,22 +679,16 @@ void gnc_plugin_page_add_book (GncPluginPage *page, QofBook *book) { GncPluginPagePrivate *priv; - GUID *guid; g_return_if_fail (GNC_IS_PLUGIN_PAGE (page)); g_return_if_fail (book != NULL); priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page); - - guid = guid_malloc(); - *guid = *qof_book_get_guid(book); - priv->books = g_list_append(priv->books, guid); + priv->books = g_list_append(priv->books, book); } -/* Query a page to see if it has a reference to a given book. This - * function takes a guid instead of a QofBook because that's what the - * engine event mechanism provides. */ +/* Query a page to see if it has a reference to a given book. */ gboolean gnc_plugin_page_has_book (GncPluginPage *page, QofBook *book) {