evince r3381 - in trunk: . backend/comics backend/djvu backend/dvi backend/impress backend/pdf backend/pixbuf backend/ps backend/tiff cut-n-paste/evmountoperation cut-n-paste/gimpcellrenderertoggle help/reference libdocument libview properties shell thumbnailer



Author: chpe
Date: Sun Jan 25 15:08:57 2009
New Revision: 3381
URL: http://svn.gnome.org/viewvc/evince?rev=3381&view=rev

Log:
        * configure.ac:
        * evince-document.pc.in: Renamed from evince-backend.pc.in.
        * libdocument/Makefile.am: Renamed library to libevdocument.la.
        * libview/Makefile.am:
        * shell/Makefile.am:
        * backend/*/Makefile.am: Adapt to changed library name.

        * libdocument/Makefile.am:
        * libview/Makefile.am: Change the installed headers path to match
        the directory names in SVN.

        * evince-document.h:
        * evince-view.h: Add single headers. Bug #568227.

        * libdocument/*.h:
        * libview/*.h: Add single headers guards.

        * libview/Makefile.am:
        * libdocument/Makefile.am:
        * backend/*/Makefile.am:
        * help/reference/Makefile.am: Define EVINCE_COMPILATION, so we can
        still include individual headers.

        * properties/Makefile.am:
        * properties/ev-properties-main.c:
        * properties/ev-properties-view.h:
        * thumbnailer/Makefile.am:
        * thumbnailer/evince-thumbnailer.c: Include only evince-document.h.

        * libdocument/Makefile.am:
        * libview/Makefile.am: Generate type builtins from all installed headers.
        * libdocument/ev-link-action.[ch]:
        * libdocument/ev-link-dest.[ch]:
        * libdocument/ev-transition-effect.[ch]:
        * libview/ev-view.[ch]: Remove handcoded type builtins.

        * libdocument/Makefile.am:
        * evince-document.h: Add ev-document-factory.h to the public headers.

Added:
   trunk/.gitignore
   trunk/evince-document.h
   trunk/evince-document.pc.in
      - copied, changed from r3380, /trunk/evince-backend.pc.in
   trunk/evince-view.h
Removed:
   trunk/evince-backend.pc.in
Modified:
   trunk/ChangeLog
   trunk/Makefile.am
   trunk/backend/comics/Makefile.am
   trunk/backend/djvu/Makefile.am
   trunk/backend/dvi/Makefile.am
   trunk/backend/impress/Makefile.am
   trunk/backend/pdf/Makefile.am
   trunk/backend/pixbuf/Makefile.am
   trunk/backend/ps/Makefile.am
   trunk/backend/tiff/Makefile.am
   trunk/configure.ac
   trunk/cut-n-paste/evmountoperation/Makefile.am
   trunk/cut-n-paste/gimpcellrenderertoggle/Makefile.am
   trunk/evince-view.pc.in
   trunk/help/reference/Makefile.am
   trunk/libdocument/Makefile.am
   trunk/libdocument/ev-async-renderer.h
   trunk/libdocument/ev-attachment.h
   trunk/libdocument/ev-backends-manager.h
   trunk/libdocument/ev-debug.h
   trunk/libdocument/ev-document-factory.h
   trunk/libdocument/ev-document-find.h
   trunk/libdocument/ev-document-fonts.h
   trunk/libdocument/ev-document-forms.h
   trunk/libdocument/ev-document-images.h
   trunk/libdocument/ev-document-info.h
   trunk/libdocument/ev-document-layers.h
   trunk/libdocument/ev-document-links.h
   trunk/libdocument/ev-document-misc.h
   trunk/libdocument/ev-document-security.h
   trunk/libdocument/ev-document-thumbnails.h
   trunk/libdocument/ev-document-transition.h
   trunk/libdocument/ev-document-type-builtins.c.template
   trunk/libdocument/ev-document-type-builtins.h.template
   trunk/libdocument/ev-document.h
   trunk/libdocument/ev-file-exporter.h
   trunk/libdocument/ev-file-helpers.h
   trunk/libdocument/ev-form-field.h
   trunk/libdocument/ev-image.h
   trunk/libdocument/ev-layer.h
   trunk/libdocument/ev-link-action.c
   trunk/libdocument/ev-link-action.h
   trunk/libdocument/ev-link-dest.c
   trunk/libdocument/ev-link-dest.h
   trunk/libdocument/ev-link.h
   trunk/libdocument/ev-module.h
   trunk/libdocument/ev-page.h
   trunk/libdocument/ev-render-context.h
   trunk/libdocument/ev-selection.h
   trunk/libdocument/ev-transition-effect.c
   trunk/libdocument/ev-transition-effect.h
   trunk/libview/Makefile.am
   trunk/libview/ev-job-scheduler.h
   trunk/libview/ev-jobs.h
   trunk/libview/ev-page-cache.h
   trunk/libview/ev-pixbuf-cache.h
   trunk/libview/ev-timeline.h
   trunk/libview/ev-transition-animation.h
   trunk/libview/ev-view-accessible.h
   trunk/libview/ev-view-private.h
   trunk/libview/ev-view-type-builtins.c.template
   trunk/libview/ev-view-type-builtins.h.template
   trunk/libview/ev-view.c
   trunk/libview/ev-view.h
   trunk/properties/Makefile.am
   trunk/properties/ev-properties-main.c
   trunk/properties/ev-properties-view.h
   trunk/shell/Makefile.am
   trunk/shell/ev-window.c
   trunk/thumbnailer/Makefile.am
   trunk/thumbnailer/evince-thumbnailer.c

