mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
7da11565e0
commit
8d45bae07c
@ -1,3 +1,9 @@
|
|||||||
|
2006-03-13 Andreas Köhler <andi5.py@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@tuhh.de>
|
2006-03-13 Christian Stimming <stimming@tuhh.de>
|
||||||
|
|
||||||
* */*.scm: Reduce debug stack size from 2,000,000 to 200,000
|
* */*.scm: Reduce debug stack size from 2,000,000 to 200,000
|
||||||
|
@ -679,22 +679,16 @@ void
|
|||||||
gnc_plugin_page_add_book (GncPluginPage *page, QofBook *book)
|
gnc_plugin_page_add_book (GncPluginPage *page, QofBook *book)
|
||||||
{
|
{
|
||||||
GncPluginPagePrivate *priv;
|
GncPluginPagePrivate *priv;
|
||||||
GUID *guid;
|
|
||||||
|
|
||||||
g_return_if_fail (GNC_IS_PLUGIN_PAGE (page));
|
g_return_if_fail (GNC_IS_PLUGIN_PAGE (page));
|
||||||
g_return_if_fail (book != NULL);
|
g_return_if_fail (book != NULL);
|
||||||
|
|
||||||
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);
|
||||||
|
priv->books = g_list_append(priv->books, book);
|
||||||
guid = guid_malloc();
|
|
||||||
*guid = *qof_book_get_guid(book);
|
|
||||||
priv->books = g_list_append(priv->books, guid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Query a page to see if it has a reference to a given book. This
|
/* Query a page to see if it has a reference to a given book. */
|
||||||
* function takes a guid instead of a QofBook because that's what the
|
|
||||||
* engine event mechanism provides. */
|
|
||||||
gboolean
|
gboolean
|
||||||
gnc_plugin_page_has_book (GncPluginPage *page, QofBook *book)
|
gnc_plugin_page_has_book (GncPluginPage *page, QofBook *book)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user