X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libdocument%2Fev-document-images.h;h=8a028695e73f1d32b025f9829193ec9c7e90eec0;hb=aeadd8e191190c43e94999fef077ebea69e966c9;hp=d8699b94bed8751b1c8257bca891d640212d7e31;hpb=8e126907002877574ec86fcbd184e56dc8f74683;p=evince.git diff --git a/libdocument/ev-document-images.h b/libdocument/ev-document-images.h index d8699b94..8a028695 100644 --- a/libdocument/ev-document-images.h +++ b/libdocument/ev-document-images.h @@ -15,9 +15,13 @@ * * 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. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EV_DOCUMENT_IMAGES_H #define EV_DOCUMENT_IMAGES_H @@ -26,34 +30,35 @@ #include "ev-document.h" #include "ev-image.h" +#include "ev-mapping-list.h" G_BEGIN_DECLS #define EV_TYPE_DOCUMENT_IMAGES (ev_document_images_get_type ()) #define EV_DOCUMENT_IMAGES(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT_IMAGES, EvDocumentImages)) -#define EV_DOCUMENT_IMAGES_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_IMAGES, EvDocumentImagesIface)) +#define EV_DOCUMENT_IMAGES_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT_IMAGES, EvDocumentImagesInterface)) #define EV_IS_DOCUMENT_IMAGES(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EV_TYPE_DOCUMENT_IMAGES)) #define EV_IS_DOCUMENT_IMAGES_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT_IMAGES)) -#define EV_DOCUMENT_IMAGES_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_IMAGES, EvDocumentImagesIface)) +#define EV_DOCUMENT_IMAGES_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT_IMAGES, EvDocumentImagesInterface)) -typedef struct _EvDocumentImages EvDocumentImages; -typedef struct _EvDocumentImagesIface EvDocumentImagesIface; +typedef struct _EvDocumentImages EvDocumentImages; +typedef struct _EvDocumentImagesInterface EvDocumentImagesInterface; -struct _EvDocumentImagesIface { +struct _EvDocumentImagesInterface { GTypeInterface base_iface; /* Methods */ - GList *(* get_image_mapping) (EvDocumentImages *document_images, - gint page); - GdkPixbuf *(* get_image) (EvDocumentImages *document_images, - EvImage *image); + EvMappingList *(* get_image_mapping) (EvDocumentImages *document_images, + EvPage *page); + GdkPixbuf *(* get_image) (EvDocumentImages *document_images, + EvImage *image); }; -GType ev_document_images_get_type (void) G_GNUC_CONST; -GList *ev_document_images_get_image_mapping (EvDocumentImages *document_images, - gint page); -GdkPixbuf *ev_document_images_get_image (EvDocumentImages *document_images, - EvImage *image); +GType ev_document_images_get_type (void) G_GNUC_CONST; +EvMappingList *ev_document_images_get_image_mapping (EvDocumentImages *document_images, + EvPage *page); +GdkPixbuf *ev_document_images_get_image (EvDocumentImages *document_images, + EvImage *image); G_END_DECLS