diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-01-24 18:10:33 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2009-01-24 18:10:33 (GMT) |
commit | ab26fbf217460c766111850bf40725e5e65a5533 (patch) | |
tree | 2ed6ef16498d2b54292608e98796d7ecddfacc6f /libdocument/ev-document.c | |
parent | 95395e6b0e5e174a43931605043dba668232d331 (diff) |
Add EV_DEFINE_INTERFACE macro.
2009-01-24 Carlos Garcia Campos <carlosgc@gnome.org>
* 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
Diffstat (limited to 'libdocument/ev-document.c')
-rw-r--r-- | libdocument/ev-document.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index 163f2e2..aa7d1d2 100644 --- a/libdocument/ev-document.c +++ b/libdocument/ev-document.c @@ -22,36 +22,10 @@ #include "ev-document.h" -static void ev_document_class_init (gpointer g_class); - - GMutex *ev_doc_mutex = NULL; GMutex *ev_fc_mutex = NULL; -GType -ev_document_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - { - const GTypeInfo our_info = - { - sizeof (EvDocumentIface), - NULL, - NULL, - (GClassInitFunc)ev_document_class_init - }; - - type = g_type_register_static (G_TYPE_INTERFACE, - "EvDocument", - &our_info, (GTypeFlags)0); - - g_type_interface_add_prerequisite (type, G_TYPE_OBJECT); - } - - return type; -} +EV_DEFINE_INTERFACE (EvDocument, ev_document, G_TYPE_OBJECT) GQuark ev_document_error_quark (void) @@ -64,7 +38,7 @@ ev_document_error_quark (void) } static void -ev_document_class_init (gpointer g_class) +ev_document_class_init (EvDocumentIface *klass) { } |