2005-04-08 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-view.c: (ev_view_can_find_next):
* shell/ev-window.c: (ev_window_setup_document):
Check that the document supports find
+2005-04-08 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * shell/ev-view.c: (ev_view_can_find_next):
+ * shell/ev-window.c: (ev_window_setup_document):
+
+ Check that the document supports find
+
2005-04-08 Marco Pesenti Gritti <mpg@redhat.com>
* data/evince-ui.xml:
{
int n_results = 0;
- if (view->document) {
+ if (EV_IS_DOCUMENT_FIND (view->document)) {
EvDocumentFind *find = EV_DOCUMENT_FIND (view->document);
g_mutex_lock (EV_DOC_MUTEX);
"notify::title",
G_CALLBACK (update_window_title),
ev_window, 0);
- g_signal_connect_object (G_OBJECT (document),
- "find_changed",
- G_CALLBACK (find_changed_cb),
- ev_window, 0);
+ if (EV_IS_DOCUMENT_FIND (document)) {
+ g_signal_connect_object (G_OBJECT (document),
+ "find_changed",
+ G_CALLBACK (find_changed_cb),
+ ev_window, 0);
+ }
ev_window_set_page_mode (ev_window, PAGE_MODE_SINGLE_PAGE);