the pages. Add a cancel callback to the pages (the druid's main
cancel callback is never called). Now we get our signals
correct. Save a reference to the window so we can destroy it..
Use gtk_widget_destroy() instead of g_object_unref().
* src/import-export/qif-import/gnc-druid-test.[ch]: add some code
to test the new druid framework. Build's a test druid.
* src/import-export/qif-import/Makefile.am: build new test code
* src/import-export/qif-import/gnc-plugin-qif-import*: hook in
the new druid test code; add a new menu item to test the druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9787 57a11ea4-9604-0410-9ed3-97b8803252fd
default next/previous page in the druid. This will automatically
walk through the providers to find the next real page.
* gnc-druid-gnome.c: hook in handlers for "next" and "back" signals
for default page moves. This should allow us to constantly keep
track of the current provider.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9778 57a11ea4-9604-0410-9ed3-97b8803252fd
build the provider-desc in one function.
* src/app-utils/gnc-druid-provider.[ch]: remove get_pages API;
the sub-class should just insert the list of pages and let
us deal with it. Also added a last_page() method.
* src/app-utils/gnc-druid.c: make sure to delete the providers
when we shut down.
* src/gnome-utils/gnc-druid-gnome*.h: move the definition of the
gnome UI to a header that actually get's installed as opposed to
an internal header.
* src/gnome-utils/gnc-druid-provider-edge-gnome.[ch]: Implement
a gnome-druid edge-page (first/last page in the druid). Probably
still need to hook into the next/prev buttons.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9777 57a11ea4-9604-0410-9ed3-97b8803252fd
(I decided I don't need a special gnc-druid-provider-gnome just to
add a get_pages method, as everything would need it anyways).
* src/gnome-utils/gnc-druid-gnome.c: use the get_pages() method
to actually build the druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9774 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/gnc-druid-gnome.[ch]: gnome implementation of gnc-druid
* src/app-utils/gnc-druid*:
- move the provider-building into the generic class and add an
"append_provider" method to the druid class. Use that when
building the druid.
- add a ui_type to the druid class and use that when building providers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9773 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/app-utils/gnc-druid-provider-desc-edge.*: provider descriptor
for edge pages (the first and last page of the druid).
* src/app-utils/gnc-druid*:
- add class macros
- add a title to the basic provider desc and clean it up.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9771 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix the actual problem, all the ...ReturnGUID() #define's which
don't check that it's passed a NULL value.
* src/engine/Transaction.h:
* src/engine/Account.h:
Fix ...ReturnGUID() to check whether it was passed a NULL object
and, if so, return the null GUID instead of crashing.
* src/business/business-core/gncCustomer.h:
* src/business/business-core/gncEmployee.h:
* src/business/business-core/gncInvoice.h:
* src/business/business-core/gncJob.h:
* src/business/business-core/gncTaxTable.h:
* src/business/business-core/gncVendor.h:
Fix ...RetGUID() to check whether it was passed a NULL object
and, if so, return the null GUID instead of crashing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9759 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/qofinstance.c: return a "valid" GUID even if passed a NULL
object, because lots of code assumes you can get a guid all the time.
So, just return guid_null() instead of NULL. Fixes a SEGV.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9744 57a11ea4-9604-0410-9ed3-97b8803252fd
up code and regularize naming scheme. Add a new column to the account
tree.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9709 57a11ea4-9604-0410-9ed3-97b8803252fd
Make commodities and namespaces Qof Instances. Add more events
related to commodities and namespaces. Require the book when creating
a new commodity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9704 57a11ea4-9604-0410-9ed3-97b8803252fd
called multiple times in gtk2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9666 57a11ea4-9604-0410-9ed3-97b8803252fd
no new functionality can easily be added to the view.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9664 57a11ea4-9604-0410-9ed3-97b8803252fd