diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2005-01-30 12:28:10 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-01-30 12:28:10 (GMT) |
commit | a521d16eb7f59cbda6881b66e0e7a00125377cd8 (patch) | |
tree | a0855618e705d51434f34a783432c14493b91356 /backend | |
parent | ae6a79781ff5126c19c84570277376f43158ec86 (diff) |
More work on find implementation, mostly there now
2005-01-30 Marco Pesenti Gritti <marco@gnome.org>
* 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
Diffstat (limited to 'backend')
-rw-r--r-- | backend/ev-document-find.c | 9 | ||||
-rw-r--r-- | backend/ev-document-find.h | 6 |
2 files changed, 9 insertions, 6 deletions
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: |