diff --git a/ChangeLog b/ChangeLog index c454c50928..e0164e25cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-12-21 Chris Lyttle + + * src/gnc-ui.h: Change help files + * src/business/business-gnome/dialog-customer.c: fix help button + * src/business/business-gnome/dialog-employee.c: fix help button + * src/business/business-gnome/dialog-invoice.c: fix help button + * src/business/business-gnome/dialog-job.c: fix help button + * src/business/business-gnome/dialog-order.c: fix help button + * src/business/business-gnome/dialog-vendor.c: fix help button + * src/gnome-search/dialog-search.c: fix help button + 2002-12-21 Joshua Sled * src/gnome/dialog-sx-from-trans.c (sxftd_compute_sx): Respect the diff --git a/src/business/business-gnome/dialog-customer.c b/src/business/business-gnome/dialog-customer.c index c6fc9ee587..3b7828d1e9 100644 --- a/src/business/business-gnome/dialog-customer.c +++ b/src/business/business-gnome/dialog-customer.c @@ -284,7 +284,7 @@ gnc_customer_window_cancel_cb (GtkWidget *widget, gpointer data) static void gnc_customer_window_help_cb (GtkWidget *widget, gpointer data) { - char *help_file = ""; /* xxx */ + char *help_file = HH_CUSTOMER; helpWindow(NULL, NULL, help_file); } diff --git a/src/business/business-gnome/dialog-employee.c b/src/business/business-gnome/dialog-employee.c index 21969dad22..cce95845c5 100644 --- a/src/business/business-gnome/dialog-employee.c +++ b/src/business/business-gnome/dialog-employee.c @@ -218,7 +218,7 @@ gnc_employee_window_cancel_cb (GtkWidget *widget, gpointer data) static void gnc_employee_window_help_cb (GtkWidget *widget, gpointer data) { - char *help_file = ""; /* xxx */ + char *help_file = HH_EMPLOYEE; helpWindow(NULL, NULL, help_file); } diff --git a/src/business/business-gnome/dialog-invoice.c b/src/business/business-gnome/dialog-invoice.c index 2c2baa6e6f..72c33cb07e 100644 --- a/src/business/business-gnome/dialog-invoice.c +++ b/src/business/business-gnome/dialog-invoice.c @@ -328,7 +328,7 @@ gnc_invoice_window_cancel_cb (GtkWidget *widget, gpointer data) static void gnc_invoice_window_help_cb (GtkWidget *widget, gpointer data) { - char *help_file = ""; /* XXX: FIXME */ + char *help_file = HH_INVOICE; helpWindow(NULL, NULL, help_file); } diff --git a/src/business/business-gnome/dialog-job.c b/src/business/business-gnome/dialog-job.c index 3a6f82e591..dc6ca177a3 100644 --- a/src/business/business-gnome/dialog-job.c +++ b/src/business/business-gnome/dialog-job.c @@ -163,9 +163,7 @@ gnc_job_window_cancel_cb (GtkWidget *widget, gpointer data) static void gnc_job_window_help_cb (GtkWidget *widget, gpointer data) { - char *help_file = ""; /* xxx */ - - /* XXX */ + char *help_file = HH_JOB; helpWindow(NULL, NULL, help_file); } diff --git a/src/business/business-gnome/dialog-order.c b/src/business/business-gnome/dialog-order.c index 6d198c846a..e8b941e988 100644 --- a/src/business/business-gnome/dialog-order.c +++ b/src/business/business-gnome/dialog-order.c @@ -192,7 +192,7 @@ gnc_order_window_cancel_cb (GtkWidget *widget, gpointer data) static void gnc_order_window_help_cb (GtkWidget *widget, gpointer data) { - char *help_file = ""; /* XXX: FIXME */ + char *help_file = HH_ORDER; helpWindow(NULL, NULL, help_file); } diff --git a/src/business/business-gnome/dialog-vendor.c b/src/business/business-gnome/dialog-vendor.c index b96f9f8cc7..9c9238cdc1 100644 --- a/src/business/business-gnome/dialog-vendor.c +++ b/src/business/business-gnome/dialog-vendor.c @@ -208,7 +208,7 @@ gnc_vendor_window_cancel_cb (GtkWidget *widget, gpointer data) static void gnc_vendor_window_help_cb (GtkWidget *widget, gpointer data) { - char *help_file = ""; /* xxx */ + char *help_file = HH_VENDOR; helpWindow(NULL, NULL, help_file); } diff --git a/src/gnc-ui.h b/src/gnc-ui.h index 609d38a5db..8217251657 100644 --- a/src/gnc-ui.h +++ b/src/gnc-ui.h @@ -28,23 +28,23 @@ /** Help Files ******************************************************/ -#define HH_ABOUT "xacc-about.html" -#define HH_ACC "xacc-newacctwin.html" -#define HH_ACCEDIT "xacc-accountedit.html" -#define HH_ADJBWIN "xacc-adjbwin.html" -#define HH_COMMODITY "xacc-commodity.html" -#define HH_FIND_TRANSACTIONS "xacc-locatingtxns.html" -#define HH_GLOBPREFS "xacc-preferences.html" -#define HH_GPL "xacc-gpl.html" -#define HH_MAIN "gnucash-guide/index.html" +#define HH_ACC "gnucash-help/usage.html#acct-create" +#define HH_ACCEDIT "gnucash-help/usage.html#acct-edit" +#define HH_COMMODITY "gnucash-help/usage.html#tool-commodity" +#define HH_CUSTOMER "gnucash-help/usage.html" +#define HH_EMPLOYEE "gnucash-help/usage.html" +#define HH_FIND_TRANSACTIONS "gnucash-help/usage.html#tool-find" +#define HH_GLOBPREFS "gnucash-help/custom-gnucash.html#set-prefs" #define HH_HELP "gnucash-help/help.html" -#define HH_PRINT "xacc-print.html" -#define HH_PRINTCHECK "xacc-print-check.html" -#define HH_QIFIMPORT "xacc-qif-import.html" -#define HH_QUICKSTART "xacc-quickstart.html" -#define HH_RECNWIN "xacc-recnwin.html" -#define HH_REGWIN "xacc-regwin.html" -#define HH_SXEDITOR "xacc-sxeditor.html" +#define HH_INVOICE "gnucash-help/usage.html" +#define HH_JOB "gnucash-help/usage.html" +#define HH_MAIN "gnucash-guide/index.html" +#define HH_ORDER "gnucash-help/usage.html" +#define HH_PRINTCHECK "gnucash-help/usage.html#print-check" +#define HH_QUICKSTART "gnucash-guide/index.html" +#define HH_RECNWIN "gnucash-help/usage.html#acct-reconcile" +#define HH_SXEDITOR "gnucash-help/usage.html#tran-sched" +#define HH_VENDOR "gnucash-help/usage.html" /* Dialog windows ***************************************************/ diff --git a/src/gnome-search/dialog-search.c b/src/gnome-search/dialog-search.c index 2abfffbeb1..3b54527cc2 100644 --- a/src/gnome-search/dialog-search.c +++ b/src/gnome-search/dialog-search.c @@ -13,6 +13,7 @@ #include "window-help.h" #include "gnc-component-manager.h" #include "gnc-ui-util.h" +#include "gnc-ui.h" #include "gnc-gui-query.h" #include "gncObject.h" #include "QueryNew.h" @@ -556,7 +557,7 @@ search_cancel_cb (GtkButton *button, GNCSearchWindow *sw) static void search_help_cb (GtkButton *button, GNCSearchWindow *sw) { - helpWindow (NULL, NULL, ""); /* XXX */ + helpWindow (NULL, NULL, HH_FIND_TRANSACTIONS); } static void