]> www.fi.muni.cz Git - evince.git/commitdiff
Reorganize source tree.
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Mon, 8 Jan 2007 12:25:31 +0000 (12:25 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 8 Jan 2007 12:25:31 +0000 (12:25 +0000)
2007-01-08  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* Makefile.am:
* backend/Makefile.am:
* backend/comics/Makefile.am:
* backend/djvu/Makefile.am:
* backend/dvi/Makefile.am:
* backend/ev-async-renderer.c:
* backend/ev-async-renderer.h:
* backend/ev-attachment.c:
* backend/ev-attachment.h:
* backend/ev-backend-marshal.c:
* backend/ev-document-factory.c:
* backend/ev-document-factory.h:
* backend/ev-document-find.c:
* backend/ev-document-find.h:
* backend/ev-document-fonts.c:
* backend/ev-document-fonts.h:
* backend/ev-document-images.c:
* backend/ev-document-images.h:
* backend/ev-document-info.h:
* backend/ev-document-links.c:
* backend/ev-document-links.h:
* backend/ev-document-misc.c:
* backend/ev-document-misc.h:
* backend/ev-document-security.c:
* backend/ev-document-security.h:
* backend/ev-document-thumbnails.c:
* backend/ev-document-thumbnails.h:
* backend/ev-document-transition.c:
* backend/ev-document-transition.h:
* backend/ev-document.c:
* backend/ev-document.h:
* backend/ev-file-exporter.c:
* backend/ev-file-exporter.h:
* backend/ev-image.c:
* backend/ev-image.h:
* backend/ev-link-action.c:
* backend/ev-link-action.h:
* backend/ev-link-dest.c:
* backend/ev-link-dest.h:
* backend/ev-link.c:
* backend/ev-link.h:
* backend/ev-render-context.c:
* backend/ev-render-context.h:
* backend/ev-selection.c:
* backend/ev-selection.h:
* backend/impress/Makefile.am:
* backend/pdf/Makefile.am:
* backend/pixbuf/Makefile.am:
* backend/ps/Makefile.am:
* backend/ps/ps-document.c: (push_pixbuf), (interpreter_failed),
(ps_document_widget_event), (setup_pixmap), (setup_page), (input),
(start_interpreter), (stop_interpreter), (document_load),
(ps_document_next_page), (render_page):
* backend/tiff/Makefile.am:
* comics/Makefile.am:
* comics/comics-document.c:
* comics/comics-document.h:
* configure.ac:
* cut-n-paste/zoom-control/ephy-zoom-control.c:
* djvu/Makefile.am:
* djvu/djvu-document-private.h:
* djvu/djvu-document.c:
* djvu/djvu-document.h:
* djvu/djvu-links.c:
* djvu/djvu-links.h:
* djvu/djvu-text-page.c:
* djvu/djvu-text-page.h:
* djvu/djvu-text.c:
* djvu/djvu-text.h:
* dvi/Makefile.am:
* dvi/dvi-document.c:
* dvi/dvi-document.h:
* dvi/fonts.c:
* dvi/fonts.h:
* dvi/mdvi-lib/Makefile.am:
* dvi/mdvi-lib/afmparse.c:
* dvi/mdvi-lib/afmparse.h:
* dvi/mdvi-lib/bitmap.c:
* dvi/mdvi-lib/bitmap.h:
* dvi/mdvi-lib/color.c:
* dvi/mdvi-lib/color.h:
* dvi/mdvi-lib/common.c:
* dvi/mdvi-lib/common.h:
* dvi/mdvi-lib/defaults.h:
* dvi/mdvi-lib/dvimisc.c:
* dvi/mdvi-lib/dviopcodes.h:
* dvi/mdvi-lib/dviread.c:
* dvi/mdvi-lib/files.c:
* dvi/mdvi-lib/font.c:
* dvi/mdvi-lib/fontmap.c:
* dvi/mdvi-lib/fontmap.h:
* dvi/mdvi-lib/fontsrch.c:
* dvi/mdvi-lib/gf.c:
* dvi/mdvi-lib/hash.c:
* dvi/mdvi-lib/hash.h:
* dvi/mdvi-lib/list.c:
* dvi/mdvi-lib/mdvi.h:
* dvi/mdvi-lib/pagesel.c:
* dvi/mdvi-lib/paper.c:
* dvi/mdvi-lib/paper.h:
* dvi/mdvi-lib/pk.c:
* dvi/mdvi-lib/private.h:
* dvi/mdvi-lib/setup.c:
* dvi/mdvi-lib/sp-epsf.c:
* dvi/mdvi-lib/special.c:
* dvi/mdvi-lib/sysdeps.h:
* dvi/mdvi-lib/t1.c:
* dvi/mdvi-lib/tfm.c:
* dvi/mdvi-lib/tfmfile.c:
* dvi/mdvi-lib/tt.c:
* dvi/mdvi-lib/util.c:
* dvi/mdvi-lib/vf.c:
* dvi/pixbuf-device.c:
* dvi/pixbuf-device.h:
* impress/Makefile.am:
* impress/common.h:
* impress/document.c:
* impress/f_oasis.c:
* impress/f_oo13.c:
* impress/iksemel.c:
* impress/iksemel.h:
* impress/imposter.h:
* impress/impress-document.c:
* impress/impress-document.h:
* impress/internal.h:
* impress/r_back.c:
* impress/r_draw.c:
* impress/r_geometry.c:
* impress/r_gradient.c:
* impress/r_style.c:
* impress/r_text.c:
* impress/render.c:
* impress/render.h:
* impress/zip.c:
* impress/zip.h:
* lib/Makefile.am:
* lib/ev-debug.c:
* lib/ev-debug.h:
* lib/ev-file-helpers.c:
* lib/ev-file-helpers.h:
* lib/ev-gui.c:
* lib/ev-gui.h:
* lib/ev-tooltip.c:
* lib/ev-tooltip.h:
* libdocument/Makefile.am:
* libdocument/ev-file-helpers.c:
* pdf/Makefile.am:
* pdf/ev-poppler.cc:
* pdf/ev-poppler.h:
* pixbuf/Makefile.am:
* pixbuf/pixbuf-document.c:
* pixbuf/pixbuf-document.h:
* properties/Makefile.am:
* ps/Makefile.am:
* ps/gsdefaults.c:
* ps/gsdefaults.h:
* ps/gsio.c:
* ps/gsio.h:
* ps/gstypes.h:
* ps/ps-document.c:
* ps/ps-document.h:
* ps/ps.c:
* ps/ps.h:
* shell/Makefile.am:
* shell/ev-application.h:
* shell/ev-sidebar-links.c:
* shell/ev-sidebar-links.h:
* shell/ev-utils.c: (ev_gui_sanitise_popup_position),
(ev_gui_menu_position_tree_selection):
* shell/ev-utils.h:
* shell/ev-view.c: (ev_view_finalize):
* shell/ev-window.c:
* shell/main.c: (main):
* thumbnailer/Makefile.am:
* tiff/Makefile.am:
* tiff/tiff-document.c:
* tiff/tiff-document.h:
* tiff/tiff2ps.c:
* tiff/tiff2ps.h:

Reorganize source tree.

svn path=/trunk/; revision=2197

169 files changed:
ChangeLog
Makefile.am
backend/Makefile.am
backend/comics/Makefile.am [moved from comics/Makefile.am with 79% similarity]
backend/comics/comics-document.c [moved from comics/comics-document.c with 100% similarity]
backend/comics/comics-document.h [moved from comics/comics-document.h with 100% similarity]
backend/djvu/Makefile.am [moved from djvu/Makefile.am with 86% similarity]
backend/djvu/djvu-document-private.h [moved from djvu/djvu-document-private.h with 100% similarity]
backend/djvu/djvu-document.c [moved from djvu/djvu-document.c with 100% similarity]
backend/djvu/djvu-document.h [moved from djvu/djvu-document.h with 100% similarity]
backend/djvu/djvu-links.c [moved from djvu/djvu-links.c with 100% similarity]
backend/djvu/djvu-links.h [moved from djvu/djvu-links.h with 100% similarity]
backend/djvu/djvu-text-page.c [moved from djvu/djvu-text-page.c with 100% similarity]
backend/djvu/djvu-text-page.h [moved from djvu/djvu-text-page.h with 100% similarity]
backend/djvu/djvu-text.c [moved from djvu/djvu-text.c with 100% similarity]
backend/djvu/djvu-text.h [moved from djvu/djvu-text.h with 100% similarity]
backend/dvi/Makefile.am [moved from dvi/Makefile.am with 77% similarity]
backend/dvi/dvi-document.c [moved from dvi/dvi-document.c with 100% similarity]
backend/dvi/dvi-document.h [moved from dvi/dvi-document.h with 100% similarity]
backend/dvi/fonts.c [moved from dvi/fonts.c with 100% similarity]
backend/dvi/fonts.h [moved from dvi/fonts.h with 100% similarity]
backend/dvi/mdvi-lib/Makefile.am [moved from dvi/mdvi-lib/Makefile.am with 100% similarity]
backend/dvi/mdvi-lib/afmparse.c [moved from dvi/mdvi-lib/afmparse.c with 100% similarity]
backend/dvi/mdvi-lib/afmparse.h [moved from dvi/mdvi-lib/afmparse.h with 100% similarity]
backend/dvi/mdvi-lib/bitmap.c [moved from dvi/mdvi-lib/bitmap.c with 100% similarity]
backend/dvi/mdvi-lib/bitmap.h [moved from dvi/mdvi-lib/bitmap.h with 100% similarity]
backend/dvi/mdvi-lib/color.c [moved from dvi/mdvi-lib/color.c with 100% similarity]
backend/dvi/mdvi-lib/color.h [moved from dvi/mdvi-lib/color.h with 100% similarity]
backend/dvi/mdvi-lib/common.c [moved from dvi/mdvi-lib/common.c with 100% similarity]
backend/dvi/mdvi-lib/common.h [moved from dvi/mdvi-lib/common.h with 100% similarity]
backend/dvi/mdvi-lib/defaults.h [moved from dvi/mdvi-lib/defaults.h with 100% similarity]
backend/dvi/mdvi-lib/dvimisc.c [moved from dvi/mdvi-lib/dvimisc.c with 100% similarity]
backend/dvi/mdvi-lib/dviopcodes.h [moved from dvi/mdvi-lib/dviopcodes.h with 100% similarity]
backend/dvi/mdvi-lib/dviread.c [moved from dvi/mdvi-lib/dviread.c with 100% similarity]
backend/dvi/mdvi-lib/files.c [moved from dvi/mdvi-lib/files.c with 100% similarity]
backend/dvi/mdvi-lib/font.c [moved from dvi/mdvi-lib/font.c with 100% similarity]
backend/dvi/mdvi-lib/fontmap.c [moved from dvi/mdvi-lib/fontmap.c with 100% similarity]
backend/dvi/mdvi-lib/fontmap.h [moved from dvi/mdvi-lib/fontmap.h with 100% similarity]
backend/dvi/mdvi-lib/fontsrch.c [moved from dvi/mdvi-lib/fontsrch.c with 100% similarity]
backend/dvi/mdvi-lib/gf.c [moved from dvi/mdvi-lib/gf.c with 100% similarity]
backend/dvi/mdvi-lib/hash.c [moved from dvi/mdvi-lib/hash.c with 100% similarity]
backend/dvi/mdvi-lib/hash.h [moved from dvi/mdvi-lib/hash.h with 100% similarity]
backend/dvi/mdvi-lib/list.c [moved from dvi/mdvi-lib/list.c with 100% similarity]
backend/dvi/mdvi-lib/mdvi.h [moved from dvi/mdvi-lib/mdvi.h with 100% similarity]
backend/dvi/mdvi-lib/pagesel.c [moved from dvi/mdvi-lib/pagesel.c with 100% similarity]
backend/dvi/mdvi-lib/paper.c [moved from dvi/mdvi-lib/paper.c with 100% similarity]
backend/dvi/mdvi-lib/paper.h [moved from dvi/mdvi-lib/paper.h with 100% similarity]
backend/dvi/mdvi-lib/pk.c [moved from dvi/mdvi-lib/pk.c with 100% similarity]
backend/dvi/mdvi-lib/private.h [moved from dvi/mdvi-lib/private.h with 100% similarity]
backend/dvi/mdvi-lib/setup.c [moved from dvi/mdvi-lib/setup.c with 100% similarity]
backend/dvi/mdvi-lib/sp-epsf.c [moved from dvi/mdvi-lib/sp-epsf.c with 100% similarity]
backend/dvi/mdvi-lib/special.c [moved from dvi/mdvi-lib/special.c with 100% similarity]
backend/dvi/mdvi-lib/sysdeps.h [moved from dvi/mdvi-lib/sysdeps.h with 100% similarity]
backend/dvi/mdvi-lib/t1.c [moved from dvi/mdvi-lib/t1.c with 100% similarity]
backend/dvi/mdvi-lib/tfm.c [moved from dvi/mdvi-lib/tfm.c with 100% similarity]
backend/dvi/mdvi-lib/tfmfile.c [moved from dvi/mdvi-lib/tfmfile.c with 100% similarity]
backend/dvi/mdvi-lib/tt.c [moved from dvi/mdvi-lib/tt.c with 100% similarity]
backend/dvi/mdvi-lib/util.c [moved from dvi/mdvi-lib/util.c with 100% similarity]
backend/dvi/mdvi-lib/vf.c [moved from dvi/mdvi-lib/vf.c with 100% similarity]
backend/dvi/pixbuf-device.c [moved from dvi/pixbuf-device.c with 100% similarity]
backend/dvi/pixbuf-device.h [moved from dvi/pixbuf-device.h with 100% similarity]
backend/impress/Makefile.am [moved from impress/Makefile.am with 95% similarity]
backend/impress/common.h [moved from impress/common.h with 100% similarity]
backend/impress/document.c [moved from impress/document.c with 100% similarity]
backend/impress/f_oasis.c [moved from impress/f_oasis.c with 100% similarity]
backend/impress/f_oo13.c [moved from impress/f_oo13.c with 100% similarity]
backend/impress/iksemel.c [moved from impress/iksemel.c with 100% similarity]
backend/impress/iksemel.h [moved from impress/iksemel.h with 100% similarity]
backend/impress/imposter.h [moved from impress/imposter.h with 100% similarity]
backend/impress/impress-document.c [moved from impress/impress-document.c with 100% similarity]
backend/impress/impress-document.h [moved from impress/impress-document.h with 100% similarity]
backend/impress/internal.h [moved from impress/internal.h with 100% similarity]
backend/impress/r_back.c [moved from impress/r_back.c with 100% similarity]
backend/impress/r_draw.c [moved from impress/r_draw.c with 100% similarity]
backend/impress/r_geometry.c [moved from impress/r_geometry.c with 100% similarity]
backend/impress/r_gradient.c [moved from impress/r_gradient.c with 100% similarity]
backend/impress/r_style.c [moved from impress/r_style.c with 100% similarity]
backend/impress/r_text.c [moved from impress/r_text.c with 100% similarity]
backend/impress/render.c [moved from impress/render.c with 100% similarity]
backend/impress/render.h [moved from impress/render.h with 100% similarity]
backend/impress/zip.c [moved from impress/zip.c with 100% similarity]
backend/impress/zip.h [moved from impress/zip.h with 100% similarity]
backend/pdf/Makefile.am [moved from pdf/Makefile.am with 88% similarity]
backend/pdf/ev-poppler.cc [moved from pdf/ev-poppler.cc with 100% similarity]
backend/pdf/ev-poppler.h [moved from pdf/ev-poppler.h with 100% similarity]
backend/pixbuf/Makefile.am [moved from pixbuf/Makefile.am with 84% similarity]
backend/pixbuf/pixbuf-document.c [moved from pixbuf/pixbuf-document.c with 100% similarity]
backend/pixbuf/pixbuf-document.h [moved from pixbuf/pixbuf-document.h with 100% similarity]
backend/ps/Makefile.am [moved from ps/Makefile.am with 83% similarity]
backend/ps/gsdefaults.c [moved from ps/gsdefaults.c with 100% similarity]
backend/ps/gsdefaults.h [moved from ps/gsdefaults.h with 100% similarity]
backend/ps/gsio.c [moved from ps/gsio.c with 100% similarity]
backend/ps/gsio.h [moved from ps/gsio.h with 100% similarity]
backend/ps/gstypes.h [moved from ps/gstypes.h with 100% similarity]
backend/ps/ps-document.c [moved from ps/ps-document.c with 98% similarity]
backend/ps/ps-document.h [moved from ps/ps-document.h with 100% similarity]
backend/ps/ps.c [moved from ps/ps.c with 100% similarity]
backend/ps/ps.h [moved from ps/ps.h with 100% similarity]
backend/tiff/Makefile.am [moved from tiff/Makefile.am with 85% similarity]
backend/tiff/tiff-document.c [moved from tiff/tiff-document.c with 100% similarity]
backend/tiff/tiff-document.h [moved from tiff/tiff-document.h with 100% similarity]
backend/tiff/tiff2ps.c [moved from tiff/tiff2ps.c with 100% similarity]
backend/tiff/tiff2ps.h [moved from tiff/tiff2ps.h with 100% similarity]
configure.ac
cut-n-paste/zoom-control/ephy-zoom-control.c
lib/Makefile.am [deleted file]
lib/ev-debug.c [deleted file]
lib/ev-debug.h [deleted file]
lib/ev-gui.c [deleted file]
lib/ev-gui.h [deleted file]
libdocument/Makefile.am [new file with mode: 0644]
libdocument/ev-async-renderer.c [moved from backend/ev-async-renderer.c with 100% similarity]
libdocument/ev-async-renderer.h [moved from backend/ev-async-renderer.h with 100% similarity]
libdocument/ev-attachment.c [moved from backend/ev-attachment.c with 100% similarity]
libdocument/ev-attachment.h [moved from backend/ev-attachment.h with 100% similarity]
libdocument/ev-backend-marshal.c [moved from backend/ev-backend-marshal.c with 100% similarity]
libdocument/ev-backend-marshalers.list [moved from backend/ev-backend-marshalers.list with 100% similarity]
libdocument/ev-document-factory.c [moved from backend/ev-document-factory.c with 100% similarity]
libdocument/ev-document-factory.h [moved from backend/ev-document-factory.h with 100% similarity]
libdocument/ev-document-find.c [moved from backend/ev-document-find.c with 100% similarity]
libdocument/ev-document-find.h [moved from backend/ev-document-find.h with 100% similarity]
libdocument/ev-document-fonts.c [moved from backend/ev-document-fonts.c with 100% similarity]
libdocument/ev-document-fonts.h [moved from backend/ev-document-fonts.h with 100% similarity]
libdocument/ev-document-images.c [moved from backend/ev-document-images.c with 100% similarity]
libdocument/ev-document-images.h [moved from backend/ev-document-images.h with 100% similarity]
libdocument/ev-document-info.h [moved from backend/ev-document-info.h with 100% similarity]
libdocument/ev-document-links.c [moved from backend/ev-document-links.c with 100% similarity]
libdocument/ev-document-links.h [moved from backend/ev-document-links.h with 100% similarity]
libdocument/ev-document-misc.c [moved from backend/ev-document-misc.c with 100% similarity]
libdocument/ev-document-misc.h [moved from backend/ev-document-misc.h with 100% similarity]
libdocument/ev-document-security.c [moved from backend/ev-document-security.c with 100% similarity]
libdocument/ev-document-security.h [moved from backend/ev-document-security.h with 100% similarity]
libdocument/ev-document-thumbnails.c [moved from backend/ev-document-thumbnails.c with 100% similarity]
libdocument/ev-document-thumbnails.h [moved from backend/ev-document-thumbnails.h with 100% similarity]
libdocument/ev-document-transition.c [moved from backend/ev-document-transition.c with 100% similarity]
libdocument/ev-document-transition.h [moved from backend/ev-document-transition.h with 100% similarity]
libdocument/ev-document.c [moved from backend/ev-document.c with 100% similarity]
libdocument/ev-document.h [moved from backend/ev-document.h with 100% similarity]
libdocument/ev-file-exporter.c [moved from backend/ev-file-exporter.c with 100% similarity]
libdocument/ev-file-exporter.h [moved from backend/ev-file-exporter.h with 100% similarity]
libdocument/ev-file-helpers.c [moved from lib/ev-file-helpers.c with 99% similarity]
libdocument/ev-file-helpers.h [moved from lib/ev-file-helpers.h with 100% similarity]
libdocument/ev-image.c [moved from backend/ev-image.c with 100% similarity]
libdocument/ev-image.h [moved from backend/ev-image.h with 100% similarity]
libdocument/ev-link-action.c [moved from backend/ev-link-action.c with 100% similarity]
libdocument/ev-link-action.h [moved from backend/ev-link-action.h with 100% similarity]
libdocument/ev-link-dest.c [moved from backend/ev-link-dest.c with 100% similarity]
libdocument/ev-link-dest.h [moved from backend/ev-link-dest.h with 100% similarity]
libdocument/ev-link.c [moved from backend/ev-link.c with 100% similarity]
libdocument/ev-link.h [moved from backend/ev-link.h with 100% similarity]
libdocument/ev-render-context.c [moved from backend/ev-render-context.c with 100% similarity]
libdocument/ev-render-context.h [moved from backend/ev-render-context.h with 100% similarity]
libdocument/ev-selection.c [moved from backend/ev-selection.c with 100% similarity]
libdocument/ev-selection.h [moved from backend/ev-selection.h with 100% similarity]
po/ChangeLog
po/POTFILES.in
properties/Makefile.am
shell/Makefile.am
shell/ev-application.h
shell/ev-sidebar-links.c
shell/ev-sidebar-links.h
shell/ev-tooltip.c [moved from lib/ev-tooltip.c with 100% similarity]
shell/ev-tooltip.h [moved from lib/ev-tooltip.h with 100% similarity]
shell/ev-utils.c
shell/ev-utils.h
shell/ev-view.c
shell/ev-window.c
shell/main.c
thumbnailer/Makefile.am

index a96067956b309ee0a67210ad4882d342634b9256..599be16a0af52aa075c98f390c6e6ed2f8685620 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,187 @@
+2007-01-08  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * Makefile.am:
+       * backend/Makefile.am:
+       * backend/comics/Makefile.am:
+       * backend/djvu/Makefile.am:
+       * backend/dvi/Makefile.am:
+       * backend/ev-async-renderer.c:
+       * backend/ev-async-renderer.h:
+       * backend/ev-attachment.c:
+       * backend/ev-attachment.h:
+       * backend/ev-backend-marshal.c:
+       * backend/ev-document-factory.c:
+       * backend/ev-document-factory.h:
+       * backend/ev-document-find.c:
+       * backend/ev-document-find.h:
+       * backend/ev-document-fonts.c:
+       * backend/ev-document-fonts.h:
+       * backend/ev-document-images.c:
+       * backend/ev-document-images.h:
+       * backend/ev-document-info.h:
+       * backend/ev-document-links.c:
+       * backend/ev-document-links.h:
+       * backend/ev-document-misc.c:
+       * backend/ev-document-misc.h:
+       * backend/ev-document-security.c:
+       * backend/ev-document-security.h:
+       * backend/ev-document-thumbnails.c:
+       * backend/ev-document-thumbnails.h:
+       * backend/ev-document-transition.c:
+       * backend/ev-document-transition.h:
+       * backend/ev-document.c:
+       * backend/ev-document.h:
+       * backend/ev-file-exporter.c:
+       * backend/ev-file-exporter.h:
+       * backend/ev-image.c:
+       * backend/ev-image.h:
+       * backend/ev-link-action.c:
+       * backend/ev-link-action.h:
+       * backend/ev-link-dest.c:
+       * backend/ev-link-dest.h:
+       * backend/ev-link.c:
+       * backend/ev-link.h:
+       * backend/ev-render-context.c:
+       * backend/ev-render-context.h:
+       * backend/ev-selection.c:
+       * backend/ev-selection.h:
+       * backend/impress/Makefile.am:
+       * backend/pdf/Makefile.am:
+       * backend/pixbuf/Makefile.am:
+       * backend/ps/Makefile.am:
+       * backend/ps/ps-document.c: (push_pixbuf), (interpreter_failed),
+       (ps_document_widget_event), (setup_pixmap), (setup_page), (input),
+       (start_interpreter), (stop_interpreter), (document_load),
+       (ps_document_next_page), (render_page):
+       * backend/tiff/Makefile.am:
+       * comics/Makefile.am:
+       * comics/comics-document.c:
+       * comics/comics-document.h:
+       * configure.ac:
+       * cut-n-paste/zoom-control/ephy-zoom-control.c:
+       * djvu/Makefile.am:
+       * djvu/djvu-document-private.h:
+       * djvu/djvu-document.c:
+       * djvu/djvu-document.h:
+       * djvu/djvu-links.c:
+       * djvu/djvu-links.h:
+       * djvu/djvu-text-page.c:
+       * djvu/djvu-text-page.h:
+       * djvu/djvu-text.c:
+       * djvu/djvu-text.h:
+       * dvi/Makefile.am:
+       * dvi/dvi-document.c:
+       * dvi/dvi-document.h:
+       * dvi/fonts.c:
+       * dvi/fonts.h:
+       * dvi/mdvi-lib/Makefile.am:
+       * dvi/mdvi-lib/afmparse.c:
+       * dvi/mdvi-lib/afmparse.h:
+       * dvi/mdvi-lib/bitmap.c:
+       * dvi/mdvi-lib/bitmap.h:
+       * dvi/mdvi-lib/color.c:
+       * dvi/mdvi-lib/color.h:
+       * dvi/mdvi-lib/common.c:
+       * dvi/mdvi-lib/common.h:
+       * dvi/mdvi-lib/defaults.h:
+       * dvi/mdvi-lib/dvimisc.c:
+       * dvi/mdvi-lib/dviopcodes.h:
+       * dvi/mdvi-lib/dviread.c:
+       * dvi/mdvi-lib/files.c:
+       * dvi/mdvi-lib/font.c:
+       * dvi/mdvi-lib/fontmap.c:
+       * dvi/mdvi-lib/fontmap.h:
+       * dvi/mdvi-lib/fontsrch.c:
+       * dvi/mdvi-lib/gf.c:
+       * dvi/mdvi-lib/hash.c:
+       * dvi/mdvi-lib/hash.h:
+       * dvi/mdvi-lib/list.c:
+       * dvi/mdvi-lib/mdvi.h:
+       * dvi/mdvi-lib/pagesel.c:
+       * dvi/mdvi-lib/paper.c:
+       * dvi/mdvi-lib/paper.h:
+       * dvi/mdvi-lib/pk.c:
+       * dvi/mdvi-lib/private.h:
+       * dvi/mdvi-lib/setup.c:
+       * dvi/mdvi-lib/sp-epsf.c:
+       * dvi/mdvi-lib/special.c:
+       * dvi/mdvi-lib/sysdeps.h:
+       * dvi/mdvi-lib/t1.c:
+       * dvi/mdvi-lib/tfm.c:
+       * dvi/mdvi-lib/tfmfile.c:
+       * dvi/mdvi-lib/tt.c:
+       * dvi/mdvi-lib/util.c:
+       * dvi/mdvi-lib/vf.c:
+       * dvi/pixbuf-device.c:
+       * dvi/pixbuf-device.h:
+       * impress/Makefile.am:
+       * impress/common.h:
+       * impress/document.c:
+       * impress/f_oasis.c:
+       * impress/f_oo13.c:
+       * impress/iksemel.c:
+       * impress/iksemel.h:
+       * impress/imposter.h:
+       * impress/impress-document.c:
+       * impress/impress-document.h:
+       * impress/internal.h:
+       * impress/r_back.c:
+       * impress/r_draw.c:
+       * impress/r_geometry.c:
+       * impress/r_gradient.c:
+       * impress/r_style.c:
+       * impress/r_text.c:
+       * impress/render.c:
+       * impress/render.h:
+       * impress/zip.c:
+       * impress/zip.h:
+       * lib/Makefile.am:
+       * lib/ev-debug.c:
+       * lib/ev-debug.h:
+       * lib/ev-file-helpers.c:
+       * lib/ev-file-helpers.h:
+       * lib/ev-gui.c:
+       * lib/ev-gui.h:
+       * lib/ev-tooltip.c:
+       * lib/ev-tooltip.h:
+       * libdocument/Makefile.am:
+       * libdocument/ev-file-helpers.c:
+       * pdf/Makefile.am:
+       * pdf/ev-poppler.cc:
+       * pdf/ev-poppler.h:
+       * pixbuf/Makefile.am:
+       * pixbuf/pixbuf-document.c:
+       * pixbuf/pixbuf-document.h:
+       * properties/Makefile.am:
+       * ps/Makefile.am:
+       * ps/gsdefaults.c:
+       * ps/gsdefaults.h:
+       * ps/gsio.c:
+       * ps/gsio.h:
+       * ps/gstypes.h:
+       * ps/ps-document.c:
+       * ps/ps-document.h:
+       * ps/ps.c:
+       * ps/ps.h:
+       * shell/Makefile.am:
+       * shell/ev-application.h:
+       * shell/ev-sidebar-links.c:
+       * shell/ev-sidebar-links.h:
+       * shell/ev-utils.c: (ev_gui_sanitise_popup_position),
+       (ev_gui_menu_position_tree_selection):
+       * shell/ev-utils.h:
+       * shell/ev-view.c: (ev_view_finalize):
+       * shell/ev-window.c:
+       * shell/main.c: (main):
+       * thumbnailer/Makefile.am:
+       * tiff/Makefile.am:
+       * tiff/tiff-document.c:
+       * tiff/tiff-document.h:
+       * tiff/tiff2ps.c:
+       * tiff/tiff2ps.h:
+       
+       Reorganize source tree.
+
 2007-01-08  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * backend/ev-document-factory.c:
index 0cd6f596605e4778e4866d71a32e4ec39e58802b..7d23c680672893cf63e9472efef086f3f490349c 100644 (file)
@@ -1,53 +1,17 @@
-SUBDIRS = cut-n-paste po help data test
-
-# Backends
-
-if ENABLE_PDF
-SUBDIRS += pdf
-endif
-
-if ENABLE_PS 
-SUBDIRS += ps
-endif
-
-if ENABLE_PIXBUF
-SUBDIRS += pixbuf    
-endif
-
-if ENABLE_DJVU
-SUBDIRS += djvu
-endif
-
-if ENABLE_TIFF
-SUBDIRS += tiff
-endif
-
-if ENABLE_DVI
-SUBDIRS += dvi
-endif
-
-if ENABLE_COMICS
-     SUBDIRS += comics
-endif
-
-if ENABLE_IMPRESS
-     SUBDIRS += impress
-endif
-
-SUBDIRS += backend
-
-# Library
-
-SUBDIRS += lib
-
-# Properties (library and application)
-
-SUBDIRS += properties
+SUBDIRS = \
+       cut-n-paste \
+       po \
+       help \
+       data \
+       test \
+       backend \
+       libdocument \
+       properties \
+       shell \
+       thumbnailer
 
 # Applications 
 
-SUBDIRS += shell thumbnailer
-
 intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in
 
 EXTRA_DIST = $(intltool_extra) gnome-doc-utils.make
index a09734d9cd99f7beb526ac5df3e2e51f55a6a7f5..f22c2e11f527f6023e7ee40bb17dacda85b3de91 100644 (file)
-INCLUDES=                                      \
-       -DEVINCE_UIDIR=\"$(pkgdatadir)\"        \
-       -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
-       -I$(top_srcdir)/lib                     \
-       -I$(top_srcdir)/pdf                     \
-       -I$(top_srcdir)/pixbuf                  \
-       -I$(top_srcdir)/tiff                    \
-       -I$(top_srcdir)/ps                      \
-       -I$(top_srcdir)/djvu                    \
-       -I$(top_srcdir)/dvi                     \
-       -I$(top_srcdir)/impress                 \
-       -I$(top_srcdir)/comics                  \
-       $(BACKEND_CFLAGS)                       \
-       $(WARN_CFLAGS)                          \
-       $(DISABLE_DEPRECATED)
+SUBDIRS = 
 
-noinst_LTLIBRARIES = libevbackend.la
-
-libevbackend_la_SOURCES=                       \
-       ev-async-renderer.c                     \
-       ev-async-renderer.h                     \
-       ev-attachment.c                         \
-       ev-attachment.h                         \
-       ev-backend-marshal.c                    \
-       ev-link.c                               \
-       ev-link.h                               \
-       ev-link-action.c                        \
-       ev-link-action.h                        \
-       ev-link-dest.c                          \
-       ev-link-dest.h                          \
-       ev-image.c                              \
-       ev-image.h                              \
-       ev-document.c                           \
-       ev-document.h                           \
-       ev-document-factory.c                   \
-       ev-document-factory.h                   \
-       ev-document-thumbnails.c                \
-       ev-document-thumbnails.h                \
-       ev-document-fonts.c                     \
-       ev-document-fonts.h                     \
-       ev-document-links.c                     \
-       ev-document-links.h                     \
-       ev-document-images.c                    \
-       ev-document-images.h                    \
-       ev-document-security.c                  \
-       ev-document-security.h                  \
-       ev-document-find.c                      \
-       ev-document-find.h                      \
-       ev-document-info.h                      \
-       ev-document-transition.h                \
-       ev-document-transition.c                \
-       ev-file-exporter.c                      \
-       ev-file-exporter.h                      \
-       ev-render-context.h                     \
-       ev-render-context.c                     \
-       ev-selection.h                          \
-       ev-selection.c                          \
-       ev-document-misc.h                      \
-       ev-document-misc.c
-
-libevbackend_la_LIBADD =
+# Backends
 
 if ENABLE_PDF
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/pdf/libpdfdocument.la
+SUBDIRS += pdf
 endif
 
-if ENABLE_PS
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/ps/libpsdocument.la
+if ENABLE_PS 
+SUBDIRS += ps
 endif
 
 if ENABLE_PIXBUF
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/pixbuf/libpixbufdocument.la
+SUBDIRS += pixbuf    
 endif
 
 if ENABLE_DJVU
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/djvu/libgtkdjvu.la
+SUBDIRS += djvu
 endif
 
 if ENABLE_TIFF
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/tiff/libtiffdocument.la
+SUBDIRS += tiff
 endif
 
 if ENABLE_DVI
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/dvi/libgtkdvi.la
+SUBDIRS += dvi
 endif
 
 if ENABLE_COMICS
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/comics/libcomicsdocument.la
+     SUBDIRS += comics
 endif
 
 if ENABLE_IMPRESS
-libevbackend_la_LIBADD +=                      \
-       $(top_builddir)/impress/libimpressdocument.la
+     SUBDIRS += impress
 endif
-
-BUILT_SOURCES=                         \
-       ev-backend-marshalers.h         \
-       ev-backend-marshalers.c
-
-CLEANFILES = $(BUILT_SOURCES)
-
-ev-backend-marshalers.h: ev-backend-marshalers.list
-       $(GLIB_GENMARSHAL) --prefix=_ev_backend_marshal $(srcdir)/ev-backend-marshalers.list --header > $@
-
-ev-backend-marshalers.c: ev-backend-marshalers.list
-       $(GLIB_GENMARSHAL) --prefix=_ev_backend_marshal $(srcdir)/ev-backend-marshalers.list --body > $@
-
-ev-backend-marshal.c: ev-backend-marshalers.h ev-backend-marshalers.c
-
-noinst_HEADERS = \
-       ev-backend-marshalers.h
-
-EXTRA_DIST=                    \
-       ev-backend-marshalers.list
similarity index 79%
rename from comics/Makefile.am
rename to backend/comics/Makefile.am
index bf11eb8f99355c4e85fb5c1a5cf8d3baec048c49..8c12139afeba60aeb2d7918b8dae05be555353ab 100644 (file)
@@ -1,7 +1,6 @@
 INCLUDES =                      \
        -I$(top_srcdir)         \
-       -I$(top_srcdir)/backend \
-       -I$(top_srcdir)/lib     \
+       -I$(top_srcdir)/libdocument \
        $(LIB_CFLAGS)
 
 noinst_LTLIBRARIES = libcomicsdocument.la
similarity index 86%
rename from djvu/Makefile.am
rename to backend/djvu/Makefile.am
index 62b76a563a76e707bfbfe65b8ca2183cf2bcdbf7..fa44bbb734337d0e87eaab5314d7259fe05a1de5 100644 (file)
@@ -1,7 +1,6 @@
 INCLUDES = \
        -I$(top_srcdir)                                         \
-       -I$(top_srcdir)/backend                                 \
-       -I$(top_srcdir)/lib                                     \
+       -I$(top_srcdir)/libdocument                             \
        -DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\"   \
        $(LIB_CFLAGS)                                           \
        $(DJVU_CFLAGS)
similarity index 100%
rename from djvu/djvu-links.c
rename to backend/djvu/djvu-links.c
similarity index 100%
rename from djvu/djvu-links.h
rename to backend/djvu/djvu-links.h
similarity index 100%
rename from djvu/djvu-text.c
rename to backend/djvu/djvu-text.c
similarity index 100%
rename from djvu/djvu-text.h
rename to backend/djvu/djvu-text.h
similarity index 77%
rename from dvi/Makefile.am
rename to backend/dvi/Makefile.am
index 169ef132a174ad4359c330f90cb168a3ff2a6741..f23a34bae544d3ae8b958fd21a7ccc083cae099a 100644 (file)
@@ -1,9 +1,8 @@
 SUBDIRS = mdvi-lib
 
 INCLUDES = \
-       -I$(top_srcdir)                                         \
-       -I$(top_srcdir)/backend                         \
-       -I$(top_srcdir)/lib                                     \
+       -I$(top_srcdir)                                 \
+       -I$(top_srcdir)/libdocument                     \
        -I$(srcdir)/mdvi-lib                            \
        $(LIB_CFLAGS)
 
similarity index 100%
rename from dvi/fonts.c
rename to backend/dvi/fonts.c
similarity index 100%
rename from dvi/fonts.h
rename to backend/dvi/fonts.h
similarity index 100%
rename from dvi/mdvi-lib/gf.c
rename to backend/dvi/mdvi-lib/gf.c
similarity index 100%
rename from dvi/mdvi-lib/pk.c
rename to backend/dvi/mdvi-lib/pk.c
similarity index 100%
rename from dvi/mdvi-lib/t1.c
rename to backend/dvi/mdvi-lib/t1.c
similarity index 100%
rename from dvi/mdvi-lib/tt.c
rename to backend/dvi/mdvi-lib/tt.c
similarity index 100%
rename from dvi/mdvi-lib/vf.c
rename to backend/dvi/mdvi-lib/vf.c
similarity index 95%
rename from impress/Makefile.am
rename to backend/impress/Makefile.am
index 3740855bf214fd5d2063bacc9991be75a338fbbc..526839be734db582ec8e80fb0a2a123f3717057c 100644 (file)
@@ -1,6 +1,6 @@
 INCLUDES =                                                     \
        -I$(top_srcdir)                                         \
-       -I$(top_srcdir)/backend                                 \
+       -I$(top_srcdir)/libdocument                             \
        $(SHELL_CFLAGS)                                         \
        -DDATADIR=\""$(datadir)"\"
 
similarity index 100%
rename from impress/common.h
rename to backend/impress/common.h
similarity index 100%
rename from impress/f_oasis.c
rename to backend/impress/f_oasis.c
similarity index 100%
rename from impress/f_oo13.c
rename to backend/impress/f_oo13.c
similarity index 100%
rename from impress/iksemel.c
rename to backend/impress/iksemel.c
similarity index 100%
rename from impress/iksemel.h
rename to backend/impress/iksemel.h
similarity index 100%
rename from impress/r_back.c
rename to backend/impress/r_back.c
similarity index 100%
rename from impress/r_draw.c
rename to backend/impress/r_draw.c
similarity index 100%
rename from impress/r_style.c
rename to backend/impress/r_style.c
similarity index 100%
rename from impress/r_text.c
rename to backend/impress/r_text.c
similarity index 100%
rename from impress/render.c
rename to backend/impress/render.c
similarity index 100%
rename from impress/render.h
rename to backend/impress/render.h
similarity index 100%
rename from impress/zip.c
rename to backend/impress/zip.c
similarity index 100%
rename from impress/zip.h
rename to backend/impress/zip.h
similarity index 88%
rename from pdf/Makefile.am
rename to backend/pdf/Makefile.am
index bd3522f34e74f777d7f5966f1f900e4bfd4903ee..38d08319bbd633dbe667828443a197315c79ef07 100644 (file)
@@ -1,6 +1,6 @@
 INCLUDES =                                     \
        -I$(top_srcdir)                         \
-       -I$(top_srcdir)/backend                 \
+       -I$(top_srcdir)/libdocument             \
        $(BACKEND_CFLAGS)                       \
        $(POPPLER_CFLAGS)                       \
        $(WARN_CXXFLAGS)                        \
similarity index 100%
rename from pdf/ev-poppler.cc
rename to backend/pdf/ev-poppler.cc
similarity index 100%
rename from pdf/ev-poppler.h
rename to backend/pdf/ev-poppler.h
similarity index 84%
rename from pixbuf/Makefile.am
rename to backend/pixbuf/Makefile.am
index 11cc42a1131f90a17a936df8e3a8fc14f704f93f..b81e1c839e4ff779ca1e73fde9fb36b244bcac8d 100644 (file)
@@ -1,6 +1,6 @@
 INCLUDES =                                                     \
        -I$(top_srcdir)                                         \
-       -I$(top_srcdir)/backend                                 \
+       -I$(top_srcdir)/libdocument                             \
        $(BACKEND_CFLAGS)
 
 noinst_LTLIBRARIES = libpixbufdocument.la
similarity index 83%
rename from ps/Makefile.am
rename to backend/ps/Makefile.am
index a9f25f922ced0a312abb502b8b7aa808cbc94d70..499eee35dddf08baa9ee8854e0f85c48102fb226 100644 (file)
@@ -1,7 +1,6 @@
 INCLUDES = \
        -I$(top_srcdir)                                         \
-       -I$(top_srcdir)/backend                                 \
-       -I$(top_srcdir)/lib                                     \
+       -I$(top_srcdir)/libdocument                             \
        $(BACKEND_CFLAGS)                                       \
        $(WARN_CFLAGS)
 
similarity index 100%
rename from ps/gsdefaults.c
rename to backend/ps/gsdefaults.c
similarity index 100%
rename from ps/gsdefaults.h
rename to backend/ps/gsdefaults.h
similarity index 100%
rename from ps/gsio.c
rename to backend/ps/gsio.c
similarity index 100%
rename from ps/gsio.h
rename to backend/ps/gsio.h
similarity index 100%
rename from ps/gstypes.h
rename to backend/ps/gstypes.h
similarity index 98%
rename from ps/ps-document.c
rename to backend/ps/ps-document.c
index 1500b7b4a9c806d131126c5c9a900d8a36f77c78..ee5d449824e04d15cf37ad13d1ef22f04a3b35e2 100644 (file)
@@ -44,7 +44,6 @@
 #include <math.h>
 
 #include "ps-document.h"
-#include "ev-debug.h"
 #include "gsdefaults.h"
 #include "ev-file-exporter.h"
 #include "ev-async-renderer.h"
@@ -216,11 +215,9 @@ push_pixbuf (PSDocument *gs)
 
        cmap = gdk_window_get_colormap (gs->pstarget);
        gdk_drawable_get_size (gs->bpixmap, &width, &height);
-       LOG ("Get from drawable\n");
        pixbuf =  gdk_pixbuf_get_from_drawable (NULL, gs->bpixmap, cmap,
                                                0, 0, 0, 0,
                                                width, height);
-       LOG ("Get from drawable done\n");
        g_signal_emit_by_name (gs, "render_finished", pixbuf);
        g_object_unref (pixbuf);
 }
