]> www.fi.muni.cz Git - evince.git/commit
add tests for GPdfControl
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>
Thu, 29 May 2003 11:08:28 +0000 (11:08 +0000)
committerMartin Kretzschmar <mkretzschmar@src.gnome.org>
Thu, 29 May 2003 11:08:28 +0000 (11:08 +0000)
commitb14e1f7d0f1ef046ab08bc114cec7dac6c89bd2c
tree41cdac39b0d129e416604903ccc2042283e71ae7
parent6213f5b03d5d21c7609db00156b2725290d44167
add tests for GPdfControl

* xpdf/tests/test-gpdf-control.cc: add tests for GPdfControl

* xpdf/tests/Makefile.am, xpdf/tests/.cvsignore: add
test-gpdf-control

* xpdf/gpdf-control.cc: use BONOBO_CLASS_BOILERPLATE.
(gpdf_control_new, gpdf_control_construct): kill, use construct
time properties.
(gpdf_control_class_init): install constructor, properties
persist-stream and persist-file.
(gpdf_control_constructor): constructor impl.
(gpdf_control_setup_page_control, gpdf_control_setup_zoomable)
(gpdf_control_setup_view_widgets): renamed from gc_setup_foo.
(gpdf_control_setup_persist): ditto, connect to PersistFile, too.
(gpdf_control_set_property): impl.
(persist_file_set_pdf_cb): signal callback.
(persist_stream_set_pdf_cb): renamed from gc_set_pdf_cb.
(gpdf_control_pdf_doc_changed): factored out from gc_set_pdf_cb.
(verb_FileProperties_cb): get PDFDoc from priv.

* xpdf/gpdf-control.h: kill gpdf_control_new and _construct,

* xpdf/bonobo-application-x-pdf.cc (gpdf_factory): also give the
control a PersistFile implementation

* xpdf/Makefile.am: moved more code into libgpdf.a.

* xpdf/GNOME_PDF.server.in.in: state that we implement
Bonobo/PersistFile.

* shell/gpdf.c (bonobo_stream_for_uri): kill.
(gw_control_load_pdf): changed to load through PersistFile.
pdf/xpdf/Makefile.am