]> www.fi.muni.cz Git - evince.git/commitdiff
get PDFDoc from GPdfPersistStream, not directly from our embeddable
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>
Mon, 30 Sep 2002 20:48:26 +0000 (20:48 +0000)
committerMartin Kretzschmar <mkretzschmar@src.gnome.org>
Mon, 30 Sep 2002 20:48:26 +0000 (20:48 +0000)
* 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

pdf/xpdf/Makefile.am

index 5b98d0c8ddbd2ae147e2e622cb90ce019e6ec3bd..549810ef8f2944dda1371e91e23657d8306a80ff 100644 (file)
@@ -9,7 +9,7 @@ INCLUDES =                                      \
        $(libpaper_CFLAGS)
 
 if WITH_GNOME
-gui = ""
+gui =
 else
 gui = xpdf
 endif
@@ -111,6 +111,8 @@ bonobo_application_x_pdf_SOURCES =  \
        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                    \