Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ps/ps-document.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-04-14 15:41:30 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-04-14 15:41:30 (GMT)
commit1561766454d8a06d887da5c2955b8c4d1dddd9a3 (patch)
tree85e839740013b1cd263cb2c151ab82d90de42d13 /ps/ps-document.c
parentcfce03c7e1db82c1abad3ba4b39652986589e2a3 (diff)
Fix the crash when trying to copy in backends that doesnt support it. We
2005-04-14 Marco Pesenti Gritti <mpg@redhat.com> * backend/ev-document.h: * djvu/djvu-document.c: (djvu_document_can_get_text), (djvu_document_document_iface_init): * dvi/dvi-document.c: (dvi_document_can_get_text), (dvi_document_document_iface_init): * pdf/ev-poppler.cc: * pixbuf/pixbuf-document.c: (pixbuf_document_can_get_text), (pixbuf_document_document_iface_init): * ps/ps-document.c: (ps_document_can_get_text), (ps_document_document_iface_init): * shell/ev-view.c: (ev_view_copy), (ev_view_primary_get_cb): * shell/ev-window.c: (update_action_sensitivity): Fix the crash when trying to copy in backends that doesnt support it. We can implement a better solution once we do real text selection.
Diffstat (limited to 'ps/ps-document.c')
-rw-r--r--ps/ps-document.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ps/ps-document.c b/ps/ps-document.c
index c857a21..d06855f 100644
--- a/ps/ps-document.c
+++ b/ps/ps-document.c
@@ -1286,11 +1286,10 @@ ps_document_get_page_size (EvDocument *document,
}
}
-static char *
-ps_document_get_text (EvDocument *document, int page, EvRectangle *rect)
+static gboolean
+ps_document_can_get_text (EvDocument *document)
{
- g_warning ("ps_document_get_text not implemented"); /* FIXME ? */
- return NULL;
+ return FALSE;
}
static gboolean
@@ -1348,7 +1347,7 @@ 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->can_get_text = ps_document_can_get_text;
iface->get_n_pages = ps_document_get_n_pages;
iface->get_page_size = ps_document_get_page_size;
iface->render_pixbuf = ps_document_render_pixbuf;