X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=backend%2Fpixbuf%2Fpixbuf-document.c;h=21c6bb936e9454bf1425eace7b24e73461a545df;hb=0966dd9fbb4a8a60972382910c850a610bc40686;hp=5f61587e60b868f0fb9ce28a70d65492b128e0f0;hpb=9313a948a03d17fb409f96149435542fda359c21;p=evince.git diff --git a/backend/pixbuf/pixbuf-document.c b/backend/pixbuf/pixbuf-document.c index 5f61587e..21c6bb93 100644 --- a/backend/pixbuf/pixbuf-document.c +++ b/backend/pixbuf/pixbuf-document.c @@ -17,9 +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 { @@ -40,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,