From 5375c5a88738e2e2027ce01195cc5c93e64e7ba7 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 30 Jun 2005 13:52:45 +0000 Subject: [PATCH] Fix compilation 2005-06-30 Marco Pesenti Gritti * pdf/ev-poppler.cc: Fix compilation --- ChangeLog | 6 ++++++ pdf/ev-poppler.cc | 38 +++++++++++++++++++------------------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 892f2722..50dac24a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-30 Marco Pesenti Gritti + + * pdf/ev-poppler.cc: + + Fix compilation + 2005-06-30 Marco Pesenti Gritti * shell/Makefile.am: diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 528ecfd4..483c96e6 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -103,6 +103,25 @@ G_DEFINE_TYPE_WITH_CODE (PdfDocument, pdf_document, G_TYPE_OBJECT, pdf_selection_iface_init); }); +static void +pdf_document_search_free (PdfDocumentSearch *search) +{ + PdfDocument *pdf_document = search->document; + int n_pages; + int i; + + if (search->idle != 0) + g_source_remove (search->idle); + + n_pages = pdf_document_get_n_pages (EV_DOCUMENT (pdf_document)); + for (i = 0; i < n_pages; i++) { + g_list_foreach (search->pages[i], (GFunc) g_free, NULL); + g_list_free (search->pages[i]); + } + + g_free (search->text); +} + static void pdf_document_dispose (GObject *object) { @@ -989,25 +1008,6 @@ pdf_document_search_new (PdfDocument *pdf_document, return search; } -static void -pdf_document_search_free (PdfDocumentSearch *search) -{ - PdfDocument *pdf_document = search->document; - int n_pages; - int i; - - if (search->idle != 0) - g_source_remove (search->idle); - - n_pages = pdf_document_get_n_pages (EV_DOCUMENT (pdf_document)); - for (i = 0; i < n_pages; i++) { - g_list_foreach (search->pages[i], (GFunc) g_free, NULL); - g_list_free (search->pages[i]); - } - - g_free (search->text); -} - static void pdf_document_find_begin (EvDocumentFind *document, int page, -- 2.43.5