modest_ui="gtk-glade"
fi
+AM_CONDITIONAL(HILDON, test x$hildon_support = xyes)
dnl now, determine what to build
AC_MSG_NOTICE([Determining what UI to build])
$(MODEST_LIBTINYMAIL_MAEMO_CFLAGS) \
-I$(MODEST_UI_DIR) -Wall\
-DPREFIX=\"@prefix@\" \
- -Wall
+ -Wall
+if HILDON
+INCLUDES += -DIS_HILDON
+endif
+
BUILT_SOURCES = modest-marshal.c modest-marshal.h
modest-marshal.c: marshall.list
#endif /*HAVE_CONFIG_H*/
#include <gtk/gtk.h>
+#ifdef IS_HILDON /* Hildon includes */
+#include <libosso.h>
+#define APPLICATION_DBUS_SERVICE "modest"
+#endif
+
+
static void install_basic_conf_settings (ModestConf *conf);
static void install_test_account (ModestConf *conf);
{ NULL }
};
+#ifdef IS_HILDON
+ osso_context_t *osso_context;
+#endif
g_type_init ();
g_warning ("failed to initialize ui");
goto cleanup;
}
+
+#ifdef IS_HILDON
+ /* Initialize maemo application */
+ osso_context = osso_initialize(APPLICATION_DBUS_SERVICE, "0.1", TRUE, NULL);
+
+ /* Check that initialization was ok */
+ if (osso_context == NULL)
+ goto cleanup;
+#endif
{
gboolean ok;