X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-view.c;h=b94a317fca6b25e3baaa23d3ffdb680b4f196f06;hb=f9df2040ea8d3d5814257a45c23461eda0532f4e;hp=2db13179d9180929f9903b22fea21ce2366d56cd;hpb=5e6728daa9b09a76f2537f7c848123639165cd70;p=evince.git diff --git a/shell/ev-view.c b/shell/ev-view.c index 2db13179..b94a317f 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -1590,6 +1590,22 @@ ev_view_get_find_status (EvView *view) return view->find_status; } +gboolean +ev_view_can_find_next (EvView *view) +{ + int n_results = 0; + + if (view->document) { + EvDocumentFind *find = EV_DOCUMENT_FIND (view->document); + + g_mutex_lock (EV_DOC_MUTEX); + n_results = ev_document_find_get_n_results (find, view->current_page); + g_mutex_unlock (EV_DOC_MUTEX); + } + + return n_results > 0; +} + void ev_view_find_next (EvView *view) {