mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Eliminate use of gnc:find-file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22638 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
cdb4628375
commit
c11dfec1d0
@ -33,6 +33,9 @@ gchar * gnc_path_get_bindir(void);
|
||||
%newobject gnc_path_get_stdreportsdir;
|
||||
gchar * gnc_path_get_stdreportsdir(void);
|
||||
|
||||
%newobject gnc_path_find_localized_html_file;
|
||||
gchar * gnc_path_find_localized_html_file(const gchar *);
|
||||
|
||||
gchar * gnc_build_dotgnucash_path(const gchar *);
|
||||
gchar * gnc_build_report_path(const gchar *);
|
||||
gchar * gnc_build_stdreports_path(const gchar *);
|
||||
|
@ -12,6 +12,7 @@
|
||||
(re-export gnc-is-debugging)
|
||||
(re-export gnc-path-get-bindir)
|
||||
(re-export gnc-path-get-stdreportsdir)
|
||||
(re-export gnc-path-find-localized-html-file)
|
||||
(re-export gnc-build-dotgnucash-path)
|
||||
(re-export gnc-build-report-path)
|
||||
(re-export gnc-build-stdreports-path)
|
||||
|
@ -1,16 +1,16 @@
|
||||
(load-from-path "doc.scm")
|
||||
(use-modules (gnucash core-utils))
|
||||
|
||||
(define (gnc:html-js-include file)
|
||||
(string-append
|
||||
"<script language=\"javascript\" type=\"text/javascript\" src=\""
|
||||
(gnc:find-file file (gnc:config-var-value-get gnc:*doc-path*))
|
||||
(gnc-path-find-localized-html-file file)
|
||||
"\"></script>\n"
|
||||
))
|
||||
|
||||
(define (gnc:html-css-include file)
|
||||
(string-append
|
||||
"<link rel=\"stylesheet\" type=\"text/css\" href=\""
|
||||
(gnc:find-file file (gnc:config-var-value-get gnc:*doc-path*))
|
||||
(gnc-path-find-localized-html-file file)
|
||||
"\" />\n"
|
||||
))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user