From e9705183293f22e3a45dd59ba3df42d1c5a77dd8 Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Sat, 15 Feb 2003 15:07:21 +0000 Subject: [PATCH] change (disabled) font embedding code * xpdf/GPOutputDev.cc (getFontFaceEmbedded): change (disabled) font embedding code * shell/gpdf.c (gw_setup_window): set window title * xpdf/GNOME_PDF.server.in.in, shell/gpdf.c: s/Gnome/GNOME/ in strings * xpdf/page-control.c, xpdf/gpdf-view.cc, xpdf/gpdf-persist-stream.cc: use our own marshallers * configure.in, xpdf/Makefile.am, xpdf/gpdf-marshal.list: check for and use glib-genmarshal * xpdf/.cvsignore: ignore generated marshallers * xpdf/Makefile.am: clean up server.in, server files * Makefile.am, gpdf.mime: remove gpdf.mime, application/pdf is provided by gnome-vfs.mime --- pdf/xpdf/.cvsignore | 2 ++ pdf/xpdf/Makefile.am | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pdf/xpdf/.cvsignore b/pdf/xpdf/.cvsignore index 1898fa03..6ebaacb4 100644 --- a/pdf/xpdf/.cvsignore +++ b/pdf/xpdf/.cvsignore @@ -7,6 +7,8 @@ Makefile.in bonobo-application-x-pdf gnome-pdf-viewer gpdf +gpdf-marshal.c +gpdf-marshal.h pdfimages pdfinfo pdftopbm diff --git a/pdf/xpdf/Makefile.am b/pdf/xpdf/Makefile.am index cfebfdf0..e37d6f32 100644 --- a/pdf/xpdf/Makefile.am +++ b/pdf/xpdf/Makefile.am @@ -14,6 +14,10 @@ else gui = xpdf endif +BUILT_SOURCES = \ + gpdf-marshal.c \ + gpdf-marshal.h + bin_PROGRAMS = $(gui) # pdftops pdftotext # pdfinfo pdftopbm @@ -118,7 +122,8 @@ gnome_pdf_viewer_SOURCES = \ gtkgesture.c \ gtkgesture.h \ page-control.c \ - page-control.h + page-control.h \ + $(BUILT_SOURCES) # Font embedding hack for Gnome Print < 2.1.?2? # gpdf-gnome-font.c \ @@ -207,6 +212,12 @@ xpdf-ltk.h: xpdf.ltk # zoomIn.xbm # zoomOut.xbm +gpdf-marshal.h: gpdf-marshal.list $(GLIB_GENMARSHAL) + $(GLIB_GENMARSHAL) $< --header --prefix=gpdf_marshal > $@ + +gpdf-marshal.c: gpdf-marshal.list $(GLIB_GENMARSHAL) + echo "#include \"gpdf-marshal.h\"" > $@ && \ + $(GLIB_GENMARSHAL) $< --body --prefix=gpdf_marshal >> $@ stockdir = $(datadir)/pixmaps/gpdf stock_DATA = fitwidth.png @@ -216,7 +227,6 @@ ltk = \ xpdf-top.ltk \ xpdf.ltk - server_in_files = GNOME_PDF.server.in.in serverdir = $(libdir)/bonobo/servers @@ -230,5 +240,9 @@ ui_DATA = \ bonobo-application-x-pdf-ui.xml \ gpdf-control-ui.xml -EXTRA_DIST = $(stock_DATA) $(ltk) \ +CLEANFILES = $(server_DATA) $(BUILT_SOURCES) +DISTCLEANFILES = $(server_in_files:.server.in.in=.server.in) + +EXTRA_DIST = $(stock_DATA) \ + gpdf-marshal.list \ $(server_in_files) config.h $(ui_DATA) -- 2.43.5