Added: trunk/.gitignore
==============================================================================
--- (empty file)
+++ trunk/.gitignore	Sun Jan 25 15:08:57 2009
@@ -0,0 +1,41 @@
+*~
+*/*~
+*/*/*~
+*/*/*/*~
+*.orig
+*.rej
+*/*.orig
+*/*.rej
+*/*/*.orig
+*/*/*.rej
+*/*/*/*.orig
+*/*/*/*.rej
+INSTALL
+Makefile.in
+*/Makefile.in
+*/*/Makefile.in
+*/*/*/Makefile.in
+*/*/*/*/Makefile.in
+aclocal.m4
+autom4te.cache
+compile
+config.guess
+config.h.in
+config.sub
+configure
+depcomp
+gnome-doc-utils.make
+gtk-doc.make
+help/reference/*.bak
+help/reference/*.stamp
+help/reference/html
+help/reference/tmpl/*.sgml.bak
+help/reference/xml
+install-sh
+intltool-extract.in
+intltool-merge.in
+intltool-update.in
+ltmain.sh
+missing
+mkinstalldirs
+po/Makefile.in.in

Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am	(original)
+++ trunk/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -14,10 +14,19 @@
 SUBDIRS += thumbnailer
 endif
 
+NULL =
+
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = \
-	evince-backend-$(EV_API_VERSION).pc \
-	evince-view-$(EV_API_VERSION).pc
+	evince-document-$(EV_API_VERSION).pc \
+	evince-view-$(EV_API_VERSION).pc \
+	$(NULL)
+
+headerdir = $(includedir)/evince/$(EV_API_VERSION)
+header_DATA = \
+	evince-document.h \
+	evince-view.h \
+	$(NULL)
 
 # Applications 
 

Modified: trunk/backend/comics/Makefile.am
==============================================================================
--- trunk/backend/comics/Makefile.am	(original)
+++ trunk/backend/comics/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -4,6 +4,7 @@
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/libdocument 		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)			\
 	$(LIB_CFLAGS)				\
 	$(WARN_CFLAGS)				\
@@ -17,7 +18,7 @@
 
 libcomicsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libcomicsdocument_la_LIBADD =				\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(BACKEND_LIBS)					\
 	$(LIB_LIBS)
 

Modified: trunk/backend/djvu/Makefile.am
==============================================================================
--- trunk/backend/djvu/Makefile.am	(original)
+++ trunk/backend/djvu/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -5,6 +5,7 @@
 	-I$(top_srcdir)/libdocument				\
 	-DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\" 	\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"			\
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)					\
 	$(DJVU_CFLAGS)						\
 	$(WARN_CFLAGS)						\
@@ -23,7 +24,7 @@
 
 libdjvudocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libdjvudocument_la_LIBADD =				\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(BACKEND_LIBS)					\
 	$(DJVU_LIBS)
 

Modified: trunk/backend/dvi/Makefile.am
==============================================================================
--- trunk/backend/dvi/Makefile.am	(original)
+++ trunk/backend/dvi/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -7,6 +7,7 @@
 	-I$(top_srcdir)/libdocument		\
 	-I$(srcdir)/mdvi-lib			\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
+	-DEVINCE_COMPILATION			\
 	$(WARN_CFLAGS)				\
 	$(BACKEND_CFLAGS)			\
 	$(SPECTRE_CFLAGS)			\
@@ -26,7 +27,7 @@
 libdvidocument_la_LIBADD = 				\
 	mdvi-lib/libmdvi.la				\
 	-lkpathsea					\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(BACKEND_LIBS)					\
 	$(SPECTRE_LIBS)
 

Modified: trunk/backend/impress/Makefile.am
==============================================================================
--- trunk/backend/impress/Makefile.am	(original)
+++ trunk/backend/impress/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -5,6 +5,7 @@
 	-I$(top_srcdir)/libdocument		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
 	-DDATADIR=\""$(datadir)"\"		\
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)			\
 	$(WARN_CFLAGS)				\
 	$(DISABLE_DEPRECATED)
@@ -43,7 +44,7 @@
 
 libimpressdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libimpressdocument_la_LIBADD =				\
-	$(top_builddir)/libdocument/libevbackend.la     \
+	$(top_builddir)/libdocument/libevdocument.la     \
 	$(BACKEND_LIBS)
 
 backend_in_files = impressdocument.evince-backend.in

Modified: trunk/backend/pdf/Makefile.am
==============================================================================
--- trunk/backend/pdf/Makefile.am	(original)
+++ trunk/backend/pdf/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -4,6 +4,7 @@
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/libdocument		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)			\
 	$(POPPLER_CFLAGS)                       \
 	$(WARN_CXXFLAGS)			\
@@ -17,7 +18,7 @@
 
 libpdfdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libpdfdocument_la_LIBADD =				\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(BACKEND_LIBS)					\
 	$(POPPLER_LIBS)					\
 	$(CAIRO_PDF_LIBS)				\
@@ -31,4 +32,4 @@
 
 EXTRA_DIST = $(backend_in_files)
 
-CLEANFILES = $(backend_DATA)
\ No newline at end of file
+CLEANFILES = $(backend_DATA)

Modified: trunk/backend/pixbuf/Makefile.am
==============================================================================
--- trunk/backend/pixbuf/Makefile.am	(original)
+++ trunk/backend/pixbuf/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -4,6 +4,7 @@
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/libdocument		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)			\
 	$(WARN_CFLAGS)				\
 	$(DISABLE_DEPRECATED)
@@ -16,7 +17,7 @@
 
 libpixbufdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libpixbufdocument_la_LIBADD =				\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(BACKEND_LIBS)
 
 backend_in_files = pixbufdocument.evince-backend.in

Modified: trunk/backend/ps/Makefile.am
==============================================================================
--- trunk/backend/ps/Makefile.am	(original)
+++ trunk/backend/ps/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -4,6 +4,7 @@
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/libdocument		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)			\
 	$(SPECTRE_CFLAGS)			\
 	$(WARN_CFLAGS)				\
@@ -17,7 +18,7 @@
 
 libpsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libpsdocument_la_LIBADD = 				\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(BACKEND_LIBS)					\
 	$(SPECTRE_LIBS)
 
@@ -29,4 +30,4 @@
 
 EXTRA_DIST = $(backend_in_files)
 
-CLEANFILES = $(backend_DATA)
\ No newline at end of file
+CLEANFILES = $(backend_DATA)

Modified: trunk/backend/tiff/Makefile.am
==============================================================================
--- trunk/backend/tiff/Makefile.am	(original)
+++ trunk/backend/tiff/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -4,6 +4,7 @@
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/libdocument		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
+	-DEVINCE_COMPILATION			\
 	$(BACKEND_CFLAGS)			\
 	$(WARN_CFLAGS)				\
 	$(DISABLE_DEPRECATED)
@@ -18,7 +19,7 @@
 
 libtiffdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
 libtiffdocument_la_LIBADD = 				\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	-ltiff
 
 backend_in_files = tiffdocument.evince-backend.in

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sun Jan 25 15:08:57 2009
@@ -21,11 +21,11 @@
 # - If the interface is the same as the previous version, change to C:R+1:A
 
 # Libtool version of the backend library
-m4_define([ev_backend_lt_current],[1])
-m4_define([ev_backend_lt_revision],[0])
-m4_define([ev_backend_lt_age],[0])
-m4_define([ev_backend_lt_version_info],[ev_backend_lt_current:ev_backend_lt_revision:ev_backend_lt_age])
-m4_define([ev_backend_lt_current_minus_age],[m4_eval(ev_backend_lt_current - ev_backend_lt_age)])
+m4_define([ev_document_lt_current],[1])
+m4_define([ev_document_lt_revision],[0])
+m4_define([ev_document_lt_age],[0])
+m4_define([ev_document_lt_version_info],[ev_document_lt_current:ev_document_lt_revision:ev_document_lt_age])
+m4_define([ev_document_lt_current_minus_age],[m4_eval(ev_document_lt_current - ev_document_lt_age)])
 
 # Libtool version of the view library
 m4_define([ev_view_lt_current],[1])
@@ -49,6 +49,7 @@
 AC_ISC_POSIX
 AC_PROG_CC
 AM_PROG_CC_STDC
+AM_PROG_CC_C_O
 AC_PROG_CXX
 AC_STDC_HEADERS
 IT_PROG_INTLTOOL([0.35.0])
@@ -456,8 +457,8 @@
 
 AC_SUBST([EV_API_VERSION],[ev_api_version])
 
-AC_SUBST([EV_BACKEND_LT_VERSION_INFO],[ev_backend_lt_version_info])
-AC_SUBST([EV_BACKEND_LT_CURRENT_MINUS_AGE],[ev_backend_lt_current_minus_age])
+AC_SUBST([EV_DOCUMENT_LT_VERSION_INFO],[ev_document_lt_version_info])
+AC_SUBST([EV_DOCUMENT_LT_CURRENT_MINUS_AGE],[ev_document_lt_current_minus_age])
 AC_SUBST([EV_VIEW_LT_VERSION_INFO],[ev_view_lt_version_info])
 AC_SUBST([EV_VIEW_LT_CURRENT_MINUS_AGE],[ev_view_lt_current_minus_age])
 
@@ -515,7 +516,7 @@
 thumbnailer/Makefile
 ])
 
-AC_CONFIG_FILES(evince-backend-[]ev_api_version[].pc:evince-backend.pc.in)
+AC_CONFIG_FILES(evince-document-[]ev_api_version[].pc:evince-document.pc.in)
 AC_CONFIG_FILES(evince-view-[]ev_api_version[].pc:evince-view.pc.in)
 
 AC_OUTPUT

Modified: trunk/cut-n-paste/evmountoperation/Makefile.am
==============================================================================
--- trunk/cut-n-paste/evmountoperation/Makefile.am	(original)
+++ trunk/cut-n-paste/evmountoperation/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -7,4 +7,4 @@
 libevmountoperation_la_CFLAGS =		\
 	$(SHELL_CORE_CFLAGS)		\
 	$(WARNING_CFLAGS)		\
-	$(DISABLE_DEPRECATED)
\ No newline at end of file
+	$(DISABLE_DEPRECATED)

Modified: trunk/cut-n-paste/gimpcellrenderertoggle/Makefile.am
==============================================================================
--- trunk/cut-n-paste/gimpcellrenderertoggle/Makefile.am	(original)
+++ trunk/cut-n-paste/gimpcellrenderertoggle/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -33,4 +33,4 @@
 gen_sources = xgen-wmh xgen-wmc $(libgimpcellrenderertoggle_la_built_sources)
 CLEANFILES = $(gen_sources)
 
-EXTRA_DIST = $(libgimpcellrenderertoggle_la_extra_sources)
\ No newline at end of file
+EXTRA_DIST = $(libgimpcellrenderertoggle_la_extra_sources)

Added: trunk/evince-document.h
==============================================================================
--- (empty file)
+++ trunk/evince-document.h	Sun Jan 25 15:08:57 2009
@@ -0,0 +1,57 @@
+/*
+ * Copyright  2009 Christian Persch
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by the
+ * Free Software Foundation; either version 2.1 of the License, 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 Lesser
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02110-1301  USA
+ */
+
+#ifndef EVINCE_DOCUMENT_H
+#define EVINCE_DOCUMENT_H
+
+#define __EV_EVINCE_DOCUMENT_H_INSIDE__
+
+#include <libdocument/ev-async-renderer.h>
+#include <libdocument/ev-attachment.h>
+#include <libdocument/ev-backends-manager.h>
+#include <libdocument/ev-document-factory.h>
+#include <libdocument/ev-document-find.h>
+#include <libdocument/ev-document-fonts.h>
+#include <libdocument/ev-document-forms.h>
+#include <libdocument/ev-document.h>
+#include <libdocument/ev-document-images.h>
+#include <libdocument/ev-document-info.h>
+#include <libdocument/ev-document-layers.h>
+#include <libdocument/ev-document-links.h>
+#include <libdocument/ev-document-misc.h>
+#include <libdocument/ev-document-security.h>
+#include <libdocument/ev-document-thumbnails.h>
+#include <libdocument/ev-document-transition.h>
+#include <libdocument/ev-document-type-builtins.h>
+#include <libdocument/ev-file-exporter.h>
+#include <libdocument/ev-file-helpers.h>
+#include <libdocument/ev-form-field.h>
+#include <libdocument/ev-image.h>
+#include <libdocument/ev-layer.h>
+#include <libdocument/ev-link-action.h>
+#include <libdocument/ev-link-dest.h>
+#include <libdocument/ev-link.h>
+#include <libdocument/ev-page.h>
+#include <libdocument/ev-render-context.h>
+#include <libdocument/ev-selection.h>
+#include <libdocument/ev-transition-effect.h>
+#include <libdocument/ev-version.h>
+
+#undef __EV_EVINCE_DOCUMENT_H_INSIDE__
+
+#endif /* !EVINCE_DOCUMENT_H */