@@ -228,8 +225,6 @@ push_pixbuf (PSDocument *gs)
 static void
 interpreter_failed (PSDocument *gs, char *msg)
 {
-       LOG ("Interpreter failed %s", msg);
-
        push_pixbuf (gs);
 
        stop_interpreter (gs);
@@ -246,11 +241,9 @@ ps_document_widget_event (GtkWidget *widget, GdkEvent *event, gpointer data)
        gs->message_window = event->client.data.l[0];
 
        if (event->client.message_type == gs_class->page_atom) {
-               LOG ("GS rendered the document");
                gs->busy = FALSE;
 
                push_pixbuf (gs);
-               LOG ("Pixbuf pushed");
        }
 
        return TRUE;
@@ -329,7 +322,6 @@ setup_pixmap (PSDocument *gs, int page, double scale, int rotation)
        }
 
        if (!gs->bpixmap) {
-               LOG ("Create pixmap");
 
                fill = gdk_gc_new (gs->pstarget);
                colormap = gdk_drawable_get_colormap (gs->pstarget);
@@ -438,8 +430,6 @@ setup_page (PSDocument *gs, int page, double scale, int rotation)
        char scaled_dpi[G_ASCII_DTOSTR_BUF_SIZE];       
        int urx, ury, llx, lly;
 
-       LOG ("Setup the page");
-
        get_page_box (gs, page, &urx, &ury, &llx, &lly);
        g_ascii_dtostr (scaled_dpi, G_ASCII_DTOSTR_BUF_SIZE, 72.0 * scale);
 
@@ -447,7 +437,6 @@ setup_page (PSDocument *gs, int page, double scale, int rotation)
                               0L, rotation, llx, lly, urx, ury,
                               scaled_dpi, scaled_dpi,
                               0, 0, 0, 0);
