From ab26fbf217460c766111850bf40725e5e65a5533 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sat, 24 Jan 2009 18:10:33 +0000 Subject: Add EV_DEFINE_INTERFACE macro. 2009-01-24 Carlos Garcia Campos * libdocument/ev-document.h: Add EV_DEFINE_INTERFACE macro. * libdocument/ev-async-renderer.c: * libdocument/ev-document-find.c: * libdocument/ev-document-fonts.c: * libdocument/ev-document-forms.c: * libdocument/ev-document-images.c: * libdocument/ev-document-layers.c: * libdocument/ev-document-links.c: * libdocument/ev-document-security.c: * libdocument/ev-document-thumbnails.c: * libdocument/ev-document-transition.c: * libdocument/ev-document.c: * libdocument/ev-file-exporter.c: * libdocument/ev-selection.c: Use EV_DEFINE_INTERFACE macro to define interfaces in libdocument. See bug #568228. svn path=/trunk/; revision=3379 --- (limited to 'libdocument/ev-document-forms.c') diff --git a/libdocument/ev-document-forms.c b/libdocument/ev-document-forms.c index d5d9c70..6d702a3 100644 --- a/libdocument/ev-document-forms.c +++ b/libdocument/ev-document-forms.c @@ -21,24 +21,11 @@ #include #include "ev-document-forms.h" -GType -ev_document_forms_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) { - const GTypeInfo our_info = { - sizeof (EvDocumentFormsIface), - NULL, - NULL, - }; +EV_DEFINE_INTERFACE (EvDocumentForms, ev_document_forms, 0) - type = g_type_register_static (G_TYPE_INTERFACE, - "EvDocumentForms", - &our_info, (GTypeFlags)0); - } - - return type; +static void +ev_document_forms_class_init (EvDocumentFormsIface *klass) +{ } GList * -- cgit v0.9.1