* xpdf/pdf-view.cc: get PDFDoc from GPdfPersistStream, not
directly from our embeddable (various places).
* xpdf/Makefile.am: fix gui variable, add gpdf-persist-stream
files
* xpdf/bonobo-application-x-pdf.cc: include GlobalParams.h,
(embeddable_factory): create a GPdfPersistStream first, then
create an embeddable.
* xpdf/gpdf-embeddable.cc (bed_free_data): move to
gpdf-persist-stream.cc as delete_pdf_doc_full
(load_pdf_from_stream): move to gpdf-persist-stream.cc
(finalize): free priv field
(class_init): kill pdf_changed signal, GPdfPersistStream has
set_pdf signal, use finalize
(gpdf_embeddable_add_interfaces): kill
(gpdf_embeddable_construct): take GPdfPersistStream param,
use bonobo_object_add_interface not gpdf_embeddable_add_intf
(gpdf_embeddable_new): take GPdfPersistStream param
* xpdf/gpdf-embeddable.h: remove extern "C" around bonobo
includes, they protect themselves. Introduce private struct,
still public. Use GPdfPersistStream
* xpdf/gpdf-persist-stream.cc, xpdf/gpdf-persist-stream.h:
files for new GPdfPersistStream class. Contains PDF loading code
* xpdf/BonoboStream.h: hide GList before including gnome headers
$(libpaper_CFLAGS)
if WITH_GNOME
-gui = ""
+gui =
else
gui = xpdf
endif
gpdf-embeddable.h \
gpdf-embeddable-view.cc \
gpdf-embeddable-view.h \
+ gpdf-persist-stream.cc \
+ gpdf-persist-stream.h \
gpdf-util.h \
gtkgesture.c \
gtkgesture.h \