]> www.fi.muni.cz Git - evince.git/commitdiff
Fix compilation
authorMarco Pesenti Gritti <mpg@redhat.com>
Thu, 30 Jun 2005 13:52:45 +0000 (13:52 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 30 Jun 2005 13:52:45 +0000 (13:52 +0000)
2005-06-30  Marco Pesenti Gritti  <mpg@redhat.com>

        * pdf/ev-poppler.cc:

        Fix compilation

ChangeLog
pdf/ev-poppler.cc

index 892f2722138b903eb3bbbd4467ac6b8c7daa7a7b..50dac24a2d581533eab73f0f110f0f03d84c25f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-30  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * pdf/ev-poppler.cc:
+
+       Fix compilation
+
 2005-06-30  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * shell/Makefile.am:
index 528ecfd436621f696498691feabfc96e9cb13560..483c96e63128e3629bdb608b09b50e2ef9060232 100644 (file)
@@ -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,