X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document-fonts.c;h=929c21df3ef0d6c4f126dafa34998d91efb1fdd8;hb=14cf8ad56067f10735b877b59576a2c334e7bc37;hp=cd53d1e9a538696f24d0a951277957c78d2fb4d9;hpb=cbdeaed3897f8fdd01995a356c1e3a829fffbf7e;p=evince.git diff --git a/backend/ev-document-fonts.c b/backend/ev-document-fonts.c index cd53d1e9..929c21df 100644 --- a/backend/ev-document-fonts.c +++ b/backend/ev-document-fonts.c @@ -32,7 +32,7 @@ ev_document_fonts_get_type (void) if (G_UNLIKELY (type == 0)) { - static const GTypeInfo our_info = + const GTypeInfo our_info = { sizeof (EvDocumentFontsIface), NULL, @@ -47,12 +47,28 @@ ev_document_fonts_get_type (void) return type; } +double +ev_document_fonts_get_progress (EvDocumentFonts *document_fonts) +{ + EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts); + + return iface->get_progress (document_fonts); +} + gboolean +ev_document_fonts_scan (EvDocumentFonts *document_fonts, + int n_pages) +{ + EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts); + + return iface->scan (document_fonts, n_pages); +} + +void ev_document_fonts_fill_model (EvDocumentFonts *document_fonts, - GtkTreeModel *model, - int n_pages) + GtkTreeModel *model) { EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts); - return iface->fill_model (document_fonts, model, n_pages); + iface->fill_model (document_fonts, model); }