Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMartin Kretzschmar <martink@src.gnome.org>2005-01-08 18:44:07 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-01-08 18:44:07 (GMT)
commitfc6f0545ec11a89fe17428be5646b3563724aa40 (patch)
treede18e40d8fd3f7d7593e9a78898639586e906e16 /shell
parent2551bee582db356066fa8cda77a6d5bbb9292d9f (diff)
(ev_view_set_document): don't connect to "found" unless the document
implements the EvDocumentFind interface.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c9
1 files changed, 5 insertions, 4 deletions
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),