X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fpixbuf%2Fpixbuf-document.c;h=21c6bb936e9454bf1425eace7b24e73461a545df;hb=60b8f6615b70c2f828c66641e01585ac791d5dc8;hp=b9b98a66e27af1613be18356d130744136f5fe10;hpb=982600bbceb76a22d5c7b3e0cbe6e20421105ad6;p=evince.git diff --git a/backend/pixbuf/pixbuf-document.c b/backend/pixbuf/pixbuf-document.c index b9b98a66..21c6bb93 100644 --- a/backend/pixbuf/pixbuf-document.c +++ b/backend/pixbuf/pixbuf-document.c @@ -17,8 +17,13 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include +#include + #include "pixbuf-document.h" #include "ev-document-thumbnails.h" +#include "ev-document-misc.h" +#include "ev-file-helpers.h" struct _PixbufDocumentClass { @@ -39,12 +44,11 @@ typedef struct _PixbufDocumentClass PixbufDocumentClass; static void pixbuf_document_document_iface_init (EvDocumentIface *iface); static void pixbuf_document_document_thumbnails_iface_init (EvDocumentThumbnailsIface *iface); -G_DEFINE_TYPE_WITH_CODE (PixbufDocument, pixbuf_document, G_TYPE_OBJECT, - { G_IMPLEMENT_INTERFACE (EV_TYPE_DOCUMENT, - pixbuf_document_document_iface_init); +EV_BACKEND_REGISTER_WITH_CODE (PixbufDocument, pixbuf_document, + { G_IMPLEMENT_INTERFACE (EV_TYPE_DOCUMENT_THUMBNAILS, pixbuf_document_document_thumbnails_iface_init) - }); + }); static gboolean pixbuf_document_load (EvDocument *document,