2007-04-04 Murray Cumming <murrayc@murrayc.com>
+ * src/maemo/easysetup/modest-easysetup-wizard.c: (create_account):
+ * src/maemo/easysetup/modest-presets.c: (modest_presets_new):
+ * src/maemo/modest-msg-edit-window.c:
+ (modest_msg_edit_window_insert_image):
+ * src/modest-conf.c: (modest_conf_key_escape):
+ * src/modest-mail-operation.c:
+ (modest_mail_operation_send_new_mail):
+ * src/modest-ui-actions.c: (modest_ui_actions_on_accounts),
+ (modest_ui_actions_on_new_account):
+ * src/widgets/modest-attachment-view.c: (update_filename_request):
+ * src/widgets/modest-mail-header-view.c:
+ Corrected warnings that were breaking the build, by commenting out unused variables,
+ and a function, and by including a header.
+
+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
protocol_authentication_outgoing = easysetup_secureauth_combo_box_get_active_secureauth (
EASYSETUP_SECUREAUTH_COMBO_BOX (self->combo_outgoing_auth));
+ /* TODO:
gboolean specific = gtk_toggle_button_get_active (
GTK_TOGGLE_BUTTON (self->checkbox_outgoing_smtp_specific));
+ */
}
return NULL;
}
+ /* TODO: Unobfuscate an obfuscated file and then load it with g_key_file_load_from_data() instead. */
+
if (!g_key_file_load_from_file (presets->keyfile, presetfile,
G_KEY_FILE_NONE, &err)) {
g_printerr ("modest: cannot open keyfile from %s:\n %s\n", presetfile,
#include <fcntl.h>
#include <glib/gstdio.h>
#include <tny-account-store.h>
+#include <tny-fs-stream.h>
#include <gtk/gtk.h>
#include <modest-account-mgr.h>
ModestMsgEditWindowPrivate *priv;
GtkWidget *dialog = NULL;
- gint response;
- gchar *filename;
+ gint response = 0;
+ gchar *filename = NULL;
priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (window);
modest_conf_key_escape (const gchar* key)
{
g_return_val_if_fail (key, NULL);
- g_return_val_if_fail (strlen (key) > 0, key);
+ g_return_val_if_fail (strlen (key) > 0, g_strdup (key));
return gconf_escape_key (key, strlen(key));
}
{
TnyMsg *new_msg;
ModestMailOperationPrivate *priv = NULL;
- GList *node = NULL;
+ /* GList *node = NULL; */
g_return_if_fail (MODEST_IS_MAIL_OPERATION (self));
g_return_if_fail (TNY_IS_TRANSPORT_ACCOUNT (transport_account));
void
modest_ui_actions_on_accounts (GtkAction *action, ModestWindow *win)
{
- /* GtkDialog *account_win; */
-/* account_win = GTK_DIALOG(modest_account_view_window_new ()); */
-
-
-/* gtk_dialog_run (account_win); */
- //gtk_widget_destroy (GTK_WIDGET(account_win));
- GtkWidget *dialog, *label;
+ /* 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 */
+ GtkDialog *account_win = GTK_DIALOG(modest_account_view_window_new ());
+ gtk_window_set_transient_for (GTK_WINDOW (account_win), GTK_WINDOW(win));
+ gtk_dialog_run (account_win);
+ gtk_widget_destroy (GTK_WIDGET(account_win));
+#else
+ GtkWidget *dialog, *label;
/* Create the widgets */
gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox),
label);
gtk_widget_show_all (dialog);
+#endif /* MODEST_PLATFORM_MAEMO */
}
void
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
+#endif /* MODEST_PLATFORM_MAEMO */
}
void
update_filename_request (ModestAttachmentView *self)
{
ModestAttachmentViewPriv *priv = MODEST_ATTACHMENT_VIEW_GET_PRIVATE (self);
- gint width, height;
+ /* gint width, height; */
pango_layout_set_text (PANGO_LAYOUT (priv->layout_full_filename),
gtk_label_get_text (GTK_LABEL (priv->filename_view)), -1);
g_signal_emit (G_OBJECT (view), signals[RECPT_ACTIVATED_SIGNAL], 0, address);
}
+#if 0 /* This function is not used. murrayc. */
static void
add_header (ModestMailHeaderView *widget, const gchar *field, const gchar *value)
{
gtk_widget_show (hbox);
}
+#endif
+
static void
add_recpt_header (ModestMailHeaderView *widget, const gchar *field, const gchar *value)