]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-document-fonts.c
[l10n] Updated Italian translation
[evince.git] / libdocument / ev-document-fonts.c
index 929c21df3ef0d6c4f126dafa34998d91efb1fdd8..7622f721d211547e8cd25a8f410d9b0158a9e9da 100644 (file)
  *
  * 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.
  */
 
 #include "config.h"
 
 #include "ev-document-fonts.h"
 
-GType
-ev_document_fonts_get_type (void)
-{
-       static GType type = 0;
-
-       if (G_UNLIKELY (type == 0))
-       {
-               const GTypeInfo our_info =
-               {
-                       sizeof (EvDocumentFontsIface),
-                       NULL,
-                       NULL,
-               };
+G_DEFINE_INTERFACE (EvDocumentFonts, ev_document_fonts, 0)
 
-               type = g_type_register_static (G_TYPE_INTERFACE,
-                                              "EvDocumentFonts",
-                                              &our_info, (GTypeFlags)0);
-       }
-
-       return type;
+static void
+ev_document_fonts_default_init (EvDocumentFontsInterface *klass)
+{
 }
 
 double
 ev_document_fonts_get_progress (EvDocumentFonts *document_fonts)
 {
-       EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts);
+       EvDocumentFontsInterface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts);
 
        return iface->get_progress (document_fonts);
 }
@@ -59,7 +44,7 @@ gboolean
 ev_document_fonts_scan (EvDocumentFonts *document_fonts,
                        int              n_pages)
 {
-       EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts);
+       EvDocumentFontsInterface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts);
 
        return iface->scan (document_fonts, n_pages);
 }
@@ -68,7 +53,7 @@ void
 ev_document_fonts_fill_model (EvDocumentFonts *document_fonts,
                              GtkTreeModel    *model)
 {
-       EvDocumentFontsIface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts);
+       EvDocumentFontsInterface *iface = EV_DOCUMENT_FONTS_GET_IFACE (document_fonts);
 
        iface->fill_model (document_fonts, model);
 }