]> www.fi.muni.cz Git - evince.git/commitdiff
(ev_view_set_document): don't connect to "found" unless the document
authorMartin Kretzschmar <martink@src.gnome.org>
Sat, 8 Jan 2005 18:44:07 +0000 (18:44 +0000)
committerMartin Kretzschmar <martink@src.gnome.org>
Sat, 8 Jan 2005 18:44:07 +0000 (18:44 +0000)
implements the EvDocumentFind interface.

ChangeLog
shell/ev-view.c

index 2e4ca3fee1ed0b0dbe77dc20220ea80db1ca2f89..a0f4499de0df6716d22be4c3fcfbc37c2483b8fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index f878812d852d5c03c5938b21ed11ffccaa38ddc9..0848c965cd344929fa702d412a39a8f4e8ac8808 100644 (file)
@@ -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),