Bug 688917 - Edit style sheet help button not working

Setup the connection between the help button and the edit style sheet
section in the help.
This commit is contained in:
Robert Fewell 2020-11-06 13:14:31 +00:00
parent 17ced7eb28
commit 4b5202f55d
4 changed files with 24 additions and 0 deletions

View File

@ -130,6 +130,20 @@ gnc_options_dialog_set_new_book_option_values (GNCOptionDB *odb)
}
}
static void
gnc_style_sheet_options_help_cb (GNCOptionWin *win, gpointer dat)
{
gnc_gnome_help (HF_HELP, HL_STYLE_SHEET);
}
void
gnc_options_dialog_set_style_sheet_options_help_cb (GNCOptionWin *win)
{
gnc_options_dialog_set_help_cb (win,
(GNCOptionWinCallback)gnc_style_sheet_options_help_cb,
NULL);
}
static void
gnc_commodity_help_cb (void)
{

View File

@ -73,6 +73,11 @@ void gnc_options_dialog_set_book_options_help_cb (GNCOptionWin *win);
*/
void gnc_options_dialog_set_new_book_option_values (GNCOptionDB *odb);
/** Set the help callback to 'gnc_style_sheet_options_help_cb' to open a help browser
* and point it to the Style Sheet link in the Help file.
*/
void gnc_options_dialog_set_style_sheet_options_help_cb (GNCOptionWin *win);
/** Given a file name, find and load the requested pixmap. This
* routine will display an error message if it can't find the file or
* load the pixmap.

View File

@ -68,6 +68,7 @@
#define HL_RECNWIN "acct-reconcile"
#define HL_SXEDITOR "trans-sched"
#define HL_BOOK_OPTIONS "book-options"
#define HL_STYLE_SHEET "change-style"
#define HL_CLOSE_BOOK "tool-close-book"
#define HL_USAGE_CUSTOMREP "report-saving"
#define HL_IMPORT_BC "busnss-imp-bills-invoices"

View File

@ -33,6 +33,7 @@
#include "gnc-component-manager.h"
#include "gnc-session.h"
#include "gnc-gtk-utils.h"
#include "gnc-gnome-utils.h"
#include "gnc-guile-utils.h"
#include "gnc-report.h"
#include "gnc-ui.h"
@ -180,6 +181,9 @@ gnc_style_sheet_dialog_create (StyleSheetDialog * ss,
gnc_options_dialog_build_contents (ssinfo->odialog,
ssinfo->odb);
gnc_options_dialog_set_style_sheet_options_help_cb (ssinfo->odialog);
gnc_options_dialog_set_apply_cb (ssinfo->odialog,
gnc_style_sheet_options_apply_cb,
ssinfo);