[dia/dia-0-97] Bug #581868 - dia -t tex file.dia export
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-0-97] Bug #581868 - dia -t tex file.dia export
- Date: Fri, 7 Jan 2011 12:19:27 +0000 (UTC)
commit 3a597237b567b353bbb5a19657df92a008b2bcc2
Author: Hans Breuer <hans breuer org>
Date: Sat Sep 19 22:40:16 2009 +0200
Bug #581868 - dia -t tex file.dia export
Unique names for 'pgf-tex' and 'pstricks-tex' to allow
to select the filter to use when both tex exporters
are active.
app/app_procs.c | 2 +-
plug-ins/pgf/render_pgf.c | 4 +++-
plug-ins/pstricks/render_pstricks.c | 4 +++-
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/app_procs.c b/app/app_procs.c
index 7cd2a35..60ec998 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -703,7 +703,7 @@ app_init (int argc, char **argv)
# endif
/* we always have pixbuf but don't know exactly all it's *few* save formats */
"pixbuf-png), jpg, "
- "shape, svg, tex, " WMF
+ "shape, svg, tex (pgf-tex, pstricks-tex), " WMF
"wpg");
GOptionContext *context = NULL;
diff --git a/plug-ins/pgf/render_pgf.c b/plug-ins/pgf/render_pgf.c
index f75fb96..3fe5bbd 100644
--- a/plug-ins/pgf/render_pgf.c
+++ b/plug-ins/pgf/render_pgf.c
@@ -1276,5 +1276,7 @@ static const gchar *extensions[] = { "tex", NULL };
DiaExportFilter pgf_export_filter = {
N_("LaTeX PGF macros"),
extensions,
- export_pgf
+ export_pgf,
+ NULL,
+ "pgf-tex"
};
diff --git a/plug-ins/pstricks/render_pstricks.c b/plug-ins/pstricks/render_pstricks.c
index bb37e0f..b12a3a6 100644
--- a/plug-ins/pstricks/render_pstricks.c
+++ b/plug-ins/pstricks/render_pstricks.c
@@ -986,5 +986,7 @@ static const gchar *extensions[] = { "tex", NULL };
DiaExportFilter pstricks_export_filter = {
N_("TeX PSTricks macros"),
extensions,
- export_pstricks
+ export_pstricks,
+ NULL,
+ "pstricks-tex"
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]