+2005-01-21 Martin Kretzschmar <martink@gnome.org>
+
+ * pixbuf/pixbuf-document.c (pixbuf_document_get_n_pages)
+ (pixbuf_document_get_text, pixbuf_document_document_iface_init):
+ stub out missing methods for complete EvDocument implementation.
+ Fixes segfaults with Save A Copy and Copy actions.
+
+ * ps/ps-document.c (ps_document_save, ps_document_get_text)
+ (ps_document_document_iface_init): ditto.
+
2005-01-21 Marco Pesenti Gritti <marco@gnome.org>
* data/.cvsignore:
return TRUE;
}
+static gboolean
+pixbuf_document_save (EvDocument *document,
+ const char *uri,
+ GError **error)
+{
+ g_warning ("pixbuf_document_save not implemented"); /* FIXME */
+ return TRUE;
+}
+
static int
pixbuf_document_get_n_pages (EvDocument *document)
{
g_object_class_override_property (gobject_class, PROP_TITLE, "title");
}
+static char *
+pixbuf_document_get_text (EvDocument *document, GdkRectangle *rect)
+{
+ /* FIXME this method should not be in EvDocument */
+ g_warning ("pixbuf_document_get_text not implemented");
+ return NULL;
+}
+
+
static EvLink *
pixbuf_document_get_link (EvDocument *document,
int x,
pixbuf_document_document_iface_init (EvDocumentIface *iface)
{
iface->load = pixbuf_document_load;
+ iface->save = pixbuf_document_save;
+ iface->get_text = pixbuf_document_get_text;
iface->get_link = pixbuf_document_get_link;
iface->get_n_pages = pixbuf_document_get_n_pages;
iface->set_page = pixbuf_document_set_page;
return result;
}
+static gboolean
+ps_document_save (EvDocument *document,
+ const char *uri,
+ GError **error)
+{
+ g_warning ("ps_document_save not implemented"); /* FIXME */
+ return TRUE;
+}
+
static int
ps_document_get_n_pages (EvDocument *document)
{
g_object_unref (gc);
}
+static char *
+ps_document_get_text (EvDocument *document, GdkRectangle *rect)
+{
+ g_warning ("ps_document_get_text not implemented"); /* FIXME ? */
+ return NULL;
+}
+
static EvLink *
ps_document_get_link (EvDocument *document,
int x,
ps_document_document_iface_init (EvDocumentIface *iface)
{
iface->load = ps_document_load;
+ iface->save = ps_document_save;
+ iface->get_text = ps_document_get_text;
iface->get_link = ps_document_get_link;
iface->get_n_pages = ps_document_get_n_pages;
iface->set_page = ps_document_set_page;