Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-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 /backend/ev-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 'backend/ev-document.c')
-rw-r--r--backend/ev-document.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/ev-document.c b/backend/ev-document.c
index aa61fc6..124a626 100644
--- a/backend/ev-document.c
+++ b/backend/ev-document.c
@@ -182,6 +182,14 @@ ev_document_get_page_label(EvDocument *document,
return iface->get_page_label (document, page);
}
+gboolean
+ev_document_can_get_text (EvDocument *document)
+{
+ EvDocumentIface *iface = EV_DOCUMENT_GET_IFACE (document);
+
+ return iface->can_get_text (document);
+}
+
char *
ev_document_get_text (EvDocument *document,
int page,