diff options
author | Havoc Pennington <hp@redhat.com> | 2004-12-23 03:09:00 (GMT) |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2004-12-23 03:09:00 (GMT) |
commit | ec2aa10ab1ec9246d6c35b90f5d1df372f39c732 (patch) | |
tree | bed05e043e1cfbe54aa393b1986f736f70339769 /backend/ev-document.h | |
parent | ca09e13c4411410140f24c9a0de61527685c9719 (diff) |
display an error if the document doesn't support find (better ideas?)
2004-12-22 Havoc Pennington <hp@redhat.com>
* shell/ev-window.c (ev_window_cmd_edit_find): display an error if
the document doesn't support find (better ideas?)
(find_bar_search_changed_cb): handle missing document or document
that doesn't support find
* pdf/xpdf/pdf-document.cc: port to implement the new
EvDocumentFindIface
* backend/ev-document-find.c: create a new interface for searching
* backend/ev-document.h, backend/ev-document.c: delete the find stuff
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r-- | backend/ev-document.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/backend/ev-document.h b/backend/ev-document.h index 4cf4601..083bd1a 100644 --- a/backend/ev-document.h +++ b/backend/ev-document.h @@ -28,12 +28,6 @@ G_BEGIN_DECLS -typedef struct -{ - int page_num; - GdkRectangle highlight_area; -} EvFindResult; - #define EV_TYPE_DOCUMENT (ev_document_get_type ()) #define EV_DOCUMENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_DOCUMENT, EvDocument)) #define EV_DOCUMENT_IFACE(k) (G_TYPE_CHECK_CLASS_CAST((k), EV_TYPE_DOCUMENT, EvDocumentIface)) @@ -71,23 +65,6 @@ struct _EvDocumentIface int clip_y, int clip_width, int clip_height); - - void (* begin_find) (EvDocument *document, - const char *search_string, - gboolean case_sensitive); - void (* end_find) (EvDocument *document); - - /* Signals */ - - /* "found" emitted at least 1 time (possibly with n_results == 0) - * for any call to begin_find; also emitted with NULL,0 when - * you end_find. Calling begin_find twice without calling end_find - * is considered OK. - */ - void (* found) (EvDocument *document, - const EvFindResult *results, - int n_results, - double percent_complete); }; GType ev_document_get_type (void); @@ -114,16 +91,6 @@ void ev_document_render (EvDocument *document, int clip_y, int clip_width, int clip_height); -void ev_document_begin_find (EvDocument *document, - const char *search_string, - gboolean case_sensitive); -void ev_document_end_find (EvDocument *document); - -void ev_document_found (EvDocument *document, - const EvFindResult *results, - int n_results, - double percent_complete); - G_END_DECLS |