From: Marco Pesenti Gritti Date: Thu, 30 Jun 2005 13:52:45 +0000 (+0000) Subject: Fix compilation X-Git-Tag: EVINCE_0_3_3~195 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=5375c5a88738e2e2027ce01195cc5c93e64e7ba7;p=evince.git Fix compilation 2005-06-30 Marco Pesenti Gritti * pdf/ev-poppler.cc: Fix compilation --- 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,