mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Fix gnc-help protocol and illustrate its use in the hello world report
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22636 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -318,7 +318,10 @@ gnc_html_help_url_cb (const char *location, const char *label,
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (location != NULL, FALSE);
|
g_return_val_if_fail (location != NULL, FALSE);
|
||||||
|
|
||||||
gnc_gnome_help (location, label);
|
if (label && (*label != '\0'))
|
||||||
|
gnc_gnome_help (location, label);
|
||||||
|
else
|
||||||
|
gnc_gnome_help (location, NULL);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -448,6 +448,11 @@ new, totally cool report, consult the mailing list %s.")
|
|||||||
document
|
document
|
||||||
(gnc:make-html-text
|
(gnc:make-html-text
|
||||||
(gnc:html-markup-p (_ "You have selected no accounts.")))))
|
(gnc:html-markup-p (_ "You have selected no accounts.")))))
|
||||||
|
|
||||||
|
(gnc:html-document-add-object!
|
||||||
|
document
|
||||||
|
(gnc:make-html-text
|
||||||
|
(gnc:html-markup-anchor (gnc-build-url URL-TYPE-HELP "gnucash-guide" "") (_ "Display help"))))
|
||||||
|
|
||||||
(gnc:html-document-add-object!
|
(gnc:html-document-add-object!
|
||||||
document
|
document
|
||||||
|
|||||||
Reference in New Issue
Block a user