diff --git a/src/business/business-gnome/business-gnome-utils.c b/src/business/business-gnome/business-gnome-utils.c index d61534c4b1..81303ce7eb 100644 --- a/src/business/business-gnome/business-gnome-utils.c +++ b/src/business/business-gnome/business-gnome-utils.c @@ -57,7 +57,7 @@ typedef enum { } GNCSearchType; static GtkWidget * gnc_owner_new (GtkWidget *label, GtkWidget *hbox, - GNCBook *book, GncOwner *owner, + QofBook *book, GncOwner *owner, GNCSearchType type) { GtkWidget *edit; @@ -129,7 +129,7 @@ static GtkWidget * gnc_owner_new (GtkWidget *label, GtkWidget *hbox, } GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox, - GNCBook *book, GncOwner *owner) + QofBook *book, GncOwner *owner) { g_return_val_if_fail (hbox != NULL, NULL); g_return_val_if_fail (book != NULL, NULL); @@ -139,7 +139,7 @@ GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox, } GtkWidget * gnc_owner_edit_create (GtkWidget *label, GtkWidget *hbox, - GNCBook *book, GncOwner *owner) + QofBook *book, GncOwner *owner) { g_return_val_if_fail (hbox != NULL, NULL); g_return_val_if_fail (book != NULL, NULL); @@ -175,7 +175,7 @@ void gnc_owner_set_owner (GtkWidget *widget, GncOwner *owner) typedef struct _invoice_select_info { GtkWidget *label; - GNCBook *book; + QofBook *book; GncOwner owner; gboolean have_owner; } GncISI; @@ -225,7 +225,7 @@ gnc_invoice_select_search_set_label(GncISI* isi) gtk_label_set_text(GTK_LABEL(isi->label), label); } -GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, GNCBook *book, +GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, QofBook *book, const GncOwner *owner, GncInvoice *invoice, GtkWidget *label) @@ -304,7 +304,7 @@ void gnc_invoice_set_owner (GtkWidget *widget, GncOwner *owner) } void -gnc_fill_account_select_combo (GtkWidget *combo, GNCBook *book, +gnc_fill_account_select_combo (GtkWidget *combo, QofBook *book, GList *acct_types, GList *acct_commodities) { GtkListStore *store; @@ -396,10 +396,10 @@ typedef const char * (*GenericLookup_t)(gpointer); typedef struct { gint component_id; GtkWidget * omenu; - GNCBook * book; + QofBook * book; gboolean none_ok; const char * (*get_name)(gpointer); - GList * (*get_list)(GNCBook*); + GList * (*get_list)(QofBook*); gboolean building_menu; gpointer result; @@ -493,9 +493,9 @@ generic_omenu_refresh_handler (GHashTable *changes, gpointer user_data) } static OpMenuData * -make_generic_optionmenu (GtkWidget *omenu, GNCBook *book, +make_generic_optionmenu (GtkWidget *omenu, QofBook *book, gboolean none_ok, GNCIdType type_name, - GList * (*get_list)(GNCBook*), + GList * (*get_list)(QofBook*), GenericLookup_t get_name, gpointer *result) { @@ -610,7 +610,7 @@ gnc_ui_optionmenu_set_value (GtkWidget *omenu, gpointer data) * created. */ void -gnc_ui_billterms_optionmenu (GtkWidget *omenu, GNCBook *book, +gnc_ui_billterms_optionmenu (GtkWidget *omenu, QofBook *book, gboolean none_ok, GncBillTerm **choice) { if (!omenu || !book) return; @@ -622,7 +622,7 @@ gnc_ui_billterms_optionmenu (GtkWidget *omenu, GNCBook *book, } void -gnc_ui_taxtables_optionmenu (GtkWidget *omenu, GNCBook *book, +gnc_ui_taxtables_optionmenu (GtkWidget *omenu, QofBook *book, gboolean none_ok, GncTaxTable **choice) { if (!omenu || !book) return; diff --git a/src/business/business-gnome/business-gnome-utils.h b/src/business/business-gnome/business-gnome-utils.h index 330416711f..5e401c3861 100644 --- a/src/business/business-gnome/business-gnome-utils.h +++ b/src/business/business-gnome/business-gnome-utils.h @@ -38,10 +38,10 @@ #define GCONF_SECTION_EMPLOYEE "dialogs/business/employee" GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox, - GNCBook *book, GncOwner *owner); + QofBook *book, GncOwner *owner); GtkWidget * gnc_owner_edit_create (GtkWidget *label, GtkWidget *hbox, - GNCBook *book, GncOwner *owner); + QofBook *book, GncOwner *owner); void gnc_owner_get_owner (GtkWidget *widget, GncOwner *owner); void gnc_owner_set_owner (GtkWidget *widget, GncOwner *owner); @@ -50,7 +50,7 @@ void gnc_owner_set_owner (GtkWidget *widget, GncOwner *owner); /* An invoice select widget.. * the owner, invoice, and label parameters are optional */ -GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, GNCBook *book, +GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, QofBook *book, const GncOwner *owner, GncInvoice *invoice, GtkWidget *label); @@ -66,7 +66,7 @@ GList * gnc_business_account_types (GncOwner *owner); GList * gnc_business_commodities (GncOwner *owner); /* Fill in a combo box with the appropriate list of accounts */ -void gnc_fill_account_select_combo (GtkWidget *combo, GNCBook *book, +void gnc_fill_account_select_combo (GtkWidget *combo, QofBook *book, GList *acct_types, GList *acct_commodities); @@ -78,12 +78,12 @@ void gnc_fill_account_select_combo (GtkWidget *combo, GNCBook *book, * then that will be the default option setting when the menu is * created. */ -void gnc_ui_billterms_optionmenu (GtkWidget *omenu, GNCBook *book, +void gnc_ui_billterms_optionmenu (GtkWidget *omenu, QofBook *book, gboolean none_ok, GncBillTerm **choice); /* Same thing except for the tax tables */ void -gnc_ui_taxtables_optionmenu (GtkWidget *omenu, GNCBook *book, +gnc_ui_taxtables_optionmenu (GtkWidget *omenu, QofBook *book, gboolean none_ok, GncTaxTable **choice); /* Build an option menu for choosing a GncTaxIncluded */ diff --git a/src/business/business-gnome/dialog-billterms.c b/src/business/business-gnome/dialog-billterms.c index 6923c94306..2dbf8b290e 100644 --- a/src/business/business-gnome/dialog-billterms.c +++ b/src/business/business-gnome/dialog-billterms.c @@ -81,7 +81,7 @@ struct _billterms_window { BillTermNB notebook; GncBillTerm * current_term; - GNCBook * book; + QofBook * book; gint component_id; }; @@ -657,14 +657,14 @@ static gboolean find_handler (gpointer find_data, gpointer user_data) { BillTermsWindow *btw = user_data; - GNCBook *book = find_data; + QofBook *book = find_data; return (btw != NULL && btw->book == book); } /* Create a billterms window */ BillTermsWindow * -gnc_ui_billterms_window_new (GNCBook *book) +gnc_ui_billterms_window_new (QofBook *book) { BillTermsWindow *btw; GladeXML *xml; @@ -760,7 +760,7 @@ gnc_ui_billterms_window_destroy (BillTermsWindow *btw) #if 0 /* Create a new billterms by name */ GncBillTerm * -gnc_ui_billterms_new_from_name (GNCBook *book, const char *name) +gnc_ui_billterms_new_from_name (QofBook *book, const char *name) { BillTermsWindow *btw; diff --git a/src/business/business-gnome/dialog-billterms.h b/src/business/business-gnome/dialog-billterms.h index 635353de06..3d126267e2 100644 --- a/src/business/business-gnome/dialog-billterms.h +++ b/src/business/business-gnome/dialog-billterms.h @@ -29,7 +29,7 @@ typedef struct _billterms_window BillTermsWindow; #include "gnc-book.h" /* Create a billterms window */ -BillTermsWindow * gnc_ui_billterms_window_new (GNCBook *book); +BillTermsWindow * gnc_ui_billterms_window_new (QofBook *book); /* Destroy a billterms window */ void gnc_ui_billterms_window_destroy (BillTermsWindow *ttw); diff --git a/src/business/business-gnome/dialog-customer.c b/src/business/business-gnome/dialog-customer.c index 17737c7dfc..5f00e0fd29 100644 --- a/src/business/business-gnome/dialog-customer.c +++ b/src/business/business-gnome/dialog-customer.c @@ -70,7 +70,7 @@ typedef enum } CustomerDialogType; struct _customer_select_window { - GNCBook * book; + QofBook * book; QueryNew * q; }; @@ -115,7 +115,7 @@ struct _customer_window { CustomerDialogType dialog_type; GUID customer_guid; gint component_id; - GNCBook * book; + QofBook * book; GncCustomer * created_customer; GncTaxTable * taxtable; @@ -422,7 +422,7 @@ find_handler (gpointer find_data, gpointer user_data) } static CustomerWindow * -gnc_customer_new_window (GNCBook *bookp, GncCustomer *cust) +gnc_customer_new_window (QofBook *bookp, GncCustomer *cust) { CustomerWindow *cw; GladeXML *xml; @@ -640,7 +640,7 @@ gnc_ui_customer_edit (GncCustomer *cust) } CustomerWindow * -gnc_ui_customer_new (GNCBook *bookp) +gnc_ui_customer_new (QofBook *bookp) { CustomerWindow *cw; @@ -770,7 +770,7 @@ free_userdata_cb (gpointer user_data) } GNCSearchWindow * -gnc_customer_search (GncCustomer *start, GNCBook *book) +gnc_customer_search (GncCustomer *start, QofBook *book) { QueryNew *q, *q2 = NULL; GNCIdType type = GNC_CUSTOMER_MODULE_NAME; diff --git a/src/business/business-gnome/dialog-date-close.c b/src/business/business-gnome/dialog-date-close.c index 7c091274b2..475b9b80ad 100644 --- a/src/business/business-gnome/dialog-date-close.c +++ b/src/business/business-gnome/dialog-date-close.c @@ -48,7 +48,7 @@ typedef struct _dialog_date_close_window { Timespec *ts, *ts2; GList * acct_types; GList * acct_commodities; - GNCBook *book; + QofBook *book; Account *acct; char **memo; gboolean retval; @@ -230,7 +230,7 @@ gnc_dialog_dates_acct_question_parented (GtkWidget *parent, const char *message, gboolean ok_is_default, gboolean set_default_acct, GList * acct_types, GList * acct_commodities, - GNCBook *book, GncBillTerm *terms, + QofBook *book, GncBillTerm *terms, /* Returned Data... */ Timespec *ddue, Timespec *post, char **memo, Account **acct, gboolean *answer) @@ -345,7 +345,7 @@ gnc_dialog_date_acct_parented (GtkWidget *parent, const char *message, const char *date_label_message, const char *acct_label_message, gboolean ok_is_default, - GList * acct_types, GNCBook *book, + GList * acct_types, QofBook *book, /* Returned Data... */ Timespec *date, Account **acct) { diff --git a/src/business/business-gnome/dialog-date-close.h b/src/business/business-gnome/dialog-date-close.h index b115ca0d6d..641d3f079e 100644 --- a/src/business/business-gnome/dialog-date-close.h +++ b/src/business/business-gnome/dialog-date-close.h @@ -54,7 +54,7 @@ gnc_dialog_dates_acct_question_parented (GtkWidget *parent, const char *message, gboolean ok_is_default, gboolean set_default_acct, GList * acct_types, GList * acct_commodities, - GNCBook *book, GncBillTerm *terms, + QofBook *book, GncBillTerm *terms, /* Returned Data... */ Timespec *ddue, Timespec *post, char **memo, Account **acct, gboolean *answer); @@ -87,7 +87,7 @@ gnc_dialog_date_acct_parented (GtkWidget *parent, const char *message, const char *date_label_message, const char *acct_label_message, gboolean ok_is_default, - GList * acct_types, GNCBook *book, + GList * acct_types, QofBook *book, /* Returned Data... */ Timespec *date, Account **acct); diff --git a/src/business/business-gnome/dialog-employee.c b/src/business/business-gnome/dialog-employee.c index aaedd4d52e..a249ae758f 100644 --- a/src/business/business-gnome/dialog-employee.c +++ b/src/business/business-gnome/dialog-employee.c @@ -66,7 +66,7 @@ typedef enum } EmployeeDialogType; struct _employee_select_window { - GNCBook * book; + QofBook * book; QueryNew * q; }; @@ -100,7 +100,7 @@ struct _employee_window { EmployeeDialogType dialog_type; GUID employee_guid; gint component_id; - GNCBook * book; + QofBook * book; GncEmployee * created_employee; }; @@ -373,7 +373,7 @@ find_handler (gpointer find_data, gpointer user_data) } static EmployeeWindow * -gnc_employee_new_window (GNCBook *bookp, +gnc_employee_new_window (QofBook *bookp, GncEmployee *employee) { EmployeeWindow *ew; @@ -567,7 +567,7 @@ gnc_employee_new_window (GNCBook *bookp, } EmployeeWindow * -gnc_ui_employee_new (GNCBook *bookp) +gnc_ui_employee_new (QofBook *bookp) { EmployeeWindow *ew; @@ -671,7 +671,7 @@ free_employee_cb (gpointer user_data) } GNCSearchWindow * -gnc_employee_search (GncEmployee *start, GNCBook *book) +gnc_employee_search (GncEmployee *start, QofBook *book) { GNCIdType type = GNC_EMPLOYEE_MODULE_NAME; struct _employee_select_window *sw; diff --git a/src/business/business-gnome/dialog-invoice.c b/src/business/business-gnome/dialog-invoice.c index 5f59145b8d..8f89618701 100644 --- a/src/business/business-gnome/dialog-invoice.c +++ b/src/business/business-gnome/dialog-invoice.c @@ -108,7 +108,7 @@ FROM_STRING_FUNC(InvoiceDialogType, ENUM_INVOICE_TYPE) AS_STRING_FUNC(InvoiceDialogType, ENUM_INVOICE_TYPE) struct _invoice_select_window { - GNCBook * book; + QofBook * book; GncOwner * owner; QueryNew * q; GncOwner owner_def; @@ -172,7 +172,7 @@ struct _invoice_window { InvoiceDialogType dialog_type; GUID invoice_guid; gint component_id; - GNCBook * book; + QofBook * book; GncInvoice * created_invoice; GncOwner owner; GncOwner job; @@ -1730,7 +1730,7 @@ find_handler (gpointer find_data, gpointer user_data) } static InvoiceWindow * -gnc_invoice_new_page (GNCBook *bookp, InvoiceDialogType type, +gnc_invoice_new_page (QofBook *bookp, InvoiceDialogType type, GncInvoice *invoice, GncOwner *owner, GncMainWindow *window) { @@ -2083,7 +2083,7 @@ gnc_invoice_create_page (InvoiceWindow *iw, gpointer page) } static InvoiceWindow * -gnc_invoice_window_new_invoice (GNCBook *bookp, GncOwner *owner, +gnc_invoice_window_new_invoice (QofBook *bookp, GncOwner *owner, GncInvoice *invoice) { InvoiceWindow *iw; @@ -2217,7 +2217,7 @@ gnc_ui_invoice_modify (GncInvoice *invoice) } InvoiceWindow * -gnc_ui_invoice_new (GncOwner *ownerp, GNCBook *bookp) +gnc_ui_invoice_new (GncOwner *ownerp, QofBook *bookp) { InvoiceWindow *iw; GncOwner owner; @@ -2296,7 +2296,7 @@ free_invoice_cb (gpointer user_data) } GNCSearchWindow * -gnc_invoice_search (GncInvoice *start, GncOwner *owner, GNCBook *book) +gnc_invoice_search (GncInvoice *start, GncOwner *owner, QofBook *book) { GNCIdType type = GNC_INVOICE_MODULE_NAME; struct _invoice_select_window *sw; @@ -2554,7 +2554,7 @@ gnc_invoice_search_edit (gpointer start, gpointer book) } DialogQueryList * -gnc_invoice_show_bills_due (GNCBook *book, double days_in_advance) +gnc_invoice_show_bills_due (QofBook *book, double days_in_advance) { GNCIdType type = GNC_INVOICE_MODULE_NAME; Query *q; @@ -2629,7 +2629,7 @@ gnc_invoice_show_bills_due (GNCBook *book, double days_in_advance) void gnc_invoice_remind_bills_due (void) { - GNCBook *book; + QofBook *book; gint days; if (!gnc_current_session_exist()) return; diff --git a/src/business/business-gnome/dialog-job.c b/src/business/business-gnome/dialog-job.c index 355b81d48e..d24c1a829d 100644 --- a/src/business/business-gnome/dialog-job.c +++ b/src/business/business-gnome/dialog-job.c @@ -61,7 +61,7 @@ typedef enum } JobDialogType; struct _job_select_window { - GNCBook * book; + QofBook * book; GncOwner * owner; QueryNew * q; GncOwner owner_def; @@ -78,7 +78,7 @@ struct _job_window { JobDialogType dialog_type; GUID job_guid; gint component_id; - GNCBook * book; + QofBook * book; GncJob * created_job; GncOwner owner; @@ -286,7 +286,7 @@ find_handler (gpointer find_data, gpointer user_data) } static JobWindow * -gnc_job_new_window (GNCBook *bookp, GncOwner *owner, GncJob *job) +gnc_job_new_window (QofBook *bookp, GncOwner *owner, GncJob *job) { JobWindow *jw; GladeXML *xml; @@ -386,7 +386,7 @@ gnc_job_new_window (GNCBook *bookp, GncOwner *owner, GncJob *job) } GncJob * -gnc_ui_job_new_return_handle (GncOwner *owner, GNCBook *book) +gnc_ui_job_new_return_handle (GncOwner *owner, QofBook *book) { JobWindow *jw; if (!book) return NULL; @@ -395,7 +395,7 @@ gnc_ui_job_new_return_handle (GncOwner *owner, GNCBook *book) } JobWindow * -gnc_ui_job_new (GncOwner *ownerp, GNCBook *bookp) +gnc_ui_job_new (GncOwner *ownerp, QofBook *bookp) { JobWindow *jw; GncOwner owner; @@ -503,7 +503,7 @@ free_userdata_cb (gpointer user_data) } GNCSearchWindow * -gnc_job_search (GncJob *start, GncOwner *owner, GNCBook *book) +gnc_job_search (GncJob *start, GncOwner *owner, QofBook *book) { QueryNew *q, *q2 = NULL; GNCIdType type = GNC_JOB_MODULE_NAME; diff --git a/src/business/business-gnome/dialog-order.c b/src/business/business-gnome/dialog-order.c index c0a46dbe82..613ea2af5e 100644 --- a/src/business/business-gnome/dialog-order.c +++ b/src/business/business-gnome/dialog-order.c @@ -67,7 +67,7 @@ typedef enum } OrderDialogType; struct _order_select_window { - GNCBook * book; + QofBook * book; GncOwner * owner; QueryNew * q; GncOwner owner_def; @@ -95,7 +95,7 @@ struct _order_window { OrderDialogType dialog_type; GUID order_guid; gint component_id; - GNCBook * book; + QofBook * book; GncOrder * created_order; GncOwner owner; @@ -522,7 +522,7 @@ find_handler (gpointer find_data, gpointer user_data) } static OrderWindow * -gnc_order_new_window (GNCBook *bookp, OrderDialogType type, +gnc_order_new_window (QofBook *bookp, OrderDialogType type, GncOrder *order, GncOwner *owner) { OrderWindow *ow; @@ -641,7 +641,7 @@ gnc_order_new_window (GNCBook *bookp, OrderDialogType type, } static OrderWindow * -gnc_order_window_new_order (GNCBook *bookp, GncOwner *owner) +gnc_order_window_new_order (QofBook *bookp, GncOwner *owner) { OrderWindow *ow; GladeXML *xml; @@ -720,7 +720,7 @@ gnc_ui_order_edit (GncOrder *order) } OrderWindow * -gnc_ui_order_new (GncOwner *ownerp, GNCBook *bookp) +gnc_ui_order_new (GncOwner *ownerp, QofBook *bookp) { OrderWindow *ow; GncOwner owner; @@ -789,7 +789,7 @@ free_order_cb (gpointer user_data) } GNCSearchWindow * -gnc_order_search (GncOrder *start, GncOwner *owner, GNCBook *book) +gnc_order_search (GncOrder *start, GncOwner *owner, QofBook *book) { GNCIdType type = GNC_ORDER_MODULE_NAME; struct _order_select_window *sw; diff --git a/src/business/business-gnome/dialog-order.h b/src/business/business-gnome/dialog-order.h index d9819123d7..5fff9ab5f3 100644 --- a/src/business/business-gnome/dialog-order.h +++ b/src/business/business-gnome/dialog-order.h @@ -33,11 +33,11 @@ typedef struct _order_window OrderWindow; /* Create and edit an order */ OrderWindow * gnc_ui_order_edit (GncOrder *order); -OrderWindow * gnc_ui_order_new (GncOwner *owner, GNCBook *book); +OrderWindow * gnc_ui_order_new (GncOwner *owner, QofBook *book); /* Search for orders */ GNCSearchWindow * gnc_order_search (GncOrder *start, GncOwner *owner, - GNCBook *book); + QofBook *book); /* * These callbacks are for use with the gnc_general_search widget diff --git a/src/business/business-gnome/dialog-payment.c b/src/business/business-gnome/dialog-payment.c index d0dcc8e679..6d7ed95ee3 100644 --- a/src/business/business-gnome/dialog-payment.c +++ b/src/business/business-gnome/dialog-payment.c @@ -63,7 +63,7 @@ struct _payment_window { GtkWidget * acct_tree; gint component_id; - GNCBook * book; + QofBook * book; GncOwner owner; GncInvoice * invoice; GList * acct_types; @@ -395,7 +395,7 @@ find_handler (gpointer find_data, gpointer user_data) } static PaymentWindow * -new_payment_window (GncOwner *owner, GNCBook *book, GncInvoice *invoice) +new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice) { PaymentWindow *pw; GladeXML *xml; @@ -533,7 +533,7 @@ gnc_ui_payment_window_destroy (PaymentWindow *pw) } PaymentWindow * -gnc_ui_payment_new_with_invoice (GncOwner *owner, GNCBook *book, +gnc_ui_payment_new_with_invoice (GncOwner *owner, QofBook *book, GncInvoice *invoice) { GncOwner owner_def; @@ -551,7 +551,7 @@ gnc_ui_payment_new_with_invoice (GncOwner *owner, GNCBook *book, } PaymentWindow * -gnc_ui_payment_new (GncOwner *owner, GNCBook *book) +gnc_ui_payment_new (GncOwner *owner, QofBook *book) { return gnc_ui_payment_new_with_invoice (owner, book, NULL); } diff --git a/src/business/business-gnome/dialog-payment.h b/src/business/business-gnome/dialog-payment.h index 166f7b1a49..5ecc4ed1d7 100644 --- a/src/business/business-gnome/dialog-payment.h +++ b/src/business/business-gnome/dialog-payment.h @@ -31,9 +31,9 @@ typedef struct _payment_window PaymentWindow; #include "gncInvoice.h" /* Create a payment window */ -PaymentWindow * gnc_ui_payment_new (GncOwner *owner, GNCBook *book); +PaymentWindow * gnc_ui_payment_new (GncOwner *owner, QofBook *book); PaymentWindow * gnc_ui_payment_new_with_invoice (GncOwner *owner, - GNCBook *book, + QofBook *book, GncInvoice *invoice); /* Destroy a payment window */ diff --git a/src/business/business-gnome/dialog-vendor.c b/src/business/business-gnome/dialog-vendor.c index 365bfef306..a9c3b4d6e6 100644 --- a/src/business/business-gnome/dialog-vendor.c +++ b/src/business/business-gnome/dialog-vendor.c @@ -66,7 +66,7 @@ typedef enum } VendorDialogType; struct _vendor_select_window { - GNCBook * book; + QofBook * book; QueryNew * q; }; @@ -99,7 +99,7 @@ struct _vendor_window { VendorDialogType dialog_type; GUID vendor_guid; gint component_id; - GNCBook * book; + QofBook * book; GncVendor * created_vendor; GncTaxTable * taxtable; @@ -344,7 +344,7 @@ find_handler (gpointer find_data, gpointer user_data) } static VendorWindow * -gnc_vendor_new_window (GNCBook *bookp, GncVendor *vendor) +gnc_vendor_new_window (QofBook *bookp, GncVendor *vendor) { VendorWindow *vw; GladeXML *xml; @@ -495,7 +495,7 @@ gnc_vendor_new_window (GNCBook *bookp, GncVendor *vendor) } VendorWindow * -gnc_ui_vendor_new (GNCBook *bookp) +gnc_ui_vendor_new (QofBook *bookp) { VendorWindow *vw; @@ -635,7 +635,7 @@ free_vendor_cb (gpointer user_data) } GNCSearchWindow * -gnc_vendor_search (GncVendor *start, GNCBook *book) +gnc_vendor_search (GncVendor *start, QofBook *book) { GNCIdType type = GNC_VENDOR_MODULE_NAME; struct _vendor_select_window *sw; diff --git a/src/business/business-ledger/gncEntryLedger.c b/src/business/business-ledger/gncEntryLedger.c index 971ba5271a..3e20a8a905 100644 --- a/src/business/business-ledger/gncEntryLedger.c +++ b/src/business/business-ledger/gncEntryLedger.c @@ -264,7 +264,7 @@ gnc_entry_ledger_config_cells (GncEntryLedger *ledger) } /* Create and return a new GncEntry Ledger */ -GncEntryLedger * gnc_entry_ledger_new (GNCBook *book, GncEntryLedgerType type) +GncEntryLedger * gnc_entry_ledger_new (QofBook *book, GncEntryLedgerType type) { GncEntryLedger *ledger; diff --git a/src/business/business-ledger/gncEntryLedger.h b/src/business/business-ledger/gncEntryLedger.h index 4d5b368498..2dd95cf1b3 100644 --- a/src/business/business-ledger/gncEntryLedger.h +++ b/src/business/business-ledger/gncEntryLedger.h @@ -79,7 +79,7 @@ typedef struct GncEntryLedger_s GncEntryLedger; /** Prototypes ***************************************************/ /* Create and return a new GncEntry Ledger */ -GncEntryLedger * gnc_entry_ledger_new (GNCBook *book, GncEntryLedgerType type); +GncEntryLedger * gnc_entry_ledger_new (QofBook *book, GncEntryLedgerType type); /* Set the default order for this ledger */ void gnc_entry_ledger_set_default_order (GncEntryLedger *ledger, diff --git a/src/business/business-ledger/gncEntryLedgerP.h b/src/business/business-ledger/gncEntryLedgerP.h index c993b06a2f..1f54cb5c0c 100644 --- a/src/business/business-ledger/gncEntryLedgerP.h +++ b/src/business/business-ledger/gncEntryLedgerP.h @@ -43,7 +43,7 @@ struct GncEntryLedger_s { GncEntry * hint_entry; /* A Hint for where to display */ gncUIWidget parent; - GNCBook * book; + QofBook * book; Table * table; GncOrder * order; GncInvoice * invoice; diff --git a/src/business/dialog-tax-table/dialog-tax-table.c b/src/business/dialog-tax-table/dialog-tax-table.c index a420aa85d5..582cccdb50 100644 --- a/src/business/dialog-tax-table/dialog-tax-table.c +++ b/src/business/dialog-tax-table/dialog-tax-table.c @@ -73,7 +73,7 @@ struct _taxtable_window { GncTaxTable * current_table; GncTaxTableEntry * current_entry; - GNCBook * book; + QofBook * book; gint component_id; }; @@ -640,14 +640,14 @@ static gboolean find_handler (gpointer find_data, gpointer user_data) { TaxTableWindow *ttw = user_data; - GNCBook *book = find_data; + QofBook *book = find_data; return (ttw != NULL && ttw->book == book); } /* Create a tax-table window */ TaxTableWindow * -gnc_ui_tax_table_window_new (GNCBook *book) +gnc_ui_tax_table_window_new (QofBook *book) { TaxTableWindow *ttw; GladeXML *xml; @@ -749,7 +749,7 @@ gnc_ui_tax_table_window_destroy (TaxTableWindow *ttw) /* Create a new tax-table by name */ GncTaxTable * -gnc_ui_tax_table_new_from_name (GNCBook *book, const char *name) +gnc_ui_tax_table_new_from_name (QofBook *book, const char *name) { TaxTableWindow *ttw; diff --git a/src/business/dialog-tax-table/dialog-tax-table.h b/src/business/dialog-tax-table/dialog-tax-table.h index ba38f91384..2271f6e7a4 100644 --- a/src/business/dialog-tax-table/dialog-tax-table.h +++ b/src/business/dialog-tax-table/dialog-tax-table.h @@ -30,10 +30,10 @@ typedef struct _taxtable_window TaxTableWindow; #include "gncTaxTable.h" /* Create a new tax-table by name */ -GncTaxTable * gnc_ui_tax_table_new_from_name (GNCBook *book, const char *name); +GncTaxTable * gnc_ui_tax_table_new_from_name (QofBook *book, const char *name); /* Create a tax-table window */ -TaxTableWindow * gnc_ui_tax_table_window_new (GNCBook *book); +TaxTableWindow * gnc_ui_tax_table_window_new (QofBook *book); /* Destroy a tax-table window */ void gnc_ui_tax_table_window_destroy (TaxTableWindow *ttw); diff --git a/src/business/dialog-tax-table/dialog-tax-table.i b/src/business/dialog-tax-table/dialog-tax-table.i index 6361f5545d..3ad34483a2 100644 --- a/src/business/dialog-tax-table/dialog-tax-table.i +++ b/src/business/dialog-tax-table/dialog-tax-table.i @@ -9,4 +9,4 @@ SCM scm_init_sw_dialog_tax_table_module (void); %import "base-typemaps.i" -TaxTableWindow * gnc_ui_tax_table_window_new (GNCBook *book); +TaxTableWindow * gnc_ui_tax_table_window_new (QofBook *book);