Hi guys, 

This patch fix gnome compilation. Hope this is useful.

Kind Regards,
        Iván Gómez.
>From f20e2fd7e389a250c41be367863f743f73fe67ad Mon Sep 17 00:00:00 2001
From: Ivan Gomez <igo...@igalia.com>
Date: Thu, 7 May 2009 18:19:17 +0200
Subject: [PATCH] Fixed gnome compiling

---
 src/modest-address-book-dummy.c       |    2 +-
 src/widgets/modest-gtkhtml-msg-view.c |    3 +++
 src/widgets/modest-window.c           |    4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/modest-address-book-dummy.c b/src/modest-address-book-dummy.c
index c99a1d5..0e6fa9f 100644
--- a/src/modest-address-book-dummy.c
+++ b/src/modest-address-book-dummy.c
@@ -42,7 +42,7 @@ void modest_address_book_add_address (const gchar *address)
 
 
 void modest_address_book_select_addresses (ModestRecptEditor *editor,
-					   GtkWindow *parent_window);
+					   GtkWindow *parent_window)
 {
 	return;
 }
diff --git a/src/widgets/modest-gtkhtml-msg-view.c b/src/widgets/modest-gtkhtml-msg-view.c
index c6f13ab..469d6d7 100644
--- a/src/widgets/modest-gtkhtml-msg-view.c
+++ b/src/widgets/modest-gtkhtml-msg-view.c
@@ -1885,11 +1885,14 @@ set_priority (ModestGtkhtmlMsgView *self, TnyHeaderFlags flags)
 		gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon), MODEST_HEADER_ICON_LOW, GTK_ICON_SIZE_MENU);
 	}
 
+#ifdef MODEST_TOOLKIT_HILDON2
 	if (show_priority && MODEST_IS_COMPACT_MAIL_HEADER_VIEW (priv->mail_header_view)) {
 		gtk_widget_show_all  (priv->priority_box);
 	} else {
 		gtk_widget_hide_all (priv->priority_box);
 	}
+#endif
+
 }
 
 /* INCREMENTAL SEARCH IMPLEMENTATION */
diff --git a/src/widgets/modest-window.c b/src/widgets/modest-window.c
index 280eeda..d7e33f9 100644
--- a/src/widgets/modest-window.c
+++ b/src/widgets/modest-window.c
@@ -35,13 +35,15 @@
 #include "modest-window-mgr.h"
 #include "modest-defs.h"
 #include <string.h> /* for strcmp */
-#include <hildon/hildon-defines.h>
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdk.h>
 #include <gdk/gdkx.h>
 #include <X11/Xatom.h>
 #include <X11/XKBlib.h>
 #include <X11/Xdmcp.h>
+#ifdef MODEST_TOOLKIT_HILDON2
+#include <hildon/hildon-defines.h>
+#endif
 
 /* 'private'/'protected' functions */
 static void modest_window_class_init (ModestWindowClass *klass);
-- 
1.5.6.3

_______________________________________________
Modest-devel mailing list
Modest-devel@garage.maemo.org
https://garage.maemo.org/mailman/listinfo/modest-devel

Reply via email to