* configure.ac: Define MODEST_PLATFORM_MAEMO and MODEST_PLATFORM_GNOME in config.h,
so we can #ifdef around platform-specific code when necessary.
* src/modest-ui-actions.c: (modest_ui_actions_on_new_account): Use MODEST_PLATFORM_MAEMO
to allow this to build for the GNOME platform too.
pmo-trunk-r1501
2007-04-04 Murray Cumming <murrayc@murrayc.com>
+ * configure.ac: Define MODEST_PLATFORM_MAEMO and MODEST_PLATFORM_GNOME in config.h,
+ so we can #ifdef around platform-specific code when necessary.
+ * src/modest-ui-actions.c: (modest_ui_actions_on_new_account): Use MODEST_PLATFORM_MAEMO
+ to allow this to build for the GNOME platform too.
+
+2007-04-04 Murray Cumming <murrayc@murrayc.com>
+
* src/maemo/easysetup/modest-easysetup-wizard.c:
Added util_increment_name() and used it in create_page_account_details()
to make sure that the default account name is always a new name.
PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO,libtinymail-maemo-1.0 hildon-libs libosso libossomime osso-addressbook-1.0 wpeditor)
AC_SUBST(MODEST_LIBTINYMAIL_MAEMO_CFLAGS)
AC_SUBST(MODEST_LIBTINYMAIL_MAEMO_LIBS)
+
+ AC_DEFINE_UNQUOTED(MODEST_PLATFORM_MAEMO, 1, ["Whether modest is being built for the Maemo platform."])
desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
serviceentrydir=`$PKG_CONFIG dbus-glib-1 --variable=prefix`/share/dbus-1/services
AC_SUBST(MODEST_LIBTINYMAIL_GNOME_DESKTOP_CFLAGS)
AC_SUBST(MODEST_LIBTINYMAIL_GNOME_DESKTOP_LIBS)
MODEST_PLATFORM_ID=1
+
+ AC_DEFINE_UNQUOTED(MODEST_PLATFORM_GNOME, 1, ["Whether modest is being built for the GNOME platform."])
fi
dnl 1==>gnome, 2==>maemo
void
modest_ui_actions_on_new_account (GtkAction *action, ModestWindow *win)
-{
+{
+ /* This is currently only implemented for Maemo,
+ * because it requires a providers preset file which is not publically available.
+ */
+#ifdef MODEST_PLATFORM_MAEMO /* Defined in config.h */
ModestEasysetupWizardDialog *wizard = modest_easysetup_wizard_dialog_new ();
gtk_window_set_transient_for (GTK_WINDOW (wizard), GTK_WINDOW (win));
gtk_dialog_run (GTK_DIALOG (wizard));
gtk_widget_destroy (GTK_WIDGET (wizard));
+#endif MODEST_PLATFORM_MAEMO
}
void