summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorrootavish <[email protected]>2014-08-19 00:16:41 +0530
committerrootavish <[email protected]>2014-08-19 00:16:41 +0530
commit17377df48abdf10b6a064d6afdc1a4c95441ae20 (patch)
tree73d4ddb85c3e4fb4ed6b8787545a2216864c0402 /libdocument
parent3c122f6d867acecca4e7143d1d0707d7f188a64a (diff)
downloadatril-17377df48abdf10b6a064d6afdc1a4c95441ae20.tar.bz2
atril-17377df48abdf10b6a064d6afdc1a4c95441ae20.tar.xz
Mathjax Support
The Mathjax files will be installed to $(backenddir)/epub/MathJax This was as small as the install got.
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-backends-manager.c13
-rw-r--r--libdocument/ev-backends-manager.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/libdocument/ev-backends-manager.c b/libdocument/ev-backends-manager.c
index dd62642d..74fc09a0 100644
--- a/libdocument/ev-backends-manager.c
+++ b/libdocument/ev-backends-manager.c
@@ -63,6 +63,19 @@ backends_dir (void)
return backendsdir;
}
+gchar*
+ev_backends_manager_get_backends_dir(void)
+{
+ gchar *retval;
+ if (!backendsdir) {
+ retval = backends_dir();
+ }
+ else {
+ retval = backendsdir;
+ }
+ return retval;
+}
+
static void
ev_backend_info_free (EvBackendInfo *info)
{
diff --git a/libdocument/ev-backends-manager.h b/libdocument/ev-backends-manager.h
index 42f597ee..1d660eac 100644
--- a/libdocument/ev-backends-manager.h
+++ b/libdocument/ev-backends-manager.h
@@ -42,7 +42,7 @@ EvDocument *ev_backends_manager_get_document (const gchar *mime_typ
const gchar *ev_backends_manager_get_document_module_name (EvDocument *document);
EvTypeInfo *ev_backends_manager_get_document_type_info (EvDocument *document);
GList *ev_backends_manager_get_all_types_info (void);
-
+gchar *ev_backends_manager_get_backends_dir (void);
G_END_DECLS
#endif /* EV_BACKENDS_MANAGER */