a few pan compile fixes

Zing <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
Hello folks,

The following are some fixes I had to make to get the lostcoder testing 
branch compiled on Fedora 13.

diff --git a/configure.in b/configure.in
index d54e93b..148a3a9 100644
--- a/configure.in
+++ b/configure.in
@@ -40,7 +40,7 @@ dnl GtkSpell is optional: GTKSPELL_REQUIRED refers to 
the minimum version
 dnl needed if you want to build Pan with spellchecking in the Post window.
 
 GLIB_REQUIRED=2.14.0
-GMIME_REQUIRED=2.4.0
+GMIME_REQUIRED=2.5.0
 GTK_REQUIRED=2.16.0
 GTKSPELL_REQUIRED=2.0.7
 AC_SUBST(GLIB_REQUIRED)
@@ -71,7 +71,7 @@ AM_GLIB_GNU_GETTEXT
 panlocaledir='${prefix}/${DATADIRNAME}/locale'
 
 AM_PATH_GLIB_2_0($GLIB_REQUIRED,,exit 1,gobject gmodule gthread)
-PKG_CHECK_MODULES(GMIME, gmime-2.4    >= $GMIME_REQUIRED)
+PKG_CHECK_MODULES(GMIME, gmime-2.6    >= $GMIME_REQUIRED)
 AM_PATH_GTK_2_0($GTK_REQUIRED,,exit 1,gthread)
 
 
diff --git a/pan/gui/body-pane.cc b/pan/gui/body-pane.cc
index 04a9ce3..7643e16 100644
--- a/pan/gui/body-pane.cc
+++ b/pan/gui/body-pane.cc
@@ -803,7 +803,7 @@ namespace
    * Generates a GtkPixmap object from a given GMimePart that contains an 
image.
    * Used for displaying attached pictures inline.
    */
-  GdkPixbuf* get_pixbuf_from_gmime_part (const GMimePart * part)
+  GdkPixbuf* get_pixbuf_from_gmime_part (GMimePart * part)
   {
     GdkPixbufLoader * l (gdk_pixbuf_loader_new ());
     GError * err (0);
diff --git a/pan/gui/post-ui.cc b/pan/gui/post-ui.cc
index 29d90d9..2a867f2 100644
--- a/pan/gui/post-ui.cc
+++ b/pan/gui/post-ui.cc
@@ -1544,7 +1544,7 @@ PostUI :: set_message (GMimeMessage * message)
   const char *name, *value;
   GMimeHeaderIter iter;
   
-  if (message->mime_part && g_mime_header_list_has_raw (message-
>mime_part->headers)) {
+  if (message->mime_part && g_mime_header_list_get_stream (message-
>mime_part->headers) != NULL) {
     if (g_mime_header_list_get_iter (message->mime_part->headers, &iter)) 
{
       do {
         value = g_mime_header_iter_get_value (&iter);
diff --git a/pan/usenet-utils/mime-utils.cc b/pan/usenet-utils/mime-
utils.cc
index 5d7bbab..621d161 100644
--- a/pan/usenet-utils/mime-utils.cc
+++ b/pan/usenet-utils/mime-utils.cc
@@ -1209,7 +1209,7 @@ namespace
 namespace
 {
   char *
-  pan_g_mime_part_get_content (const GMimePart *mime_part, size_t *len)
+  pan_g_mime_part_get_content (GMimePart *mime_part, size_t *len)
   {
     char *retval = NULL;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.