diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/ev-document-fonts.c | 11 | ||||
-rw-r--r-- | backend/ev-document-fonts.h | 10 |
2 files changed, 12 insertions, 9 deletions
diff --git a/backend/ev-document-fonts.c b/backend/ev-document-fonts.c index fca1976..cd53d1e 100644 --- a/backend/ev-document-fonts.c +++ b/backend/ev-document-fonts.c @@ -47,13 +47,12 @@ ev_document_fonts_get_type (void) return type; } -GtkTreeModel * -ev_document_fonts_get_fonts_model (EvDocumentFonts *document_fonts) +gboolean +ev_document_fonts_fill_model (EvDocumentFonts *document_fonts, + GtkTreeModel *model, + int n_pages) { EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts); - GtkTreeModel *retval; - retval = iface->get_fonts_model (document_fonts); - - return retval; + return iface->fill_model (document_fonts, model, n_pages); } diff --git a/backend/ev-document-fonts.h b/backend/ev-document-fonts.h index 6cb07e2..2a05e7e 100644 --- a/backend/ev-document-fonts.h +++ b/backend/ev-document-fonts.h @@ -54,11 +54,15 @@ struct _EvDocumentFontsIface GTypeInterface base_iface; /* Methods */ - GtkTreeModel *(* get_fonts_model) (EvDocumentFonts *document_fonts); + gboolean (* fill_model) (EvDocumentFonts *document_fonts, + GtkTreeModel *model, + int n_pages); }; -GType ev_document_fonts_get_type (void); -GtkTreeModel *ev_document_fonts_get_fonts_model (EvDocumentFonts *document_fonts); +GType ev_document_fonts_get_type (void); +gboolean ev_document_fonts_fill_model (EvDocumentFonts *document_fonts, + GtkTreeModel *model, + int n_pages); G_END_DECLS |