2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
* pdf/ev-poppler.cc:
Return 0 results when search is not in progress.
* shell/ev-window.c: (ev_window_cmd_go_previous_page),
(ev_window_cmd_go_next_page), (find_bar_search_changed_cb):
Update menu sensitivity when cancelling search
+2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * pdf/ev-poppler.cc:
+
+ Return 0 results when search is not in progress.
+
+ * shell/ev-window.c: (ev_window_cmd_go_previous_page),
+ (ev_window_cmd_go_next_page), (find_bar_search_changed_cb):
+
+ Update menu sensitivity when cancelling search
+
2005-09-19 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-view.c: (ev_view_can_find_next):
{
PdfDocumentSearch *search = PDF_DOCUMENT (document_find)->search;
- g_return_val_if_fail (search != NULL, FALSE);
-
- return search->pages[page] != NULL;
+ return search && search->pages[page] != NULL;
}
double
{
g_return_if_fail (EV_IS_WINDOW (ev_window));
- ev_view_previous_page (ev_window->priv->view);
+ ev_view_previous_page (EV_VIEW (ev_window->priv->view));
}
static void
{
g_return_if_fail (EV_IS_WINDOW (ev_window));
- ev_view_next_page (ev_window->priv->view);
+ ev_view_next_page (EV_VIEW (ev_window->priv->view));
}
static void
ev_document_find_cancel (EV_DOCUMENT_FIND (ev_window->priv->document));
ev_document_doc_mutex_unlock ();
+ update_action_sensitivity (ev_window);
egg_find_bar_set_status_text (EGG_FIND_BAR (ev_window->priv->find_bar),
NULL);
gtk_widget_queue_draw (GTK_WIDGET (ev_window->priv->view));