[Gnucash-changes] r13618 - gnucash/trunk - Save a QofBook instead
of its GUID in the list of books in plugin pages. This should
renable the deletion of some plugin pages.
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Mar 13 12:07:13 EST 2006
Author: andi5
Date: 2006-03-13 12:07:12 -0500 (Mon, 13 Mar 2006)
New Revision: 13618
Trac: http://svn.gnucash.org/trac/changeset/13618
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-plugin-page.c
Log:
Save a QofBook instead of its GUID in the list of books in plugin pages. This should renable the deletion of some plugin pages.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-03-13 16:54:14 UTC (rev 13617)
+++ gnucash/trunk/ChangeLog 2006-03-13 17:07:12 UTC (rev 13618)
@@ -1,3 +1,9 @@
+2006-03-13 Andreas Köhler <andi5.py at gmx.net>
+
+ * 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 <stimming at tuhh.de>
* */*.scm: Reduce debug stack size from 2,000,000 to 200,000
Modified: gnucash/trunk/src/gnome-utils/gnc-plugin-page.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-plugin-page.c 2006-03-13 16:54:14 UTC (rev 13617)
+++ gnucash/trunk/src/gnome-utils/gnc-plugin-page.c 2006-03-13 17:07:12 UTC (rev 13618)
@@ -679,22 +679,16 @@
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)
{
More information about the gnucash-changes
mailing list