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:
Geert Janssens
2012-12-12 17:42:10 +00:00
parent 72a85ee87b
commit e5d01077cf
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -318,7 +318,10 @@ gnc_html_help_url_cb (const char *location, const char *label,
{
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;
}
@@ -448,6 +448,11 @@ new, totally cool report, consult the mailing list %s.")
document
(gnc:make-html-text
(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!
document