implements the EvDocumentFind interface.
+2005-01-08 Martin Kretzschmar <martink@gnome.org>
+
+ * shell/ev-view.c (ev_view_set_document): don't connect to "found"
+ unless the document implements the EvDocumentFind interface.
+
2005-01-08 Satoru SATOH <ss@gnome.gr.jp>
* configure.ac: Added ja to ALL_LINGUAS.
if (view->document) {
g_object_ref (view->document);
- g_signal_connect (view->document,
- "found",
- G_CALLBACK (found_results_callback),
- view);
+ if (EV_IS_DOCUMENT_FIND (view->document))
+ g_signal_connect (view->document,
+ "found",
+ G_CALLBACK (found_results_callback),
+ view);
g_signal_connect (view->document,
"changed",
G_CALLBACK (document_changed_callback),