+#include <hildon/hildon-program.h>
+
+#endif /*__MODEST_HAVE_HILDON1_WIDGETS*/
+#endif /*__MODEST_HAVE_HILDON0_WIDGETS_*/
+
+
+/* backward compatibility... */
+#ifdef MODEST_HAVE_OSSO_MIME
+#define hildon_mime_open_file_with_mime_type osso_mime_open_file_with_mime_type
+#define hildon_mime_open_file osso_mime_open_file
+
+#define HildonURIAction OssoURIAction
+#define hildon_uri_get_scheme_from_uri osso_uri_get_scheme_from_uri
+#define hildon_uri_get_actions osso_uri_get_actions
+#define hildon_uri_get_actions_by_uri osso_uri_get_actions_by_uri
+#define hildon_uri_action_get_translation osso_uri_action_get_translation
+#define hildon_uri_is_default_action osso_uri_is_default_action
+#define hildon_uri_free_actions osso_uri_free_actions
+
+/* service->name */
+#define hildon_uri_action_get_service osso_uri_action_get_name
+#define hildon_uri_open osso_uri_open
+
+#define hildon_mime_get_icon_names osso_mime_get_icon_names
+#endif /*MODEST_HAVE_OSSO_MIME*/
+
+/* helplib to use */
+#ifdef MODEST_HAVE_OSSO_HELP
+#define hildon_help_show ossohelp_show
+#define hildon_help_dialog_help_enable ossohelp_dialog_help_enable
+#define HILDON_HELP_SHOW_DIALOG OSSO_HELP_SHOW_DIALOG
+#else
+#ifdef MODEST_HAVE_HILDON_HELP
+/* nothing */
+#endif /*MODEST_HAVE_HILDON_HELP*/
+#endif /*MODEST_HAVE_OSSO_HELP*/
+
+/* some extra #defines, so it will compile with the 'normal' gtk */
+#ifndef MODEST_HAVE_HILDON_GTK
+#define hildon_gtk_entry_set_input_mode(a,b) \
+ g_warning ("%s: hildon_gtk_entry_set_input_mode requires gtk-hildon", __FUNCTION__)
+#define hildon_gtk_text_view_set_input_mode(a,b) \
+ g_warning ("%s: hildon_gtk_text_view_set_input_mode requires gtk-hildon", __FUNCTION__)
+#define gtk_widget_tap_and_hold_setup(a,b,c,d) \
+ g_warning ("%s: gtk_widget_tap_and_hold_setup requires gtk-hildon", __FUNCTION__)
+
+typedef enum
+{
+ GTK_INVALID_INPUT_MAX_CHARS_REACHED,
+ GTK_INVALID_INPUT_MODE_RESTRICTION
+} GtkInvalidInputType;