Fixed some compilation errors in gnome platform
authorSergio Villar Senín <svillar@igalia.com>
Wed, 25 Nov 2009 17:42:23 +0000 (18:42 +0100)
committerSergio Villar Senín <svillar@igalia.com>
Wed, 25 Nov 2009 17:42:23 +0000 (18:42 +0100)
This includes removing some code and adding one ifdef that checks the existence of wpeditor-plus

configure.ac
src/Makefile.am
src/widgets/modest-msg-edit-window.c
src/widgets/modest-toolkit-utils.h

index a2446c0..3fb0354 100644 (file)
@@ -125,7 +125,6 @@ else
    AC_MSG_ERROR([install gtkhtml 3.8 or newer])
 fi
 
-PKG_CHECK_MODULES(LIBMODEST_DBUS_CLIENT,libmodest-dbus-client-1.0 >= 3.2.0)
 dnl # GLib/Gobject/Gtk/Gconf => mandatory
 
 PKG_CHECK_MODULES(MODEST_GSTUFF,glib-2.0 >= 2.6 gobject-2.0 gtk+-2.0 >= 2.6 gconf-2.0 gnome-vfs-2.0 libgtkhtml-${gtk_html_version} libtinymail-1.0 libtinymail-camel-1.0 libtinymail-gnomevfs-1.0 libtinymailui-1.0 libtinymailui-gtk-1.0) 
@@ -176,7 +175,7 @@ fi
 
 if test "$with_platform" = "maemo"; then
        MODEST_PLUGIN_DEFINES=" -DMODEST_PLATFORM_MAEMO -DMODEST_API_VERSION=${MODEST_API_VERSION}"
-       PKG_CHECK_MODULES(LIBMODEST_DBUS_CLIENT,libmodest-dbus-client-1.0)
+       PKG_CHECK_MODULES(LIBMODEST_DBUS_CLIENT,libmodest-dbus-client-1.0 >= 3.2.0)
 elif test "$with_platform" = "gnome"; then
        MODEST_PLUGIN_DEFINES=" -DMODEST_PLATFORM_GNOME -DMODEST_API_VERSION=${MODEST_API_VERSION}"
 fi
index d6affab..8ab21ca 100644 (file)
@@ -3,7 +3,7 @@
 # Time-stamp: <2008-01-06 10:18:49 (djcb)>
 
 SUBDIRS= $(MODEST_TOOLKIT_DIR) widgets $(dbus_api)
-DIST_SUBDIRS = widgets gtk maemo hildon2 dbus_api
+DIST_SUBDIRS = widgets gtk hildon2 dbus_api
 
 INCLUDES=\
        $(MODEST_GSTUFF_CFLAGS)                                 \
index bc8bb5b..151c13d 100644 (file)
@@ -1275,7 +1275,9 @@ replace_with_images (ModestMsgEditWindow *self, TnyList *attachments)
                        if (pixbuf != NULL) {
                                priv->images_count ++;
                                priv->images_size += stream_size;
+#ifndef MODEST_HAVE_LIBWPEDITOR_PLUS
                                wp_text_buffer_replace_image (WP_TEXT_BUFFER (priv->text_buffer), cid, pixbuf);
+#endif
                                g_object_unref (pixbuf);
                        }
                }
index 02f46e7..a0a887e 100644 (file)
@@ -34,7 +34,6 @@
 #include <gtk/gtk.h>
 #include <stdio.h> /* for FILE* */
 #include <tny-fs-stream.h>
-#include <libosso.h>
 #include "widgets/modest-global-settings-dialog.h"
 #include "widgets/modest-validating-entry.h"