Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/Makefile.am4
-rw-r--r--backend/ev-document.c6
-rw-r--r--backend/ev-document.h40
3 files changed, 25 insertions, 25 deletions
diff --git a/backend/Makefile.am b/backend/Makefile.am
index 1a2547e..cc0acf4 100644
--- a/backend/Makefile.am
+++ b/backend/Makefile.am
@@ -7,9 +7,9 @@ INCLUDES= \
$(EVINCE_DISABLE_DEPRECATED) \
$(NULL)
-noinst_LTLIBRARIES = liblibevbackend.la
+noinst_LTLIBRARIES = libevbackend.la
-liblibevbackend_la_SOURCES= \
+libevbackend_la_SOURCES= \
ev-document.c \
ev-document.h \
$(NULL)
diff --git a/backend/ev-document.c b/backend/ev-document.c
index 4491003..5886e3f 100644
--- a/backend/ev-document.c
+++ b/backend/ev-document.c
@@ -50,13 +50,13 @@ ev_document_base_init (gpointer g_class)
{
}
-void
+gboolean
ev_document_load (EvDocument *document,
const char *uri,
- GError *error)
+ GError **error)
{
EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document);
- iface->load (document, uri, error);
+ return iface->load (document, uri, error);
}
int
diff --git a/backend/ev-document.h b/backend/ev-document.h
index e4ff783..aa10f9b 100644
--- a/backend/ev-document.h
+++ b/backend/ev-document.h
@@ -42,9 +42,9 @@ struct _EvDocumentIface
GTypeInterface base_iface;
/* Methods */
- void (* load) (EvDocument *document,
+ gboolean (* load) (EvDocument *document,
const char *uri,
- GError *error);
+ GError **error);
int (* get_n_pages) (EvDocument *document);
void (* set_page) (EvDocument *document,
int page);
@@ -64,24 +64,24 @@ struct _EvDocumentIface
GType ev_document_get_type (void);
-void ev_document_load (EvDocument *document,
- const char *uri,
- GError *error);
-int ev_document_get_n_pages (EvDocument *document);
-void ev_document_set_page (EvDocument *document,
- int page);
-void ev_document_set_target (EvDocument *document,
- GdkDrawable *target);
-void ev_document_set_page_rect (EvDocument *document,
- int x,
- int y,
- int width,
- int height);
-void ev_document_render (EvDocument *document,
- int clip_x,
- int clip_y,
- int clip_width,
- int clip_height);
+gboolean ev_document_load (EvDocument *document,
+ const char *uri,
+ GError **error);
+int ev_document_get_n_pages (EvDocument *document);
+void ev_document_set_page (EvDocument *document,
+ int page);
+void ev_document_set_target (EvDocument *document,
+ GdkDrawable *target);
+void ev_document_set_page_rect (EvDocument *document,
+ int x,
+ int y,
+ int width,
+ int height);
+void ev_document_render (EvDocument *document,
+ int clip_x,
+ int clip_y,
+ int clip_width,
+ int clip_height);
G_END_DECLS