Copied: trunk/evince-document.pc.in (from r3380, /trunk/evince-backend.pc.in)
==============================================================================
--- /trunk/evince-backend.pc.in	(original)
+++ trunk/evince-document.pc.in	Sun Jan 25 15:08:57 2009
@@ -3,9 +3,9 @@
 libdir= libdir@
 includedir= includedir@/evince/@EV_API_VERSION@
 
-Name: Evince Backend
+Name: Evince Document
 Description: GNOME document viewer backend library
 Version: @VERSION@
 Requires: gio-2.0 >= @GLIB_REQUIRED@ gtk+-2.0 >= @GTK_REQUIRED@
-Libs: -L${libdir} -levbackend
+Libs: -L${libdir} -levdocument
 Cflags: -I${includedir}

Added: trunk/evince-view.h
==============================================================================
--- (empty file)
+++ trunk/evince-view.h	Sun Jan 25 15:08:57 2009
@@ -0,0 +1,32 @@
+/*
+* Copyright  2009 Christian Persch
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by the
+ * Free Software Foundation; either version 2.1 of the License, 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 Lesser
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02110-1301  USA
+ */
+
+#ifndef EVINCE_VIEW_H
+#define EVINCE_VIEW_H
+
+#define __EV_EVINCE_VIEW_H_INSIDE__
+
+#include <libview/ev-job-scheduler.h>
+#include <libview/ev-jobs.h>
+#include <libview/ev-page-cache.h>
+#include <libview/ev-view.h>
+#include <libview/ev-view-type-builtins.h>
+
+#undef __EV_EVINCE_VIEW_H_INSIDE__
+
+#endif /* !EVINCE_VIEW_H */

Modified: trunk/evince-view.pc.in
==============================================================================
--- trunk/evince-view.pc.in	(original)
+++ trunk/evince-view.pc.in	Sun Jan 25 15:08:57 2009
@@ -6,6 +6,6 @@
 Name: Evince View
 Description: GNOME document viewer view library
 Version: @VERSION@
-Requires: evince-backend- EV_API_VERSION@ = @VERSION@ gthread-2.0
+Requires: evince-document- EV_API_VERSION@ = @VERSION@ gthread-2.0
 Libs: -L${libdir} -levview
 Cflags: -I${includedir}

Modified: trunk/help/reference/Makefile.am
==============================================================================
--- trunk/help/reference/Makefile.am	(original)
+++ trunk/help/reference/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -73,6 +73,8 @@
 # e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
 # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
 INCLUDES= \
+	-I$(top_srcdir)					\
+	-I$(top_builddir)				\
 	-I$(top_srcdir)/shell \
 	-DDATADIR=\"$(pkgdatadir)\"			\
 	-DGNOMEDATADIR=\"$(datadir)\"			\
@@ -82,10 +84,11 @@
 	-I$(top_srcdir)/libdocument			\
 	-I$(top_builddir)/libdocument			\
 	-I$(top_srcdir)/libview				\
-	-I$(top_builddir)/libview				\
+	-I$(top_builddir)/libview			\
 	-I$(top_srcdir)/properties			\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"		\
 	-DGNOMEICONDIR=\""$(datadir)/pixmaps"\" 	\
+	-DEVINCE_COMPILATION				\
 	$(SHELL_CFLAGS)					\
 	$(WARN_CFLAGS)					\
 	$(DISABLE_DEPRECATED)				\
@@ -101,7 +104,7 @@
 	$(top_builddir)/cut-n-paste/gimpcellrenderertoggle/libgimpcellrenderertoggle.la	\
 	$(top_builddir)/cut-n-paste/smclient/libsmclient.la		\
 	$(top_builddir)/properties/libevproperties.la			\
-	$(top_builddir)/libdocument/libevbackend.la			\
+	$(top_builddir)/libdocument/libevdocument.la			\
 	$(top_builddir)/libview/libevview.la				\
 	$(SHELL_LIBS)							\
 	$(GNOME_PRINT_LIBS)						\

Modified: trunk/libdocument/Makefile.am
==============================================================================
--- trunk/libdocument/Makefile.am	(original)
+++ trunk/libdocument/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -1,30 +1,14 @@
-INCLUDES=						\
-	-DG_LOG_DOMAIN=\"EvDocument\"			\
-	-DEVINCE_UIDIR=\"$(pkgdatadir)\"		\
-	-DGNOMELOCALEDIR=\"$(datadir)/locale\"		\
-	-DEV_BACKENDSDIR=\"$(libdir)/evince/backends\"	\
-	$(LIBDOCUMENT_CFLAGS)				\
-	$(WARN_CFLAGS)					\
-	$(DISABLE_DEPRECATED)
-
-lib_LTLIBRARIES = libevbackend.la
-
-libevbackend_la_LDFLAGS = \
-	-version-info $(EV_BACKEND_LT_VERSION_INFO)	\
-	-export-symbols-regex "^ev_*"	\
-	$(AM_LDFLAGS)
-
-libevbackend_la_LIBADD = $(LIBDOCUMENT_LIBS)
+lib_LTLIBRARIES = libevdocument.la
 
 NOINST_H_FILES =				\
 	ev-debug.h				\
-	ev-document-factory.h			\
 	ev-module.h
 
 INST_H_FILES = 					\
 	ev-async-renderer.h			\
 	ev-attachment.h				\
 	ev-backends-manager.h			\
+	ev-document-factory.h			\
 	ev-document-find.h			\
 	ev-document-fonts.h			\
 	ev-document-forms.h			\
@@ -52,10 +36,10 @@
 	ev-transition-effect.h			\
 	ev-version.h
 
-headerdir = $(includedir)/evince/$(EV_API_VERSION)/ev-backend
+headerdir = $(includedir)/evince/$(EV_API_VERSION)/libdocument
 header_DATA = $(INST_H_FILES)
 
-libevbackend_la_SOURCES=			\
+libevdocument_la_SOURCES=			\
 	ev-async-renderer.c			\
 	ev-attachment.c				\
 	ev-backends-manager.c			\
@@ -89,6 +73,27 @@
 	$(NOINST_H_FILES)			\
 	$(INST_H_FILES)
 
