From a521d16eb7f59cbda6881b66e0e7a00125377cd8 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 30 Jan 2005 12:28:10 +0000 Subject: More work on find implementation, mostly there now 2005-01-30 Marco Pesenti Gritti * backend/ev-document-find.c: (ev_document_find_base_init), (ev_document_find_changed): * backend/ev-document-find.h: * pdf/xpdf/pdf-document.cc: * shell/ev-view.c: (draw_rubberband), (highlight_find_results), (expose_bin_window), (ev_view_init), (set_document_page), (ensure_rectangle_is_visible), (jump_to_find_result), (jump_to_find_page), (find_changed_cb), (ev_view_set_document), (ev_view_find_next), (ev_view_find_previous): * shell/ev-view.h: * shell/ev-window.c: (find_bar_previous_cb), (find_bar_next_cb): More work on find implementation, mostly there now --- (limited to 'backend') diff --git a/backend/ev-document-find.c b/backend/ev-document-find.c index 9dc05c4..01ae739 100644 --- a/backend/ev-document-find.c +++ b/backend/ev-document-find.c @@ -58,8 +58,9 @@ ev_document_find_base_init (gpointer g_class) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EvDocumentFindIface, find_changed), NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, 0); + g_cclosure_marshal_VOID__INT, + G_TYPE_NONE, 1, + G_TYPE_INT); initialized = TRUE; } @@ -117,8 +118,8 @@ ev_document_find_get_progress (EvDocumentFind *document_find, } void -ev_document_find_changed (EvDocumentFind *document_find) +ev_document_find_changed (EvDocumentFind *document_find, int page) { - g_signal_emit_by_name (document_find, "find_changed"); + g_signal_emit_by_name (document_find, "find_changed", page); } diff --git a/backend/ev-document-find.h b/backend/ev-document-find.h index d17b9de..ebce196 100644 --- a/backend/ev-document-find.h +++ b/backend/ev-document-find.h @@ -59,7 +59,8 @@ struct _EvDocumentFindIface /* Signals */ - void (* find_changed) (EvDocumentFind *document_find); + void (* find_changed) (EvDocumentFind *document_find, + int page); }; GType ev_document_find_get_type (void); @@ -75,7 +76,8 @@ gboolean ev_document_find_get_result (EvDocumentFind *document_find, GdkRectangle *rectangle); void ev_document_find_get_progress (EvDocumentFind *document_find, double percent_complete); -void ev_document_find_changed (EvDocumentFind *document_find); +void ev_document_find_changed (EvDocumentFind *document_find, + int page); /* How this interface works: -- cgit v0.9.1