-       LOG ("GS property %s", buf);
 
        gdk_property_change (gs->pstarget, gs_class->gs_atom, gs_class->string_atom,
                             8, GDK_PROP_MODE_REPLACE, (guchar *)buf, strlen(buf));
@@ -532,8 +521,6 @@ input(gpointer data, gint source, GdkInputCondition condition)
        void (*oldsig) (int);
        oldsig = signal(SIGPIPE, catchPipe);
 
-       LOG ("Input");
-
        do {
                if (gs->buffer_bytes_left == 0) {
                        /* Get a new section if required */
@@ -613,8 +600,6 @@ start_interpreter (PSDocument *gs)
        char **gv_env_vars = NULL;
        int argc = 0, i;
 
-       LOG ("Start the interpreter");
-
        if(!gs->gs_filename)
                return 0;
 
@@ -670,7 +655,6 @@ start_interpreter (PSDocument *gs)
                                  gdk_x11_drawable_get_xid (gs->pstarget),
                                  gdk_x11_drawable_get_xid (gs->bpixmap),
                                  gdk_display_get_name (gdk_drawable_get_display (gs->pstarget)));
-       LOG ("Launching ghostview with env %s", gv_env);
 
        gs->interpreter_pid = fork ();
        switch (gs->interpreter_pid) {
@@ -758,7 +742,6 @@ stop_interpreter(PSDocument * gs)
 {
        if (gs->interpreter_pid > 0) {
                int status = 0;
-               LOG ("Stop the interpreter");
                kill (gs->interpreter_pid, SIGTERM);
                while ((wait(&status) == -1) && (errno == EINTR));
                gs->interpreter_pid = -1;
@@ -923,8 +906,6 @@ document_load (PSDocument *gs, const gchar *fname)
 {
        g_return_val_if_fail (PS_IS_DOCUMENT(gs), FALSE);
 
-       LOG ("Load the document");
-
        if (fname == NULL) {
                gs->gs_status = "";
                return FALSE;
@@ -987,8 +968,6 @@ ps_document_next_page (PSDocument *gs)
        GdkDisplay *display;
        Display    *dpy;
 
-       LOG ("Make ghostscript render next page");
-
        g_return_val_if_fail (PS_IS_DOCUMENT(gs), FALSE);
        g_return_val_if_fail (gs->interpreter_pid != 0, FALSE);
        g_return_val_if_fail (gs->busy != TRUE, FALSE);
@@ -1026,7 +1005,6 @@ render_page (PSDocument *gs, int page)
        }
 
        if (gs->structured_doc && gs->doc) {
-               LOG ("It's a structured document, let's send one page to gs");
 
                if (is_interpreter_ready (gs)) {
                        ps_document_next_page (gs);
@@ -1049,8 +1027,6 @@ render_page (PSDocument *gs, int page)
                 * case, ggv restarts GS again and the first page is displayed.
                 */
 
-               LOG ("It's an unstructured document, gs will just read the file");
-
                if (!is_interpreter_ready (gs)) {
                        ps_document_enable_interpreter(gs);
                }
similarity index 100%
rename from ps/ps-document.h
rename to backend/ps/ps-document.h
similarity index 100%
rename from ps/ps.c
rename to backend/ps/ps.c
similarity index 100%
rename from ps/ps.h
rename to backend/ps/ps.h
similarity index 85%
rename from tiff/Makefile.am
rename to backend/tiff/Makefile.am
index d8652adda036a5aa7b556bcc41c40a6c5aac9d98..f89e9d9b82d1852d9bec0fc2f8d0379ef60215ef 100644 (file)
@@ -1,6 +1,6 @@
 INCLUDES =                                                     \
        -I$(top_srcdir)                                         \
-       -I$(top_srcdir)/backend                                 \
+       -I$(top_srcdir)/libdocument                             \
        $(BACKEND_CFLAGS)
 
 noinst_LTLIBRARIES = libtiffdocument.la
similarity index 100%
rename from tiff/tiff2ps.c
rename to backend/tiff/tiff2ps.c
similarity index 100%
rename from tiff/tiff2ps.h
rename to backend/tiff/tiff2ps.h
index aa7fd7d028b59072c5aa5d6f24d2763ad11f21d9..8a21c50b3ffe8bf1c8582bfbb61803ddcd40a1d4 100644 (file)
@@ -409,7 +409,15 @@ AC_SUBST(EVINCE_MIME_TYPES)
 
 AC_CONFIG_FILES([
 backend/Makefile
-comics/Makefile
+backend/comics/Makefile
+backend/djvu/Makefile
+backend/dvi/Makefile
+backend/dvi/mdvi-lib/Makefile
+backend/impress/Makefile
+backend/pdf/Makefile
+backend/pixbuf/Makefile
+backend/ps/Makefile
+backend/tiff/Makefile
 cut-n-paste/Makefile
 cut-n-paste/recent-files/Makefile
 cut-n-paste/toolbar-editor/Makefile
@@ -423,22 +431,14 @@ data/icons/48x48/Makefile
 data/icons/Makefile
 data/icons/scalable/Makefile
 data/Makefile
-djvu/Makefile
-dvi/Makefile
-dvi/mdvi-lib/Makefile
 help/Makefile
-impress/Makefile
-lib/Makefile
+libdocument/Makefile
 Makefile
-pdf/Makefile
-pixbuf/Makefile
 po/Makefile.in
 properties/Makefile
-ps/Makefile
 shell/Makefile
 test/Makefile
 thumbnailer/Makefile
-tiff/Makefile
 ])
 
 AC_OUTPUT
index 79076abe84229d3d2ae50988048fb0fecbb98f2a..ada61f2ec7c97cf70fa0259b2897c18489276c72 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "ephy-zoom-control.h"
 #include "ephy-zoom.h"
-#include "ev-debug.h"
 
 #include <gtk/gtk.h>
 #include <gtk/gtkcombobox.h>
diff --git a/lib/Makefile.am b/lib/Makefile.am
deleted file mode 100644 (file)
index ef5ac4b..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-INCLUDES =                                     \
-       $(LIB_CFLAGS)                           \
-       $(WARN_CFLAGS)                          \
-       $(DISABLE_DEPRECATED)
-
-noinst_LTLIBRARIES = libev.la
-
-libev_la_SOURCES =                             \
-       ev-debug.c                              \
-       ev-debug.h                              \
-       ev-file-helpers.c                       \
-       ev-file-helpers.h                       \
-       ev-gui.c                                \
-       ev-gui.h                                \
-       ev-tooltip.c                            \
-       ev-tooltip.h
-
-libev_la_LIBADD =                                      \
-       $(top_builddir)/backend/libevbackend.la
diff --git a/lib/ev-debug.c b/lib/ev-debug.c
deleted file mode 100644 (file)
index 0173a7d..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-/*
- *  Copyright (C) 2003 Marco Pesenti Gritti
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2, or (at your option)
- *  any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- *  $Id$
- */
-
-#include "config.h"
-
-#include "ev-debug.h"
-
-#ifndef DISABLE_PROFILING
-
-#include <glib/gbacktrace.h>
-#include <string.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#ifdef HAVE_EXECINFO_H
-#include <execinfo.h>
-#endif
-
-static GHashTable *ev_profilers_hash = NULL;
-static const char *ev_profile_modules = NULL;
-static const char *ev_debug_break = NULL;
-
-#endif
-
-#ifndef DISABLE_LOGGING
-
-static const char *ev_log_modules;
-
-static void
-log_module (const gchar *log_domain,
-           GLogLevelFlags log_level,
-           const gchar *message,
-           gpointer user_data)
-{
-       gboolean should_log = FALSE;
-
-       if (!ev_log_modules) return;
-
-       if (strcmp (ev_log_modules, "all") != 0)
-       {
-               char **modules;
-               int i;
-
-               modules = g_strsplit (ev_log_modules, ":", 100);
-
-               for (i = 0; modules[i] != NULL; i++)
-               {
-                       if (strstr (message, modules [i]) != NULL)
-                       {
-                               should_log = TRUE;
-                               break;
-                       }
-               }
-
-               g_strfreev (modules);
-       }
-       else
-       {
-               should_log = TRUE;
-       }
-
-       if (should_log)
-       {
-               g_print ("%s\n", message);
-       }
-}
-
-#define MAX_DEPTH 200
-
-static void 
-trap_handler (const char *log_domain,
-             GLogLevelFlags log_level,
-             const char *message,
-             gpointer user_data)
-{
-       g_log_default_handler (log_domain, log_level, message, user_data);
-
-       if (ev_debug_break != NULL &&
-           (log_level & (G_LOG_LEVEL_WARNING |
-                         G_LOG_LEVEL_ERROR |
-                         G_LOG_LEVEL_CRITICAL |
-                         G_LOG_FLAG_FATAL)))
-       {
-               if (strcmp (ev_debug_break, "stack") == 0)
-               {
-#ifdef HAVE_EXECINFO_H
-                       void *array[MAX_DEPTH];
-                       size_t size;
-                       
-                       size = backtrace (array, MAX_DEPTH);
-                       backtrace_symbols_fd (array, size, 2);
-#else
-                       g_on_error_stack_trace (g_get_prgname ());
-#endif
-               }
-               else if (strcmp (ev_debug_break, "trap") == 0)
-               {
-                       G_BREAKPOINT ();
-               }
-               else if (strcmp (ev_debug_break, "suspend") == 0)
-               {
-                       g_print ("Suspending program; attach with the debugger.\n");
-
-                       raise (SIGSTOP);
-               }
-       }
-}
-
-#endif
-
-void
-ev_debug_init (void)
-{
-#ifndef DISABLE_LOGGING
-       ev_log_modules = g_getenv ("EV_LOG_MODULES");
-       ev_debug_break = g_getenv ("EV_DEBUG_BREAK");
-
-       g_log_set_default_handler (trap_handler, NULL);
-
-       g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, log_module, NULL);
-
-#endif
-#ifndef DISABLE_PROFILING
-       ev_profile_modules = g_getenv ("EV_PROFILE_MODULES");
-#endif
-}
-
-#ifndef DISABLE_PROFILING
-
-static EvProfiler *
-ev_profiler_new (const char *name, const char *module)
-{
-       EvProfiler *profiler;
-
-       profiler = g_new0 (EvProfiler, 1);
-       profiler->timer = g_timer_new ();
-       profiler->name  = g_strdup (name);
-       profiler->module  = g_strdup (module);
-
-       g_timer_start (profiler->timer);
-
-       return profiler;
-}
-
-static gboolean
-ev_should_profile (const char *module)
-{
-       char **modules;
-       int i;
-       gboolean res = FALSE;
-
-       if (!ev_profile_modules) return FALSE;
-       if (strcmp (ev_profile_modules, "all") == 0) return TRUE;
-
-       modules = g_strsplit (ev_profile_modules, ":", 100);
-
-       for (i = 0; modules[i] != NULL; i++)
-       {
-               if (strcmp (module, modules [i]) == 0)
-               {
-                       res = TRUE;
-                       break;
-               }
-       }
-
-       g_strfreev (modules);
-
-       return res;
-}
-
-static void
-ev_profiler_dump (EvProfiler *profiler)
-{
-       double seconds;
-
-       g_return_if_fail (profiler != NULL);
-
-       seconds = g_timer_elapsed (profiler->timer, NULL);
-
-       g_print ("[ %s ] %s %f s elapsed\n",
-                profiler->module, profiler->name,
-                seconds);
-}
-
-static void
-ev_profiler_free (EvProfiler *profiler)
-{
-       g_return_if_fail (profiler != NULL);
-
-       g_timer_destroy (profiler->timer);
-       g_free (profiler->name);
-       g_free (profiler->module);
-       g_free (profiler);
-}
-
-void
-ev_profiler_start (const char *name, const char *module)
-{
-       EvProfiler *profiler;
-
-       if (ev_profilers_hash == NULL)
-       {
-               ev_profilers_hash =
-                       g_hash_table_new_full (g_str_hash, g_str_equal,
-                                              g_free, NULL);
-       }
-
-       if (!ev_should_profile (module)) return;
-
-       profiler = ev_profiler_new (name, module);
-
-       g_hash_table_insert (ev_profilers_hash, g_strdup (name), profiler);
-}
-
-void
-ev_profiler_stop (const char *name)
-{
-       EvProfiler *profiler;
-
-       profiler = g_hash_table_lookup (ev_profilers_hash, name);
-       if (profiler == NULL) return;
-       g_hash_table_remove (ev_profilers_hash, name);
-
-       ev_profiler_dump (profiler);
-       ev_profiler_free (profiler);
-}
-
-#endif
diff --git a/lib/ev-debug.h b/lib/ev-debug.h
deleted file mode 100644 (file)
index 53c1e61..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- *  Copyright (C) 2003 Marco Pesenti Gritti
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2, or (at your option)
- *  any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- *  $Id$
- */
-
-#ifndef EV_DEBUG_H
-#define EV_DEBUG_H
-
-#include "config.h"
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-#ifndef GNOME_ENABLE_DEBUG
-#define DISABLE_LOGGING
-#define DISABLE_PROFILING
-#endif
-
-#if defined(G_HAVE_GNUC_VARARGS)
-
-#ifdef DISABLE_LOGGING
-#define LOG(msg, args...) G_STMT_START { } G_STMT_END
-#else
-#define LOG(msg, args...)                      \
-g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,                \
-       "[ %s ] " msg,                          \
-       __FILE__ , ## args)
-#endif
-
-#elif defined(G_HAVE_ISO_VARARGS)
-
-#define LOG(...) G_STMT_START { } G_STMT_END
-
-#else /* no varargs macros */
-
-static void LOG(const char *format, ...) {}
-
-#endif
-
-#ifdef DISABLE_PROFILING
-#define START_PROFILER(name)
-#define STOP_PROFILER(name)
-#else
-#define START_PROFILER(name)   \
-ev_profiler_start (name, __FILE__);
-#define STOP_PROFILER(name)    \
-ev_profiler_stop (name);
-#endif
-
-typedef struct
-{
-       GTimer *timer;
-       char *name;
-       char *module;
-} EvProfiler;
-
-void           ev_debug_init           (void);
-
-#ifndef DISABLE_PROFILING
-
-void           ev_profiler_start       (const char *name,
-                                        const char *module);
-
-void           ev_profiler_stop        (const char *name);
-
-#endif
-
-G_END_DECLS
-
-#endif
diff --git a/lib/ev-gui.c b/lib/ev-gui.c
deleted file mode 100644 (file)
index 595be67..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- *  Copyright (C) 2002 Marco Pesenti Gritti
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2, or (at your option)
- *  any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- *  $Id$
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gtk/gtktreeview.h>
-#include <gtk/gtktreeselection.h>
-
-#include "ev-gui.h"
-
-static void
-ev_gui_sanitise_popup_position (GtkMenu *menu,
-                               GtkWidget *widget,
-                               gint *x,
-                               gint *y)
-{
-       GdkScreen *screen = gtk_widget_get_screen (widget);
-       gint monitor_num;
-       GdkRectangle monitor;
-       GtkRequisition req;
-
-       g_return_if_fail (widget != NULL);
-
-       gtk_widget_size_request (GTK_WIDGET (menu), &req);
-
-       monitor_num = gdk_screen_get_monitor_at_point (screen, *x, *y);
-       gtk_menu_set_monitor (menu, monitor_num);
-       gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
-
-       *x = CLAMP (*x, monitor.x, monitor.x + MAX (0, monitor.width - req.width));
-       *y = CLAMP (*y, monitor.y, monitor.y + MAX (0, monitor.height - req.height));
-}
-
-void
-ev_gui_menu_position_tree_selection (GtkMenu   *menu,
-                                    gint      *x,
-                                    gint      *y,
-                                    gboolean  *push_in,
-                                    gpointer  user_data)
-{
-       GtkTreeSelection *selection;
-       GList *selected_rows;
-       GtkTreeModel *model;
-       GtkTreeView *tree_view = GTK_TREE_VIEW (user_data);
-       GtkWidget *widget = GTK_WIDGET (user_data);
-       GtkRequisition req;
-       GdkRectangle visible;
-
-       gtk_widget_size_request (GTK_WIDGET (menu), &req);
-       gdk_window_get_origin (widget->window, x, y);
-
-       *x += (widget->allocation.width - req.width) / 2;
-
-       /* Add on height for the treeview title */
-       gtk_tree_view_get_visible_rect (tree_view, &visible);
-       *y += widget->allocation.height - visible.height;
-
-       selection = gtk_tree_view_get_selection (tree_view);
-       selected_rows = gtk_tree_selection_get_selected_rows (selection, &model);
-       if (selected_rows)
-       {
-               GdkRectangle cell_rect;
-
-               gtk_tree_view_get_cell_area (tree_view, selected_rows->data,
-                                            NULL, &cell_rect);
-
-               *y += CLAMP (cell_rect.y + cell_rect.height, 0, visible.height);
-
-               g_list_foreach (selected_rows, (GFunc)gtk_tree_path_free, NULL);
-               g_list_free (selected_rows);
-       }
-
-       ev_gui_sanitise_popup_position (menu, widget, x, y);
-}
diff --git a/lib/ev-gui.h b/lib/ev-gui.h
deleted file mode 100644 (file)
index 79323e6..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- *  Copyright (C) 2002 Marco Pesenti Gritti
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2, or (at your option)
- *  any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- *  $Id$
- */
-
-#ifndef EPHY_GUI_H
-#define EPHY_GUI_H
-
-#include <gtk/gtkmenu.h>
-
-G_BEGIN_DECLS
-
-void ev_gui_menu_position_tree_selection (GtkMenu   *menu,
-                                         gint      *x,
-                                         gint      *y,
-                                         gboolean  *push_in,
-                                         gpointer   user_data);
-G_END_DECLS
-
-#endif
diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am
new file mode 100644 (file)
index 0000000..73340ff
--- /dev/null
@@ -0,0 +1,122 @@
+INCLUDES=                                      \
+       -DEVINCE_UIDIR=\"$(pkgdatadir)\"        \
+       -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
+       -I$(top_srcdir)/backend/pdf                     \
+       -I$(top_srcdir)/backend/pixbuf                  \
+       -I$(top_srcdir)/backend/tiff                    \
+       -I$(top_srcdir)/backend/ps                      \
+       -I$(top_srcdir)/backend/djvu                    \
+       -I$(top_srcdir)/backend/dvi                     \
+       -I$(top_srcdir)/backend/impress                 \
+       -I$(top_srcdir)/backend/comics                  \
+       $(BACKEND_CFLAGS)                       \
+       $(WARN_CFLAGS)                          \
+       $(DISABLE_DEPRECATED)
+
+noinst_LTLIBRARIES = libevbackend.la
+
+libevbackend_la_SOURCES=                       \
+       ev-async-renderer.c                     \
+       ev-async-renderer.h                     \
+       ev-attachment.c                         \
+       ev-attachment.h                         \
+       ev-backend-marshal.c                    \
+       ev-link.c                               \
+       ev-link.h                               \
+       ev-link-action.c                        \
+       ev-link-action.h                        \
+       ev-link-dest.c                          \
+       ev-link-dest.h                          \
+       ev-image.c                              \
+       ev-image.h                              \
+       ev-document.c                           \
+       ev-document.h                           \
+       ev-document-factory.c                   \
+       ev-document-factory.h                   \
+       ev-document-thumbnails.c                \
+       ev-document-thumbnails.h                \
+       ev-document-fonts.c                     \
+       ev-document-fonts.h                     \
+       ev-document-links.c                     \
+       ev-document-links.h                     \
+       ev-document-images.c                    \
+       ev-document-images.h                    \
+       ev-document-security.c                  \
+       ev-document-security.h                  \
+       ev-document-find.c                      \
+       ev-document-find.h                      \
+       ev-document-info.h                      \
+       ev-document-transition.h                \
+       ev-document-transition.c                \
+       ev-file-exporter.c                      \
+       ev-file-exporter.h                      \
+       ev-file-helpers.c                       \
+       ev-file-helpers.h                       \
+       ev-render-context.h                     \
+       ev-render-context.c                     \
+       ev-selection.h                          \
+       ev-selection.c                          \
+       ev-document-misc.h                      \
+       ev-document-misc.c
+
+libevbackend_la_LIBADD =
+
+if ENABLE_PDF
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/pdf/libpdfdocument.la
+endif
+
+if ENABLE_PS
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/ps/libpsdocument.la
+endif
+
+if ENABLE_PIXBUF
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/pixbuf/libpixbufdocument.la
+endif
+
+if ENABLE_DJVU
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/djvu/libgtkdjvu.la
+endif
+
+if ENABLE_TIFF
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/tiff/libtiffdocument.la
+endif
+
+if ENABLE_DVI
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/dvi/libgtkdvi.la
+endif
+
+if ENABLE_COMICS
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/comics/libcomicsdocument.la
+endif
+
+if ENABLE_IMPRESS
+libevbackend_la_LIBADD +=                      \
+       $(top_builddir)/backend/impress/libimpressdocument.la
+endif
+
+BUILT_SOURCES=                         \
+       ev-backend-marshalers.h         \
+       ev-backend-marshalers.c
+
+CLEANFILES = $(BUILT_SOURCES)
+
+ev-backend-marshalers.h: ev-backend-marshalers.list
+       $(GLIB_GENMARSHAL) --prefix=_ev_backend_marshal $(srcdir)/ev-backend-marshalers.list --header > $@
+
+ev-backend-marshalers.c: ev-backend-marshalers.list
+       $(GLIB_GENMARSHAL) --prefix=_ev_backend_marshal $(srcdir)/ev-backend-marshalers.list --body > $@
+
+ev-backend-marshal.c: ev-backend-marshalers.h ev-backend-marshalers.c
+
+noinst_HEADERS = \
+       ev-backend-marshalers.h
+
+EXTRA_DIST= \
+       ev-backend-marshalers.list
similarity index 99%
rename from lib/ev-file-helpers.c
rename to libdocument/ev-file-helpers.c
index 044aeaeee2c4a5bf164b4ecec032d41c7ca65c73..b6a50b6f8c470a5f1dbce4710007af53c496e95f 100644 (file)
@@ -28,7 +28,7 @@
 #include <string.h>
 #include <glib.h>
 #include <glib/gstdio.h>
-#include <libgnome/gnome-init.h>
+#include <errno.h>
 #include <libgnomevfs/gnome-vfs-uri.h>
 #include <libgnomevfs/gnome-vfs-utils.h>
 #include <libgnomevfs/gnome-vfs-ops.h>
similarity index 100%
rename from backend/ev-image.c
rename to libdocument/ev-image.c
similarity index 100%
rename from backend/ev-image.h
rename to libdocument/ev-image.h
similarity index 100%
rename from backend/ev-link.c
rename to libdocument/ev-link.c
similarity index 100%
rename from backend/ev-link.h
rename to libdocument/ev-link.h
index 96b81acc10d2936d49da9c1c3f2a39de696baa1c..4846c8b0a2eea59f714926f66883e8eae620ecbf 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-08  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * POTFILES.in:
+
 2007-01-08  David Lodge <dave@cirt.net>
 
        * en_GB.po: Updated English (British) translation
index 7965b144b951281026d4c32d0c11b6165e798a67..06528e08ceed71a4dc3d9e496449786ae7c08c48 100644 (file)
@@ -1,9 +1,14 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
 [encoding: UTF-8]
-backend/ev-attachment.c
-backend/ev-document-factory.c
-comics/comics-document.c
+backend/comics/comics-document.c
+backend/dvi/dvi-document.c
+backend/pdf/ev-poppler.c
+backend/impress/zip.c
+backend/ps/gsdefaults.c
+backend/ps/ps-document.c
+libdocument/ev-attachment.c
+libdocument/ev-document-factory.c
 cut-n-paste/recent-files/egg-recent-view-uimanager.c
 cut-n-paste/toolbar-editor/egg-editable-toolbar.c
 cut-n-paste/toolbar-editor/egg-toolbar-editor.c
@@ -13,13 +18,8 @@ data/evince.desktop.in.in
 data/evince-password.glade
 data/evince-properties.glade
 data/evince.schemas.in
-dvi/dvi-document.c
-pdf/ev-poppler.cc
-impress/zip.c
 properties/ev-properties-main.c
 properties/ev-properties-view.c
-ps/gsdefaults.c
-ps/ps-document.c
 shell/eggfindbar.c
 shell/ev-application.c
 shell/ev-history.c
index b4ef6f051575362f9899c293b6dd1f1b46a0435e..f25ef6f690ce2ead6fd810358312f1eb69f87c98 100644 (file)
@@ -1,7 +1,7 @@
 INCLUDES=                                      \
        -DDATADIR=\"$(pkgdatadir)\"             \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
-       -I$(top_srcdir)/backend                 \
+       -I$(top_srcdir)/libdocument             \
        $(FRONTEND_CFLAGS)                      \
        $(NAUTILUS_CFLAGS)                      \
        $(DISABLE_DEPRECATED)                   \
@@ -27,8 +27,8 @@ libevince_properties_page_la_SOURCES =        \
        ev-properties-main.c
 
 libevince_properties_page_la_LIBADD =          \
-       $(top_builddir)/lib/libev.la            \
        libevproperties.la                      \
+       $(top_builddir)/libdocument/libevbackend.la     \
        $(FRONTEND_LIBS)                        \
        $(NAUTILUS_LIBS)
 
index 30335045a99e09fd1fdcb7751c55428e6aff6703..3bdfee891d4f3a1cbc8ed982cf754f9c737e53cd 100644 (file)
@@ -1,11 +1,10 @@
 INCLUDES=                                              \
        -DDATADIR=\"$(pkgdatadir)\"                     \
        -DGNOMEDATADIR=\"$(datadir)\"                   \
-       -I$(top_srcdir)/lib                             \
        -I$(top_srcdir)/cut-n-paste/zoom-control/       \
        -I$(top_srcdir)/cut-n-paste/toolbar-editor/     \
        -I$(top_srcdir)/cut-n-paste/totem-screensaver/  \
-       -I$(top_srcdir)/backend                         \
+       -I$(top_srcdir)/libdocument                     \
        -I$(top_srcdir)/properties                      \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"          \
        -DGNOMEICONDIR=\""$(datadir)/pixmaps"\"         \
@@ -81,6 +80,8 @@ evince_SOURCES=                               \
        ev-sidebar-thumbnails.h         \
        ev-stock-icons.c                \
        ev-stock-icons.h                \
+       ev-tooltip.c                    \
+       ev-tooltip.h                    \
        main.c
 
 
@@ -96,7 +97,7 @@ evince_LDADD=                                                         \
        $(top_builddir)/cut-n-paste/toolbar-editor/libtoolbareditor.la  \
        $(top_builddir)/cut-n-paste/totem-screensaver/libtotemscrsaver.la       \
        $(top_builddir)/properties/libevproperties.la                   \
-       $(top_builddir)/lib/libev.la                                    \
+       $(top_builddir)/libdocument/libevbackend.la                     \
        $(SHELL_LIBS)                                                   \
        $(GNOME_PRINT_LIBS)
 
index 53e97c2e2a7b83bad06d624f0f12a7c68a2d56a1..e0d068a17eb6ef988757cee832b25f4a3bb668b1 100644 (file)
 #ifndef EV_APPLICATION_H
 #define EV_APPLICATION_H
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <glib/gerror.h>
 #include <glib-object.h>
 
index 46394019f47a248874b097cf9f70c3d4eb181851..fbf1b73893e0a814c8a100335acbab00925c2835 100644 (file)
@@ -33,7 +33,6 @@
 #include "ev-job-queue.h"
 #include "ev-document-links.h"
 #include "ev-window.h"
-#include "ev-gui.h"
 
 struct _EvSidebarLinksPrivate {
        GtkWidget *tree_view;
index 71b408dfa2509fae40265ffbbf6ab69f70521c0a..36fb1da2250d0ec448a29a14677ea041390fd806 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <gtk/gtkvbox.h>
 #include "ev-document.h"
+#include "ev-utils.h"
 
 G_BEGIN_DECLS
 
similarity index 100%
rename from lib/ev-tooltip.c
rename to shell/ev-tooltip.c
similarity index 100%
rename from lib/ev-tooltip.h
rename to shell/ev-tooltip.h
index 38281f6d0f33e4b0ef8adb875e4489641df44d55..90217262f3dbc2a16041d07346affbfd4fa5ee21 100644 (file)
@@ -304,3 +304,68 @@ save_print_config_to_file (GnomePrintConfig *config)
 }
 #endif /* WITH_GNOME_PRINT */
 
+static void
+ev_gui_sanitise_popup_position (GtkMenu *menu,
+                               GtkWidget *widget,
+                               gint *x,
+                               gint *y)
+{
+       GdkScreen *screen = gtk_widget_get_screen (widget);
+       gint monitor_num;
+       GdkRectangle monitor;
+       GtkRequisition req;
+
+       g_return_if_fail (widget != NULL);
+
+       gtk_widget_size_request (GTK_WIDGET (menu), &req);
+
+       monitor_num = gdk_screen_get_monitor_at_point (screen, *x, *y);
+       gtk_menu_set_monitor (menu, monitor_num);
+       gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
+
+       *x = CLAMP (*x, monitor.x, monitor.x + MAX (0, monitor.width - req.width));
+       *y = CLAMP (*y, monitor.y, monitor.y + MAX (0, monitor.height - req.height));
+}
+
+void
+ev_gui_menu_position_tree_selection (GtkMenu   *menu,
+                                    gint      *x,
+                                    gint      *y,
+                                    gboolean  *push_in,
+                                    gpointer  user_data)
+{
+       GtkTreeSelection *selection;
+       GList *selected_rows;
+       GtkTreeModel *model;
+       GtkTreeView *tree_view = GTK_TREE_VIEW (user_data);
+       GtkWidget *widget = GTK_WIDGET (user_data);
+       GtkRequisition req;
+       GdkRectangle visible;
+
+       gtk_widget_size_request (GTK_WIDGET (menu), &req);
+       gdk_window_get_origin (widget->window, x, y);
+
+       *x += (widget->allocation.width - req.width) / 2;
+
+       /* Add on height for the treeview title */
+       gtk_tree_view_get_visible_rect (tree_view, &visible);
+       *y += widget->allocation.height - visible.height;
+
+       selection = gtk_tree_view_get_selection (tree_view);
+       selected_rows = gtk_tree_selection_get_selected_rows (selection, &model);
+       if (selected_rows)
+       {
+               GdkRectangle cell_rect;
+
+               gtk_tree_view_get_cell_area (tree_view, selected_rows->data,
+                                            NULL, &cell_rect);
+
+               *y += CLAMP (cell_rect.y + cell_rect.height, 0, visible.height);
+
+               g_list_foreach (selected_rows, (GFunc)gtk_tree_path_free, NULL);
+               g_list_free (selected_rows);
+       }
+
+       ev_gui_sanitise_popup_position (menu, widget, x, y);
+}
+
index 1d7e882f5fec2e59e248297ff11fb2ce111370fc..5afb5a68c6bd5bace84ab26542e3c07e7ac2568d 100644 (file)
@@ -34,6 +34,12 @@ GdkPixbuf*           ev_pixbuf_add_shadow (GdkPixbuf *src, int size,
 
 void                   ev_print_region_contents (GdkRegion *region);
 
+void ev_gui_menu_position_tree_selection (GtkMenu   *menu,
+                                         gint      *x,
+                                         gint      *y,
+                                         gboolean  *push_in,
+                                         gpointer   user_data);
+
 #ifdef WITH_GNOME_PRINT
 GnomePrintConfig*      load_print_config_from_file (void);
 void                   save_print_config_to_file (GnomePrintConfig *config);
index 1e156d5019006250242ec225b64753b3dc51752d..549c25694d17b359f89bf6b8d60005fa940a4990 100644 (file)
@@ -39,7 +39,6 @@
 #include "ev-document-find.h"
 #include "ev-document-transition.h"
 #include "ev-document-misc.h"
-#include "ev-debug.h"
 #include "ev-job-queue.h"
 #include "ev-page-cache.h"
 #include "ev-pixbuf-cache.h"
@@ -2947,8 +2946,6 @@ ev_view_finalize (GObject *object)
 {
        EvView *view = EV_VIEW (object);
 
-       LOG ("Finalize");
-
        g_free (view->status);
        g_free (view->find_status);
 
index c0adf8e9f9a08e672c493394571050d230bd4a91..0bba71dea002a2017c866235da55634c3d96ea57 100644 (file)
@@ -68,7 +68,6 @@
 #include "ev-metadata-manager.h"
 #include "ev-file-helpers.h"
 #include "ev-utils.h"
-#include "ev-debug.h"
 #include "ev-history.h"
 #include "ev-image.h"
 
index fba38a790359cbe46b4379ca087a9aea958119e0..3c5a83d33b1226c0646aa2f33ec61970e9451062 100644 (file)
@@ -38,7 +38,6 @@
 #endif
 
 #include "ev-stock-icons.h"
-#include "ev-debug.h"
 #include "ev-job-queue.h"
 #include "ev-file-helpers.h"
 
@@ -367,7 +366,6 @@ main (int argc, char *argv[])
        g_set_application_name (_("Evince Document Viewer"));
 
        ev_file_helpers_init ();
-       ev_debug_init ();
        ev_stock_icons_init ();
        gtk_window_set_default_icon_name ("evince");
 
index dfb4c08fc61ffb22cd0bd101acc12f1022076261..dc039112988285090109b60b8429aeb232ba77dc 100644 (file)
@@ -2,8 +2,7 @@
 
 INCLUDES=                                      \
        -DDATADIR=\"$(pkgdatadir)\"             \
-       -I$(top_srcdir)/lib                     \
-       -I$(top_srcdir)/backend                 \
+       -I$(top_srcdir)/libdocument             \
        -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
        -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
        $(FRONTEND_CFLAGS)                      \
@@ -16,7 +15,7 @@ evince_thumbnailer_SOURCES=   \
        evince-thumbnailer.c
 
 evince_thumbnailer_LDADD=              \
-       $(top_builddir)/lib/libev.la    \
+       $(top_builddir)/libdocument/libevbackend.la     \
        $(FRONTEND_LIBS)                \
        $(DJVU_LIBS)