+libevdocument_la_CPPFLAGS = \
+	-DG_LOG_DOMAIN=\"EvDocument\"			\
+	-DEVINCE_UIDIR=\"$(pkgdatadir)\"		\
+	-DGNOMELOCALEDIR=\"$(datadir)/locale\"		\
+	-DEV_BACKENDSDIR=\"$(libdir)/evince/backends\"	\
+	-DEVINCE_COMPILATION				\
+	$(AM_CPPFLAGS)
+
+libevdocument_la_CFLAGS = \
+	$(LIBDOCUMENT_CFLAGS)	\
+	$(WARN_CFLAGS)		\
+	$(DISABLE_DEPRECATED)	\
+	$(AM_CFLAGS)
+
+libevdocument_la_LDFLAGS = \
+	-version-info $(EV_DOCUMENT_LT_VERSION_INFO)	\
+	-export-symbols-regex "^ev_*"	\
+	$(AM_LDFLAGS)
+
+libevdocument_la_LIBADD = $(LIBDOCUMENT_LIBS)
+
 BUILT_SOURCES = 			\
 	ev-document-type-builtins.c	\
 	ev-document-type-builtins.h
@@ -98,13 +103,13 @@
 ev-document-type-builtins.h: stamp-ev-document-type-builtins.h
 	@true
 
-stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template ev-document-info.h
+stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template $(INST_H_FILES)
 	$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
 	&& (cmp -s xgen-etbh ev-document-type-builtins.h || cp xgen-etbh ev-document-type-builtins.h ) \
 	&& rm -f xgen-etbh \
 	&& echo timestamp > $(@F)
 
-ev-document-type-builtins.c: ev-document-type-builtins.c.template ev-document-info.h
+ev-document-type-builtins.c: ev-document-type-builtins.c.template $(INST_H_FILES)
 	$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
 	&& (cmp -s xgen-etbc ev-document-type-builtins.c || cp xgen-etbc ev-document-type-builtins.c ) \
 	&& rm -f xgen-etbc
@@ -112,4 +117,3 @@
 EXTRA_DIST = \
 	ev-document-type-builtins.c.template \
 	ev-document-type-builtins.h.template
-

Modified: trunk/libdocument/ev-async-renderer.h
==============================================================================
--- trunk/libdocument/ev-async-renderer.h	(original)
+++ trunk/libdocument/ev-async-renderer.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  *
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_ASYNC_RENDERER_H
 #define EV_ASYNC_RENDERER_H
 

Modified: trunk/libdocument/ev-attachment.h
==============================================================================
--- trunk/libdocument/ev-attachment.h	(original)
+++ trunk/libdocument/ev-attachment.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef __EV_ATTACHMENT_H__
 #define __EV_ATTACHMENT_H__
 

Modified: trunk/libdocument/ev-backends-manager.h
==============================================================================
--- trunk/libdocument/ev-backends-manager.h	(original)
+++ trunk/libdocument/ev-backends-manager.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_BACKENDS_MANAGER
 #define EV_BACKENDS_MANAGER
 

Modified: trunk/libdocument/ev-debug.h
==============================================================================
--- trunk/libdocument/ev-debug.h	(original)
+++ trunk/libdocument/ev-debug.h	Sun Jan 25 15:08:57 2009
@@ -32,6 +32,10 @@
 
 /* Modified by Evince Team */
 
+#if !defined (EVINCE_COMPILATION)
+#error "This is a private header."
+#endif
+
 #ifndef __EV_DEBUG_H__
 #define __EV_DEBUG_H__
 

Modified: trunk/libdocument/ev-document-factory.h
==============================================================================
--- trunk/libdocument/ev-document-factory.h	(original)
+++ trunk/libdocument/ev-document-factory.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  *
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_FACTORY_H
 #define EV_DOCUMENT_FACTORY_H
 

Modified: trunk/libdocument/ev-document-find.h
==============================================================================
--- trunk/libdocument/ev-document-find.h	(original)
+++ trunk/libdocument/ev-document-find.h	Sun Jan 25 15:08:57 2009
@@ -19,6 +19,10 @@
  *  $Id$
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_FIND_H
 #define EV_DOCUMENT_FIND_H
 

Modified: trunk/libdocument/ev-document-fonts.h
==============================================================================
--- trunk/libdocument/ev-document-fonts.h	(original)
+++ trunk/libdocument/ev-document-fonts.h	Sun Jan 25 15:08:57 2009
@@ -21,6 +21,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_FONTS_H
 #define EV_DOCUMENT_FONTS_H
 

Modified: trunk/libdocument/ev-document-forms.h
==============================================================================
--- trunk/libdocument/ev-document-forms.h	(original)
+++ trunk/libdocument/ev-document-forms.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_FORMS_H
 #define EV_DOCUMENT_FORMS_H
 

Modified: trunk/libdocument/ev-document-images.h
==============================================================================
--- trunk/libdocument/ev-document-images.h	(original)
+++ trunk/libdocument/ev-document-images.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_IMAGES_H
 #define EV_DOCUMENT_IMAGES_H
 

Modified: trunk/libdocument/ev-document-info.h
==============================================================================
--- trunk/libdocument/ev-document-info.h	(original)
+++ trunk/libdocument/ev-document-info.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  *
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_INFO_H
 #define EV_DOCUMENT_INFO_H
 

Modified: trunk/libdocument/ev-document-layers.h
==============================================================================
--- trunk/libdocument/ev-document-layers.h	(original)
+++ trunk/libdocument/ev-document-layers.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_LAYERS_H
 #define EV_DOCUMENT_LAYERS_H
 

Modified: trunk/libdocument/ev-document-links.h
==============================================================================
--- trunk/libdocument/ev-document-links.h	(original)
+++ trunk/libdocument/ev-document-links.h	Sun Jan 25 15:08:57 2009
@@ -21,6 +21,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_LINKS_H
 #define EV_DOCUMENT_LINKS_H
 

Modified: trunk/libdocument/ev-document-misc.h
==============================================================================
--- trunk/libdocument/ev-document-misc.h	(original)
+++ trunk/libdocument/ev-document-misc.h	Sun Jan 25 15:08:57 2009
@@ -19,6 +19,10 @@
  *  $Id$
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_MISC_H
 #define EV_DOCUMENT_MISC_H
 

Modified: trunk/libdocument/ev-document-security.h
==============================================================================
--- trunk/libdocument/ev-document-security.h	(original)
+++ trunk/libdocument/ev-document-security.h	Sun Jan 25 15:08:57 2009
@@ -21,6 +21,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_SECURITY_H
 #define EV_DOCUMENT_SECURITY_H
 

Modified: trunk/libdocument/ev-document-thumbnails.h
==============================================================================
--- trunk/libdocument/ev-document-thumbnails.h	(original)
+++ trunk/libdocument/ev-document-thumbnails.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  *
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_THUMBNAILS_H
 #define EV_DOCUMENT_THUMBNAILS_H
 

Modified: trunk/libdocument/ev-document-transition.h
==============================================================================
--- trunk/libdocument/ev-document-transition.h	(original)
+++ trunk/libdocument/ev-document-transition.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_TRANSITION_H
 #define EV_DOCUMENT_TRANSITION_H
 

Modified: trunk/libdocument/ev-document-type-builtins.c.template
==============================================================================
--- trunk/libdocument/ev-document-type-builtins.c.template	(original)
+++ trunk/libdocument/ev-document-type-builtins.c.template	Sun Jan 25 15:08:57 2009
@@ -1,4 +1,6 @@
 /*** BEGIN file-header ***/
+#include <config.h>
+
 #include "ev-document-type-builtins.h"
 
 /*** END file-header ***/

Modified: trunk/libdocument/ev-document-type-builtins.h.template
==============================================================================
--- trunk/libdocument/ev-document-type-builtins.h.template	(original)
+++ trunk/libdocument/ev-document-type-builtins.h.template	Sun Jan 25 15:08:57 2009
@@ -1,5 +1,9 @@
 /*** BEGIN file-header ***/
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_TYPE_BUILTINS_H
 #define EV_DOCUMENT_TYPE_BUILTINS_H
 

Modified: trunk/libdocument/ev-document.h
==============================================================================
--- trunk/libdocument/ev-document.h	(original)
+++ trunk/libdocument/ev-document.h	Sun Jan 25 15:08:57 2009
@@ -19,6 +19,10 @@
  *  $Id$
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_H
 #define EV_DOCUMENT_H
 

Modified: trunk/libdocument/ev-file-exporter.h
==============================================================================
--- trunk/libdocument/ev-file-exporter.h	(original)
+++ trunk/libdocument/ev-file-exporter.h	Sun Jan 25 15:08:57 2009
@@ -20,6 +20,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_FILE_EXPORTER_H
 #define EV_FILE_EXPORTER_H
 

