G_BEGIN_DECLS
+#ifndef GTK_STOCK_FULLSCREEN
+#define GTK_STOCK_FULLSCREEN NULL
+#endif /*GTK_STOCK_FULLSCREEN*/
+
+
/* Action entries */
static const GtkActionEntry modest_action_entries [] = {
/* Needed to show the contents of the toolbar */
gtk_widget_show_all (GTK_WIDGET (self));
-
+
return MODEST_WINDOW(self);
}
if (!modest_runtime_init ()) {
g_printerr ("modest: cannot init runtime\n");
return MODEST_ERR_INIT;
+
}
-
account_or_default = check_account (account);
g_free (account);
-
-/* if (modest_conf_get_bool (modest_runtime_get_conf(), MODEST_CONF_CONNECT_AT_STARTUP, NULL))
- tny_device_force_online (modest_runtime_get_device());
-*/
+
if (!batch) {
if (!modest_runtime_init_ui (argc, argv)) {
g_printerr ("modest: cannot start ui\n");
retval = MODEST_ERR_UI;
goto cleanup;
- } else
+ } else {
+ if (modest_conf_get_bool (modest_runtime_get_conf(),
+ MODEST_CONF_CONNECT_AT_STARTUP, NULL))
+ tny_device_force_online (modest_runtime_get_device());
+
retval = start_ui (account_or_default,
mailto, cc, bcc, subject, body);
+ }
} else {
if (!account_or_default) {
g_printerr ("modest: no account has been defined yet\n");
else if (account_data->transport_account)
id = account_data->transport_account->account_name;
- if (id)
+ if (!id)
+ g_printerr ("modest: could not get an id for account %s\n",
+ account_name);
+ else
account = modest_tny_account_store_get_tny_account_by_id (self, id);
+
if (!account)
g_printerr ("modest: could not get tny %s account for %s (id=%s)\n",
type == TNY_ACCOUNT_TYPE_STORE? "store" : "transport",
static gboolean on_url_requested (GtkWidget *widget, const gchar *uri, GtkHTMLStream *stream,
ModestMsgView *msg_view);
static gboolean on_link_hover (GtkWidget *widget, const gchar *uri, ModestMsgView *msg_view);
-static void on_tap_and_hold (GtkWidget *widget, gpointer userdata);
+
+#ifdef MAEMO_CHANGES
+static void on_tap_and_hold (GtkWidget *widget, gpointer userdata);
+#endif /*MAEMO_CHANGES*/
+
/* size allocation and drawing handlers */
static void get_view_allocation (ModestMsgView *msg_view, GtkAllocation *allocation);