From fc6f0545ec11a89fe17428be5646b3563724aa40 Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Sat, 08 Jan 2005 18:44:07 +0000 Subject: (ev_view_set_document): don't connect to "found" unless the document implements the EvDocumentFind interface. --- diff --git a/ChangeLog b/ChangeLog index 2e4ca3f..a0f4499 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-08 Martin Kretzschmar + + * 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 * configure.ac: Added ja to ALL_LINGUAS. diff --git a/shell/ev-view.c b/shell/ev-view.c index f878812..0848c96 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -882,10 +882,11 @@ ev_view_set_document (EvView *view, 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), -- cgit v0.9.1