Modified: trunk/libdocument/ev-file-helpers.h
==============================================================================
--- trunk/libdocument/ev-file-helpers.h	(original)
+++ trunk/libdocument/ev-file-helpers.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  *  $Id$
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_FILE_HELPERS_H
 #define EV_FILE_HELPERS_H
 

Modified: trunk/libdocument/ev-form-field.h
==============================================================================
--- trunk/libdocument/ev-form-field.h	(original)
+++ trunk/libdocument/ev-form-field.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_FORM_FIELD_H
 #define EV_FORM_FIELD_H
 

Modified: trunk/libdocument/ev-image.h
==============================================================================
--- trunk/libdocument/ev-image.h	(original)
+++ trunk/libdocument/ev-image.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef __EV_IMAGE_H__
 #define __EV_IMAGE_H__
 

Modified: trunk/libdocument/ev-layer.h
==============================================================================
--- trunk/libdocument/ev-layer.h	(original)
+++ trunk/libdocument/ev-layer.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef __EV_LAYER_H__
 #define __EV_LAYER_H__
 

Modified: trunk/libdocument/ev-link-action.c
==============================================================================
--- trunk/libdocument/ev-link-action.c	(original)
+++ trunk/libdocument/ev-link-action.c	Sun Jan 25 15:08:57 2009
@@ -20,6 +20,7 @@
 
 #include <config.h>
 #include "ev-link-action.h"
+#include "ev-document-type-builtins.h"
 
 enum {
 	PROP_0,
@@ -55,27 +56,6 @@
 #define EV_LINK_ACTION_GET_PRIVATE(object) \
         (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_LINK_ACTION, EvLinkActionPrivate))
 
