Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument/ev-document-forms.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-05-07 11:05:07 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-05-07 11:05:07 (GMT)
commit837897ffba5a5e4e5685c1ffdeb1d4d87083a052 (patch)
treee9b53ce0094a11414dd57771e84265ad32813394 /libdocument/ev-document-forms.c
parent698e8119ca94fd58c3604d4b09b15026dc2415ab (diff)
[libdocument] Use G_DEFINE_INTERFACE instead of out own macro
Diffstat (limited to 'libdocument/ev-document-forms.c')
-rw-r--r--libdocument/ev-document-forms.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/libdocument/ev-document-forms.c b/libdocument/ev-document-forms.c
index c557d87..9e8fb0e 100644
--- a/libdocument/ev-document-forms.c
+++ b/libdocument/ev-document-forms.c
@@ -21,10 +21,10 @@
#include <config.h>
#include "ev-document-forms.h"
-EV_DEFINE_INTERFACE (EvDocumentForms, ev_document_forms, 0)
+G_DEFINE_INTERFACE (EvDocumentForms, ev_document_forms, 0)
static void
-ev_document_forms_class_init (EvDocumentFormsIface *klass)
+ev_document_forms_default_init (EvDocumentFormsInterface *klass)
{
}
@@ -32,7 +32,7 @@ GList *
ev_document_forms_get_form_fields (EvDocumentForms *document_forms,
EvPage *page)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->get_form_fields (document_forms, page);
}
@@ -41,7 +41,7 @@ gchar *
ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms,
EvFormField *field)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->form_field_text_get_text (document_forms, field);
}
@@ -51,7 +51,7 @@ ev_document_forms_form_field_text_set_text (EvDocumentForms *document_forms,
EvFormField *field,
const gchar *text)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
iface->form_field_text_set_text (document_forms, field, text);
}
@@ -60,7 +60,7 @@ gboolean
ev_document_forms_form_field_button_get_state (EvDocumentForms *document_forms,
EvFormField *field)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->form_field_button_get_state (document_forms, field);
}
@@ -70,7 +70,7 @@ ev_document_forms_form_field_button_set_state (EvDocumentForms *document_forms
EvFormField *field,
gboolean state)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
iface->form_field_button_set_state (document_forms, field, state);
}
@@ -80,7 +80,7 @@ ev_document_forms_form_field_choice_get_item (EvDocumentForms *document_forms,
EvFormField *field,
gint index)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->form_field_choice_get_item (document_forms, field, index);
}
@@ -89,7 +89,7 @@ gint
ev_document_forms_form_field_choice_get_n_items (EvDocumentForms *document_forms,
EvFormField *field)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->form_field_choice_get_n_items (document_forms, field);
}
@@ -99,7 +99,7 @@ ev_document_forms_form_field_choice_is_item_selected (EvDocumentForms *documen
EvFormField *field,
gint index)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->form_field_choice_is_item_selected (document_forms, field, index);
}
@@ -109,7 +109,7 @@ ev_document_forms_form_field_choice_select_item (EvDocumentForms *document_for
EvFormField *field,
gint index)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
iface->form_field_choice_select_item (document_forms, field, index);
}
@@ -119,7 +119,7 @@ ev_document_forms_form_field_choice_toggle_item (EvDocumentForms *document_for
EvFormField *field,
gint index)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
iface->form_field_choice_toggle_item (document_forms, field, index);
}
@@ -128,7 +128,7 @@ void
ev_document_forms_form_field_choice_unselect_all (EvDocumentForms *document_forms,
EvFormField *field)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
iface->form_field_choice_unselect_all (document_forms, field);
}
@@ -138,7 +138,7 @@ ev_document_forms_form_field_choice_set_text (EvDocumentForms *document_forms,
EvFormField *field,
const gchar *text)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
iface->form_field_choice_set_text (document_forms, field, text);
}
@@ -147,7 +147,7 @@ gchar *
ev_document_forms_form_field_choice_get_text (EvDocumentForms *document_forms,
EvFormField *field)
{
- EvDocumentFormsIface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
+ EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
return iface->form_field_choice_get_text (document_forms, field);
}