-GType
-ev_link_action_type_get_type (void)
-{
-	static GType type = 0;
-
-	if (G_UNLIKELY (type == 0)) {
-		static const GEnumValue values[] = {
-			{ EV_LINK_ACTION_TYPE_GOTO_DEST, "EV_LINK_ACTION_TYPE_GOTO_DEST", "goto-dest" },
-			{ EV_LINK_ACTION_TYPE_GOTO_REMOTE, "EV_LINK_ACTION_TYPE_GOTO_REMOTE", "goto-remote" },
-			{ EV_LINK_ACTION_TYPE_LAUNCH, "EV_LINK_ACTION_TYPE_LAUNCH", "launch" },
-			{ EV_LINK_ACTION_TYPE_EXTERNAL_URI, "EV_LINK_ACTION_TYPE_EXTERNAL_URI", "external-uri"},
-			{ EV_LINK_ACTION_TYPE_NAMED, "EV_LINK_ACTION_TYPE_NAMED", "named"},
-			{ 0, NULL, NULL }
-		};
-
-		type = g_enum_register_static ("EvLinkActionType", values);
-	}
-
-	return type;
-}
-
 EvLinkActionType
 ev_link_action_get_action_type (EvLinkAction *self)
 {

Modified: trunk/libdocument/ev-link-action.h
==============================================================================
--- trunk/libdocument/ev-link-action.h	(original)
+++ trunk/libdocument/ev-link-action.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_LINK_ACTION_H
 #define EV_LINK_ACTION_H
 
@@ -37,8 +41,6 @@
 #define EV_IS_LINK_ACTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_LINK_ACTION))
 #define EV_LINK_ACTION_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_LINK_ACTION, EvLinkActionClass))
 
-#define EV_TYPE_LINK_ACTION_TYPE         (ev_link_action_type_get_type ())
-
 typedef enum {
 	EV_LINK_ACTION_TYPE_GOTO_DEST,
 	EV_LINK_ACTION_TYPE_GOTO_REMOTE,
@@ -49,7 +51,6 @@
 	 * actions */
 } EvLinkActionType;
 
-GType            ev_link_action_type_get_type    (void) G_GNUC_CONST;
 GType            ev_link_action_get_type         (void) G_GNUC_CONST;
 
 EvLinkActionType ev_link_action_get_action_type  (EvLinkAction *self);

Modified: trunk/libdocument/ev-link-dest.c
==============================================================================
--- trunk/libdocument/ev-link-dest.c	(original)
+++ trunk/libdocument/ev-link-dest.c	Sun Jan 25 15:08:57 2009
@@ -19,7 +19,9 @@
  */
 
 #include <config.h>
+
 #include "ev-link-dest.h"
+#include "ev-document-type-builtins.h"
 
 enum {
 	PROP_0,
@@ -69,31 +71,6 @@
 #define EV_LINK_DEST_GET_PRIVATE(object) \
         (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_LINK_DEST, EvLinkDestPrivate))
 
-GType
-ev_link_dest_type_get_type (void)
-{
-	static GType type = 0;
-
-	if (G_UNLIKELY (type == 0)) {
-		static const GEnumValue values[] = {
-			{ EV_LINK_DEST_TYPE_PAGE, "EV_LINK_DEST_TYPE_PAGE", "page" },
-			{ EV_LINK_DEST_TYPE_XYZ, "EV_LINK_DEST_TYPE_XYZ", "xyz" },
-			{ EV_LINK_DEST_TYPE_FIT, "EV_LINK_DEST_TYPE_FIT", "fit" },
-			{ EV_LINK_DEST_TYPE_FITH, "EV_LINK_DEST_TYPE_FITH", "fith" },
-			{ EV_LINK_DEST_TYPE_FITV, "EV_LINK_DEST_TYPE_FITV", "fitv" },
-			{ EV_LINK_DEST_TYPE_FITR, "EV_LINK_DEST_TYPE_FITR", "fitr" },
-			{ EV_LINK_DEST_TYPE_NAMED, "EV_LINK_DEST_TYPE_NAMED", "named" },
-			{ EV_LINK_DEST_TYPE_PAGE_LABEL, "EV_LINK_DEST_TYPE_PAGE_LABEL", "page_label" },
-			{ EV_LINK_DEST_TYPE_UNKNOWN, "EV_LINK_DEST_TYPE_UNKNOWN", "unknown" },
-			{ 0, NULL, NULL }
-		};
-
-		type = g_enum_register_static ("EvLinkDestType", values);
-	}
-
-	return type;
-}
-
 EvLinkDestType
 ev_link_dest_get_dest_type (EvLinkDest *self)
 {

Modified: trunk/libdocument/ev-link-dest.h
==============================================================================
--- trunk/libdocument/ev-link-dest.h	(original)
+++ trunk/libdocument/ev-link-dest.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_LINK_DEST_H
 #define EV_LINK_DEST_H
 
@@ -36,8 +40,6 @@
 #define EV_IS_LINK_DEST_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_LINK_DEST))
 #define EV_LINK_DEST_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_LINK_DEST, EvLinkDestClass))
 
-#define EV_TYPE_LINK_DEST_TYPE         (ev_link_dest_type_get_type ())
-
 typedef enum {
 	EV_LINK_DEST_TYPE_PAGE,
 	EV_LINK_DEST_TYPE_XYZ,
@@ -50,7 +52,6 @@
 	EV_LINK_DEST_TYPE_UNKNOWN
 } EvLinkDestType; 
 
-GType           ev_link_dest_type_get_type  (void) G_GNUC_CONST;
 GType           ev_link_dest_get_type       (void) G_GNUC_CONST;
 
 EvLinkDestType  ev_link_dest_get_dest_type  (EvLinkDest  *self);

Modified: trunk/libdocument/ev-link.h
==============================================================================
--- trunk/libdocument/ev-link.h	(original)
+++ trunk/libdocument/ev-link.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_LINK_H
 #define EV_LINK_H
 

Modified: trunk/libdocument/ev-module.h
==============================================================================
--- trunk/libdocument/ev-module.h	(original)
+++ trunk/libdocument/ev-module.h	Sun Jan 25 15:08:57 2009
@@ -38,6 +38,10 @@
 
 /* Modified by Evince Team */
  
+#if !defined (EVINCE_COMPILATION)
+#error "This is a private header."
+#endif
+
 #ifndef EV_MODULE_H
 #define EV_MODULE_H
 

Modified: trunk/libdocument/ev-page.h
==============================================================================
--- trunk/libdocument/ev-page.h	(original)
+++ trunk/libdocument/ev-page.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_PAGE_H
 #define EV_PAGE_H
 

Modified: trunk/libdocument/ev-render-context.h
==============================================================================
--- trunk/libdocument/ev-render-context.h	(original)
+++ trunk/libdocument/ev-render-context.h	Sun Jan 25 15:08:57 2009
@@ -17,6 +17,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_RENDER_CONTEXT_H
 #define EV_RENDER_CONTEXT_H
 

Modified: trunk/libdocument/ev-selection.h
==============================================================================
--- trunk/libdocument/ev-selection.h	(original)
+++ trunk/libdocument/ev-selection.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  *
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_SELECTION_H
 #define EV_SELECTION_H
 

Modified: trunk/libdocument/ev-transition-effect.c
==============================================================================
--- trunk/libdocument/ev-transition-effect.c	(original)
+++ trunk/libdocument/ev-transition-effect.c	Sun Jan 25 15:08:57 2009
@@ -18,8 +18,12 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <config.h>
+
 #include "ev-transition-effect.h"
 
+#include "ev-document-type-builtins.h"
+
 #define EV_TRANSITION_EFFECT_GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), EV_TYPE_TRANSITION_EFFECT, EvTransitionEffectPrivate))
 
 typedef struct EvTransitionEffectPrivate EvTransitionEffectPrivate;
@@ -49,71 +53,6 @@
 
 G_DEFINE_TYPE (EvTransitionEffect, ev_transition_effect, G_TYPE_OBJECT)
 
-
-GType
-ev_transition_effect_type_get_type (void)
-{
-	static GType type = 0;
-
-	if (G_UNLIKELY (type == 0)) {
-		static const GEnumValue values[] = {
-			{ EV_TRANSITION_EFFECT_REPLACE, "EV_TRANSITION_EFFECT_REPLACE", "replace" },
-			{ EV_TRANSITION_EFFECT_SPLIT, "EV_TRANSITION_EFFECT_SPLIT", "split" },
-			{ EV_TRANSITION_EFFECT_BLINDS, "EV_TRANSITION_EFFECT_BLINDS", "blinds" },
-			{ EV_TRANSITION_EFFECT_BOX, "EV_TRANSITION_EFFECT_BOX", "box" },
-			{ EV_TRANSITION_EFFECT_WIPE, "EV_TRANSITION_EFFECT_WIPE", "wipe" },
-			{ EV_TRANSITION_EFFECT_DISSOLVE, "EV_TRANSITION_EFFECT_DISSOLVE", "dissolve" },
-			{ EV_TRANSITION_EFFECT_GLITTER, "EV_TRANSITION_EFFECT_GLITTER", "glitter" },
-			{ EV_TRANSITION_EFFECT_FLY, "EV_TRANSITION_EFFECT_FLY", "fly" },
-			{ EV_TRANSITION_EFFECT_PUSH, "EV_TRANSITION_EFFECT_PUSH", "push" },
-			{ EV_TRANSITION_EFFECT_COVER, "EV_TRANSITION_EFFECT_COVER", "cover" },
-			{ EV_TRANSITION_EFFECT_UNCOVER, "EV_TRANSITION_EFFECT_UNCOVER", "uncover" },
-			{ EV_TRANSITION_EFFECT_FADE, "EV_TRANSITION_EFFECT_FADE", "fade" },
-			{ 0, NULL, NULL }
-		};
-
-		type = g_enum_register_static ("EvTransitionEffectType", values);
-	}
-
-	return type;
-}
-
-GType
-ev_transition_effect_alignment_get_type (void)
-{
-	static GType type = 0;
-
-	if (G_UNLIKELY (type == 0)) {
-		static const GEnumValue values[] = {
-			{ EV_TRANSITION_ALIGNMENT_HORIZONTAL, "EV_TRANSITION_ALIGNMENT_HORIZONTAL", "horizontal" },
-			{ EV_TRANSITION_ALIGNMENT_VERTICAL, "EV_TRANSITION_ALIGNMENT_VERTICAL", "vertical" },
-			{ 0, NULL, NULL }
-		};
-
-		type = g_enum_register_static ("EvTransitionEffectAlignment", values);
-	}
-
-	return type;
-}
-
-GType
-ev_transition_effect_direction_get_type (void)
-{
-	static GType type = 0;
-
-	if (G_UNLIKELY (type == 0)) {
-		static const GEnumValue values[] = {
-			{ EV_TRANSITION_DIRECTION_INWARD, "EV_TRANSITION_DIRECTION_INWARD", "inward" },
-			{ EV_TRANSITION_DIRECTION_OUTWARD, "EV_TRANSITION_DIRECTION_OUTWARD", "outward" },
-			{ 0, NULL, NULL }
-		};
-
-		type = g_enum_register_static ("EvTransitionEffectDirection", values);
-	}
-
-	return type;
-}
-
 static void
 ev_transition_effect_set_property (GObject	*object,
 				   guint	 prop_id,

Modified: trunk/libdocument/ev-transition-effect.h
==============================================================================
--- trunk/libdocument/ev-transition-effect.h	(original)
+++ trunk/libdocument/ev-transition-effect.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef __EV_TRANSITION_EFFECT_H__
 #define __EV_TRANSITION_EFFECT_H__
 
@@ -26,9 +30,6 @@
 G_BEGIN_DECLS
 
 #define EV_TYPE_TRANSITION_EFFECT		  (ev_transition_effect_get_type ())
-#define EV_TYPE_TRANSITION_EFFECT_TYPE		  (ev_transition_effect_type_get_type ())
-#define EV_TYPE_TRANSITION_EFFECT_ALIGNMENT	  (ev_transition_effect_alignment_get_type ())
-#define EV_TYPE_TRANSITION_EFFECT_DIRECTION	  (ev_transition_effect_direction_get_type ())
 #define EV_TRANSITION_EFFECT(obj)		  (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_TRANSITION_EFFECT, EvTransitionEffect))
 #define EV_TRANSITION_EFFECT_CLASS(klass)	  (G_TYPE_CHECK_CLASS_CAST ((klass),  EV_TYPE_TRANSITION_EFFECT, EvTransitionEffectClass))
 #define EV_IS_TRANSITION_EFFECT(obj)		  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_TRANSITION_EFFECT))
@@ -76,9 +77,6 @@
 
 
 GType                 ev_transition_effect_get_type           (void) G_GNUC_CONST;
-GType                 ev_transition_effect_type_get_type      (void) G_GNUC_CONST;
-GType                 ev_transition_effect_alignment_get_type (void) G_GNUC_CONST;
-GType                 ev_transition_effect_direction_get_type (void) G_GNUC_CONST;
 
 EvTransitionEffect   *ev_transition_effect_new                (EvTransitionEffectType  type,
 							       const gchar            *first_property_name,

Modified: trunk/libview/Makefile.am
==============================================================================
--- trunk/libview/Makefile.am	(original)
+++ trunk/libview/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -1,20 +1,5 @@
-INCLUDES=					\
-	-DG_LOG_DOMAIN=\"EvView\"		\
-	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
-	-I$(top_srcdir)/libdocument		\
-	$(LIBVIEW_CFLAGS)			\
-	$(WARN_CFLAGS)				\
-	$(DISABLE_DEPRECATED)
-
 lib_LTLIBRARIES = libevview.la
 
-libevview_la_LDFLAGS = \
-	-version-info $(EV_VIEW_LT_VERSION_INFO)	\
-	-export-symbols-regex "^ev_*"	\
-	$(AM_LDFLAGS)
-
-libevview_la_LIBADD = $(LIBVIEW_LIBS)
-
 NOINST_H_FILES =			\
 	ev-pixbuf-cache.h		\
 	ev-timeline.h			\
@@ -30,7 +15,7 @@
 	ev-view.h			\
 	ev-view-type-builtins.h
 
-headerdir = $(includedir)/evince/$(EV_API_VERSION)/ev-view
+headerdir = $(includedir)/evince/$(EV_API_VERSION)/libview
 header_DATA = $(INST_H_FILES)
 
 libevview_la_SOURCES = 			\
@@ -47,6 +32,28 @@
 	$(NOINST_H_FILES)		\
 	$(INST_H_FILES)
 
+libevview_la_CPPFLAGS = \
+	-DG_LOG_DOMAIN=\"EvView\"		\
+	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
+	-DEVINCE_COMPILATION			\
+	-I$(top_srcdir)				\
+	-I$(top_srcdir)/libdocument		\
+	-I$(top_builddir)			\
+	$(AM_CPPFLAGS)
+
+libevview_la_CFLAGS = \
+	$(LIBVIEW_CFLAGS)	\
+	$(WARN_CFLAGS)		\
+	$(DISABLE_DEPRECATED)	\
+	$(AM_CFLAGS)
+
+libevview_la_LDFLAGS = \
+	-version-info $(EV_VIEW_LT_VERSION_INFO)	\
+	-export-symbols-regex "^ev_*"	\
+	$(AM_LDFLAGS)
+
+libevview_la_LIBADD = $(LIBVIEW_LIBS)
+
 BUILT_SOURCES = 			\
 	ev-view-marshal.h		\
 	ev-view-marshal.c		\
@@ -65,13 +72,13 @@
 ev-view-type-builtins.h: stamp-ev-view-type-builtins.h
 	@true
 
-stamp-ev-view-type-builtins.h: ev-view-type-builtins.h.template ev-job-scheduler.h
+stamp-ev-view-type-builtins.h: ev-view-type-builtins.h.template $(INST_H_FILES)
 	$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
 	&& (cmp -s xgen-etbh ev-view-type-builtins.h || cp xgen-etbh ev-view-type-builtins.h ) \
 	&& rm -f xgen-etbh \
 	&& echo timestamp > $(@F)
 
-ev-view-type-builtins.c: ev-view-type-builtins.c.template ev-job-scheduler.h
+ev-view-type-builtins.c: ev-view-type-builtins.c.template $(INST_H_FILES)
 	$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
 	&& (cmp -s xgen-etbc ev-view-type-builtins.c || cp xgen-etbc ev-view-type-builtins.c ) \
 	&& rm -f xgen-etbc
@@ -80,4 +87,3 @@
 	ev-view-type-builtins.c.template  \
 	ev-view-type-builtins.h.template  \
 	ev-view-marshal.list
-

Modified: trunk/libview/ev-job-scheduler.h
==============================================================================
--- trunk/libview/ev-job-scheduler.h	(original)
+++ trunk/libview/ev-job-scheduler.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef EV_JOB_SCHEDULER_H
 #define EV_JOB_SCHEDULER_H
 

Modified: trunk/libview/ev-jobs.h
==============================================================================
--- trunk/libview/ev-jobs.h	(original)
+++ trunk/libview/ev-jobs.h	Sun Jan 25 15:08:57 2009
@@ -18,15 +18,17 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef __EV_JOBS_H__
 #define __EV_JOBS_H__
 
 #include <gio/gio.h>
 #include <gtk/gtk.h>
 
-#include "ev-document.h"
-#include "ev-selection.h"
-#include "ev-render-context.h"
+#include <evince-document.h>
 
 G_BEGIN_DECLS
 

Modified: trunk/libview/ev-page-cache.h
==============================================================================
--- trunk/libview/ev-page-cache.h	(original)
+++ trunk/libview/ev-page-cache.h	Sun Jan 25 15:08:57 2009
@@ -17,12 +17,16 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef __EV_PAGE_CACHE_H__
 #define __EV_PAGE_CACHE_H__
 
 #include <gtk/gtk.h>
 
-#include "ev-document.h"
+#include <evince-document.h>
 
 G_BEGIN_DECLS
 #define EV_TYPE_PAGE_CACHE            (ev_page_cache_get_type ())

Modified: trunk/libview/ev-pixbuf-cache.h
==============================================================================
--- trunk/libview/ev-pixbuf-cache.h	(original)
+++ trunk/libview/ev-pixbuf-cache.h	Sun Jan 25 15:08:57 2009
@@ -21,13 +21,16 @@
  * ev-view.c from exploding.
  */
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef __EV_PIXBUF_CACHE_H__
 #define __EV_PIXBUF_CACHE_H__
 
 #include <gtk/gtk.h>
 
-#include "ev-document.h"
-#include "ev-selection.h"
+#include <evince-document.h>
 
 G_BEGIN_DECLS
 

Modified: trunk/libview/ev-timeline.h
==============================================================================
--- trunk/libview/ev-timeline.h	(original)
+++ trunk/libview/ev-timeline.h	Sun Jan 25 15:08:57 2009
@@ -19,6 +19,10 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if !defined (EVINCE_COMPILATION)
+#error "This is a private header."
+#endif
+
 #ifndef __EV_TIMELINE_H__
 #define __EV_TIMELINE_H__
 

Modified: trunk/libview/ev-transition-animation.h
==============================================================================
--- trunk/libview/ev-transition-animation.h	(original)
+++ trunk/libview/ev-transition-animation.h	Sun Jan 25 15:08:57 2009
@@ -19,9 +19,14 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#if !defined (EVINCE_COMPILATION)
+#error "This is a private header."
+#endif
+
 #ifndef __EV_TRANSITION_ANIMATION_H__
 #define __EV_TRANSITION_ANIMATION_H__
 
+#include <evince-document.h>
 #include "ev-timeline.h"
 #include "ev-transition-effect.h"
 

Modified: trunk/libview/ev-view-accessible.h
==============================================================================
--- trunk/libview/ev-view-accessible.h	(original)
+++ trunk/libview/ev-view-accessible.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (EVINCE_COMPILATION)
+#error "This is a private header."
+#endif
+
 #ifndef __EV_VIEW_ACCESSIBLE_H__
 #define __EV_VIEW_ACCESSIBLE_H__
 

Modified: trunk/libview/ev-view-private.h
==============================================================================
--- trunk/libview/ev-view-private.h	(original)
+++ trunk/libview/ev-view-private.h	Sun Jan 25 15:08:57 2009
@@ -18,6 +18,10 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (EVINCE_COMPILATION)
+#error "This is a private header."
+#endif
+
 #ifndef __EV_VIEW_PRIVATE_H__
 #define __EV_VIEW_PRIVATE_H__
 

Modified: trunk/libview/ev-view-type-builtins.c.template
==============================================================================
--- trunk/libview/ev-view-type-builtins.c.template	(original)
+++ trunk/libview/ev-view-type-builtins.c.template	Sun Jan 25 15:08:57 2009
@@ -1,4 +1,6 @@
 /*** BEGIN file-header ***/
+#include <config.h>
+
 #include "ev-view-type-builtins.h"
 
 /*** END file-header ***/

Modified: trunk/libview/ev-view-type-builtins.h.template
==============================================================================
--- trunk/libview/ev-view-type-builtins.h.template	(original)
+++ trunk/libview/ev-view-type-builtins.h.template	Sun Jan 25 15:08:57 2009
@@ -1,5 +1,9 @@
 /*** BEGIN file-header ***/
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef EV_VIEW_TYPE_BUILTINS_H
 #define EV_VIEW_TYPE_BUILTINS_H
 

Modified: trunk/libview/ev-view.c
==============================================================================
--- trunk/libview/ev-view.c	(original)
+++ trunk/libview/ev-view.c	Sun Jan 25 15:08:57 2009
@@ -40,6 +40,7 @@
 #include "ev-view.h"
 #include "ev-view-accessible.h"
 #include "ev-view-private.h"
+#include "ev-view-type-builtins.h"
 
 #define EV_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_VIEW, EvViewClass))
 #define EV_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_VIEW))
@@ -5831,22 +5832,6 @@
 		
 /*** Enum description for usage in signal ***/
 
-GType
-ev_sizing_mode_get_type (void)
-{
-  static GType etype = 0;
-  if (etype == 0) {
-    static const GEnumValue values[] = {
-      { EV_SIZING_FIT_WIDTH, "EV_SIZING_FIT_WIDTH", "fit-width" },
-      { EV_SIZING_BEST_FIT, "EV_SIZING_BEST_FIT", "best-fit" },
-      { EV_SIZING_FREE, "EV_SIZING_FREE", "free" },
-      { 0, NULL, NULL }
-    };
-    etype = g_enum_register_static ("EvSizingMode", values);
-  }
-  return etype;
-}
-
 void
 ev_view_update_view_size (EvView *view, GtkScrolledWindow * scrolled_window)
 {

Modified: trunk/libview/ev-view.h
==============================================================================
--- trunk/libview/ev-view.h	(original)
+++ trunk/libview/ev-view.h	Sun Jan 25 15:08:57 2009
@@ -17,13 +17,16 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef __EV_VIEW_H__
 #define __EV_VIEW_H__
 
 #include <gtk/gtk.h>
 
-#include "ev-document.h"
-#include "ev-link.h"
+#include <evince-document.h>
 
 G_BEGIN_DECLS
 
@@ -31,9 +34,6 @@
 #define EV_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_VIEW, EvView))
 #define EV_IS_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_VIEW))
 
-#define EV_TYPE_SIZING_MODE     (ev_sizing_mode_get_type())
-#define EV_SIZING_MODE_CLASS    (g_type_class_peek (EV_TYPE_SIZING_MODE))
-
 typedef struct _EvView       EvView;
 typedef struct _EvViewClass  EvViewClass;
 
@@ -50,7 +50,6 @@
 } EvViewSelectionMode;
 
 GType		ev_view_get_type	  (void) G_GNUC_CONST;
-GType           ev_sizing_mode_get_type   (void) G_GNUC_CONST;
 
 GtkWidget*	ev_view_new		  (void);
 void		ev_view_set_document	  (EvView         *view,

Modified: trunk/properties/Makefile.am
==============================================================================
--- trunk/properties/Makefile.am	(original)
+++ trunk/properties/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -1,7 +1,8 @@
 INCLUDES=					\
 	-DDATADIR=\"$(pkgdatadir)\"		\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
-	-I$(top_srcdir)/libdocument		\
+	-I$(top_srcdir)				\
+	-I$(top_builddir)			\
 	$(FRONTEND_CFLAGS)			\
 	$(NAUTILUS_CFLAGS)			\
 	$(DISABLE_DEPRECATED)			\
@@ -28,7 +29,7 @@
 
 libevince_properties_page_la_LIBADD = 		\
 	libevproperties.la			\
-	$(top_builddir)/libdocument/libevbackend.la	\
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(FRONTEND_LIBS)			\
 	$(NAUTILUS_LIBS)
 

Modified: trunk/properties/ev-properties-main.c
==============================================================================
--- trunk/properties/ev-properties-main.c	(original)
+++ trunk/properties/ev-properties-main.c	Sun Jan 25 15:08:57 2009
@@ -37,9 +37,8 @@
 #include <libnautilus-extension/nautilus-extension-types.h>
 #include <libnautilus-extension/nautilus-property-page-provider.h>
 
+#include <evince-document.h>
 #include "ev-properties-view.h"
-#include "ev-backends-manager.h"
-#include "ev-document-factory.h"
 
 static GType epp_type = 0;
 static void property_page_provider_iface_init

Modified: trunk/properties/ev-properties-view.h
==============================================================================
--- trunk/properties/ev-properties-view.h	(original)
+++ trunk/properties/ev-properties-view.h	Sun Jan 25 15:08:57 2009
@@ -23,7 +23,7 @@
 
 #include <gtk/gtk.h>
 
-#include "ev-document-info.h"
+#include <evince-document.h>
 
 G_BEGIN_DECLS
 

Modified: trunk/shell/Makefile.am
==============================================================================
--- trunk/shell/Makefile.am	(original)
+++ trunk/shell/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -1,6 +1,8 @@
 INCLUDES=							\
 	-DDATADIR=\"$(pkgdatadir)\"				\
 	-DGNOMEDATADIR=\"$(datadir)\"				\
+	-I$(top_srcdir)						\
+	-I$(top_builddir)					\
 	-I$(top_srcdir)/cut-n-paste/zoom-control/		\
 	-I$(top_srcdir)/cut-n-paste/toolbar-editor/		\
 	-I$(top_srcdir)/cut-n-paste/totem-screensaver/		\
@@ -9,10 +11,13 @@
 	-I$(top_srcdir)/cut-n-paste/evmountoperation/		\
 	-I$(top_srcdir)/cut-n-paste/smclient/			\
 	-I$(top_srcdir)/libdocument				\
+	-I$(top_builddir)/libdocument				\
 	-I$(top_srcdir)/libview					\
+	-I$(top_builddir)/libview				\
 	-I$(top_srcdir)/properties				\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"			\
 	-DGNOMEICONDIR=\""$(datadir)/pixmaps"\" 		\
+	-DEVINCE_COMPILATION					\
 	$(SHELL_CFLAGS)						\
 	$(WARN_CFLAGS)						\
 	$(DISABLE_DEPRECATED)
@@ -95,7 +100,7 @@
 	$(top_builddir)/cut-n-paste/evmountoperation/libevmountoperation.la		\
 	$(top_builddir)/cut-n-paste/smclient/libsmclient.la				\
 	$(top_builddir)/properties/libevproperties.la					\
-	$(top_builddir)/libdocument/libevbackend.la					\
+	$(top_builddir)/libdocument/libevdocument.la					\
 	$(top_builddir)/libview/libevview.la						\
 	$(SHELL_LIBS)
 

Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c	(original)
+++ trunk/shell/ev-window.c	Sun Jan 25 15:08:57 2009
@@ -61,6 +61,7 @@
 #include "ev-document-images.h"
 #include "ev-document-links.h"
 #include "ev-document-thumbnails.h"
+#include "ev-document-type-builtins.h"
 #include "ev-file-exporter.h"
 #include "ev-file-helpers.h"
 #include "ev-file-monitor.h"
@@ -86,6 +87,7 @@
 #include "ev-utils.h"
 #include "ev-keyring.h"
 #include "ev-view.h"
+#include "ev-view-type-builtins.h"
 #include "ev-window.h"
 #include "ev-window-title.h"
 #include "ev-print-operation.h"
@@ -1073,7 +1075,7 @@
 	/* Sizing mode */
 	if (ev_metadata_manager_get (uri, "sizing_mode", &sizing_mode, FALSE)) {
 		enum_value = g_enum_get_value_by_nick
-			(EV_SIZING_MODE_CLASS, g_value_get_string (&sizing_mode));
+			(g_type_class_peek (EV_TYPE_SIZING_MODE), g_value_get_string (&sizing_mode));
 		g_value_unset (&sizing_mode);
 		ev_view_set_sizing_mode (view, enum_value->value);
 	}
@@ -4082,7 +4084,7 @@
 	GEnumValue *enum_value;
 
 	mode = ev_view_get_sizing_mode (EV_VIEW (window->priv->view));
-	enum_value = g_enum_get_value (EV_SIZING_MODE_CLASS, mode);
+	enum_value = g_enum_get_value (g_type_class_peek (EV_TYPE_SIZING_MODE), mode);
 
 	if (!ev_window_is_empty (window))
 		ev_metadata_manager_set_string (window->priv->uri, "sizing_mode",

Modified: trunk/thumbnailer/Makefile.am
==============================================================================
--- trunk/thumbnailer/Makefile.am	(original)
+++ trunk/thumbnailer/Makefile.am	Sun Jan 25 15:08:57 2009
@@ -1,21 +1,26 @@
 @INTLTOOL_SCHEMAS_RULE@
 
-INCLUDES=					\
+bin_PROGRAMS = evince-thumbnailer
+
+evince_thumbnailer_SOURCES = \
+	evince-thumbnailer.c
+
+evince_thumbnailer_CPPFLAGS = \
 	-DDATADIR=\"$(pkgdatadir)\"		\
-	-I$(top_srcdir)/libdocument		\
+	-I$(top_srcdir)				\
+	-I$(top_builddir)			\
 	-DGNOMELOCALEDIR=\"$(datadir)/locale\"	\
 	-DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
-	$(FRONTEND_CFLAGS)			\
-	$(DISABLE_DEPRECATED)			\
-	$(WARN_CFLAGS)
+	$(AM_CPPFLAGS)
 
-bin_PROGRAMS=evince-thumbnailer
-
-evince_thumbnailer_SOURCES=	\
-	evince-thumbnailer.c
+evince_thumbnailer_CFLAGS = \
+	$(FRONTEND_CFLAGS)	\
+	$(DISABLE_DEPRECATED)	\
+	$(WARN_CFLAGS)		\
+	$(AM_CFLAGS)
 
-evince_thumbnailer_LDADD=		\
-	$(top_builddir)/libdocument/libevbackend.la	\
+evince_thumbnailer_LDADD = \
+	$(top_builddir)/libdocument/libevdocument.la	\
 	$(FRONTEND_LIBS)
 
 schema_files = \

Modified: trunk/thumbnailer/evince-thumbnailer.c
==============================================================================
--- trunk/thumbnailer/evince-thumbnailer.c	(original)
+++ trunk/thumbnailer/evince-thumbnailer.c	Sun Jan 25 15:08:57 2009
@@ -18,11 +18,7 @@
 
 #include <config.h>
 
-#include <ev-document.h>
-#include <ev-document-thumbnails.h>
-#include <ev-async-renderer.h>
-#include <ev-document-factory.h>
-#include <ev-backends-manager.h>
+#include <evince-document.h>
 
 #include <gio/gio.h>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]