2007-04-20 Murray Cumming <murrayc@murrayc.com>
[modest] / ChangeLog2
index 1890ab6..d376b40 100644 (file)
@@ -1,3 +1,292 @@
+2007-04-20  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/easysetup/Makefile.am:
+       * src/maemo/easysetup/modest-easysetup-secureauth-combo-box.c:
+       * src/maemo/easysetup/modest-easysetup-secureauth-combo-box.h:
+       * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.c:
+       * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.h:
+       * src/maemo/easysetup/modest-easysetup-wizard.c:
+       * src/maemo/easysetup/modest-validating-entry.c:
+       * src/maemo/easysetup/modest-validating-entry.h:
+       * src/maemo/modest-account-settings-dialog.c:
+       * src/maemo/modest-connection-specific-smtp-edit-window.c:
+       * src/widgets/Makefile.am: Moved these widgets from maemo/easysetup into 
+       widgets/ because they are used outside of easysetup too. After checking in, 
+       svn will allow me to rename them too.
+
+2007-04-20  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/gnome/modest-msg-edit-window.c:
+       (modest_msg_edit_window_set_priority_flags): Added an empty implementation to fix a 
+       linker error, to fix the build on the GNOME platform.
+       modest_msg_edit_window_set_zoom(), modest_msg_edit_window_get_zoom(), 
+       modest_msg_edit_window_zoom_plus(), modest_msg_edit_window_zoom_minus():
+       ifdefed out to avoid a warning.
+
+2007-04-20  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/widgets/modest-header-view.c: (on_focus_in): Use GTK_CHECK_VERSION to #ifdef around the 
+       use of gtk_tree_view_get_visible_range(), to fix the build on Mameo. This code probably needs 
+       some alternative for GTK+ 2.6.
+
+2007-04-19  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/modest-address-book.c: Added include to avoid a warning.
+
+       * po/en_GB.po: Added missing mcen_bd_emailsetup_close string, 
+       specified for EmailAccountsDialog in UI spec.
+       
+       * src/maemo/easysetup/modest-easysetup-wizard.c:
+       * src/maemo/easysetup/modest-easysetup-wizard.h:
+       * src/maemo/modest-account-settings-dialog.c:
+       * src/maemo/modest-account-settings-dialog.h:
+       Reuse a member window widget for the connection-specific SMTP server accounts, 
+       so we can tell it to create/save the accounts only if we actually save changes.
+
+       * src/maemo/modest-connection-specific-smtp-edit-window.h:      
+       * src/maemo/modest-connection-specific-smtp-edit-window.c:
+       (modest_connection_specific_smtp_edit_window_get_settings): 
+       Return a struct instance for temporarily remembering the entered data.
+
+       * src/maemo/modest-connection-specific-smtp-window.h:
+       * src/maemo/modest-connection-specific-smtp-window.c:
+       (modest_connection_specific_smtp_window_finalize),
+       (modest_connection_specific_smtp_window_fill_with_connections),
+       (on_button_edit),
+       (modest_connection_specific_smtp_window_save_server_accounts),
+       (update_model_server_names): Do not actually save data until asked, 
+       when the caller calls modest_connection_specific_smtp_window_save_server_accounts().
+       
+       (on_selection_changed),
+       (modest_connection_specific_smtp_window_init): Disable the edit 
+       button when nothing is selected.
+       
+       * src/modest-account-mgr-helpers.c:
+       * src/modest-account-mgr-helpers.h: 
+       Put modest_account_mgr_free_server_account_data() in the header now that I use the struct 
+       elsewhere.
+
+2007-04-19  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-account-mgr-helpers.h:
+       * src/modest-account-mgr-helpers.c:
+       (modest_account_mgr_get_unused_account_name),
+       (modest_account_mgr_get_unused_account_display_name): Added these 
+       utility functions, to avoid code duplication.
+
+       * src/maemo/easysetup/modest-easysetup-wizard.c:
+       (create_page_account_details), (create_account):
+       * src/maemo/modest-connection-specific-smtp-edit-window.c:
+       (on_combo_security_changed),
+       (modest_connection_specific_smtp_edit_window_init),
+       (modest_connection_specific_smtp_edit_window_save_settings):
+       * src/maemo/modest-connection-specific-smtp-edit-window.h:
+       * src/maemo/modest-connection-specific-smtp-window.c:
+       (modest_connection_specific_smtp_window_finalize),
+       (modest_connection_specific_smtp_window_fill_with_connections),
+       (on_button_edit), (modest_connection_specific_smtp_window_init):
+       * src/maemo/modest-connection-specific-smtp-window.h:
+       Implementing saving of connection-specific server accounts.
+       
+       But I need to refactor this so we can save the data for each 
+       possible connection-specific account and only actually create the server accounts 
+       when the easysetup finished, or the OK button is pressed on the account settings 
+       dialog.
+
+2007-04-18  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/modest-connection-specific-smtp-edit-window.c:
+       (on_combo_security_changed): 
+       (modest_connection_specific_smtp_edit_window_init):
+       Auto-fill the port number as in the account settings.
+       
+       (modest_connection_specific_smtp_edit_window_set_connection):
+       * src/maemo/modest-connection-specific-smtp-edit-window.h:
+       * src/maemo/modest-connection-specific-smtp-window.c:
+       (fill_with_connections), (on_button_edit),
+       (modest_connection_specific_smtp_window_init): 
+       Turn the edit window into a dialog to simplify the code, and 
+       set a WM hint as in a GtkDialog, because only a popup can be on top of 
+       another window in Maemo, and popups usually have no WM decoration.
+       
+       * src/modest-defs.h:
+       * src/modest-account-mgr-helpers.c:
+       (modest_account_mgr_set_connection_specific_smtp),
+       (modest_account_mgr_remove_connection_specific_smtp),
+       (modest_account_mgr_get_connection_specific_smtp):
+       * src/modest-account-mgr-helpers.h: Some functions to write the 
+       connection-specific SMTP server information. Not yet used.
+
+       
+       * src/widgets/modest-folder-view.c: (text_cell_data):
+       Fix a warning about an uninitialized variable.
+       (on_configuration_key_changed): Put an #ifdef around the use 
+       of gtk_tree_view_column_queue_resize() because it is new in GTK+ 2.10.
+
+2007-04-18  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/modest-account-settings-dialog.h:
+       * src/maemo/modest-account-settings-dialog.c:
+       Added connect_for_modified() utility function to mark the new modified boolean.
+       
+       (create_page_account_details), (create_page_user_details),
+       (create_page_incoming), (create_page_outgoing), (on_response),
+       (modest_account_settings_dialog_init),
+       (modest_account_settings_dialog_set_account_name):
+       Only warn about unsaved changes when there are actually unsaved changes.
+       
+       * src/modest-account-mgr-helpers.c:
+       * src/modest-account-mgr-helpers.h: Put the port, secure-auth, and security information 
+       into the ModestServerAccountData struct. I do not use it yet, but someone might expect 
+       to get the data from there in future.
+
+2007-04-18  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-defs.h:
+
+       * src/modest-account-mgr-helpers.h:
+       * src/modest-account-mgr-helpers.c:
+       Store the security account setting in a single conf key instead of using 
+       the options list, so that the list is left for just the to-be-removed camel hack, 
+       and because gconf_client_set_list() is failing for some reason.
+
+       * src/modest-account-mgr.c:
+       (modest_account_mgr_add_server_account):
+       * src/maemo/modest-account-settings-dialog.c:
+       (modest_account_settings_dialog_set_account_name),
+       (save_configuration): Use the renamed functions.
+
+
+2007-04-18  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/widgets/Makefile.am:
+       * src/widgets/modest-limit-retrieve-combo-box.c:
+       * src/widgets/modest-limit-retrieve-combo-box.h:
+       * src/widgets/modest-retrieve-combo-box.c:
+       * src/widgets/modest-retrieve-combo-box.h: Added new widgets for use in 
+       the account settings dialog.
+       
+       * src/modest-defs.h:
+       * src/modest-account-mgr-helpers.h:
+       * src/modest-account-mgr-helpers.c:
+       (modest_server_account_get_option_secure_auth),
+       (modest_server_account_set_option_secure_auth):
+       * src/modest-account-mgr.c:
+       (modest_account_mgr_add_server_account):
+       Use the existing AUTH_MECH conf key for the secure-auth setting, 
+       instead of putting it in the list options, because this was actually used already.
+       
+       * src/maemo/modest-account-settings-dialog.c:
+       (create_page_account_details),
+       (modest_account_settings_dialog_set_account_name),
+       (save_configuration):
+       * src/maemo/modest-account-settings-dialog.h:
+       Add the retrieve and retrieve-limit combo boxes, as per the UI spec.
+       Hide the leave-messages checkbox for non-POP accounts, as per the UI spec.
+
+2007-04-18  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.h:
+       * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.c:
+       Added easysetup_serversecurity_combo_box_get_active_serversecurity_port()
+
+       * src/modest-defs.h:
+       * src/maemo/modest-account-settings-dialog.c:
+       (create_page_incoming), (on_combo_outgoing_security_changed),
+       (on_combo_incoming_security_changed), (create_page_outgoing),
+       (modest_account_settings_dialog_set_account_name),
+       (save_configuration): Load/Save the port number, and change it when the 
+       security combo changes, to suitable defaults.
+
+2007-04-17  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-account-mgr.c:
+       (modest_account_mgr_add_server_account): Set the security and secure-auth 
+       options, and add a comment saying that the other camel-specific options should be 
+       removed in future.
+
+2007-04-17  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/modest-account-settings-dialog.c: (check_data): Always return something, 
+       found by valgrind.
+       * src/modest-tny-account-store.c: (account_list_free),
+       (on_account_changed): Add a TODO comment about a valgrind error, caused by using 
+       cursor->data after unreffing it. But there is some strange stuff there so it might not be 
+       easy to fix.
+
+2007-04-17  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-protocol-info.c:
+       * src/modest-protocol-info.h: Added a MODEST_PROTOCOL_AUTH_CRAMMD5 enum value, because it 
+       is required by our UI spec. Maybe something in our implementation will use this eventually.
+       * src/maemo/easysetup/modest-easysetup-secureauth-combo-box.c: 
+       (easysetup_secureauth_combo_box_fill): Use the CRAM MD5 enum value 
+       instead of the previous 0 placeholder.
+       
+       * src/modest-defs.h: Added gconf list pair key names and value strings for the security and 
+       secure-auth settings.
+       * src/modest-account-mgr-helpers.h:
+       * src/modest-account-mgr-helpers.c:
+       (modest_server_account_data_get_option_secure_auth),
+       (modest_server_account_set_option_secure_auth),
+       (modest_server_account_data_get_option_security),
+       (modest_server_account_set_option_security): Added this API for getting and setting the security 
+       and secure-auth settings.
+       
+       * src/maemo/modest-account-settings-dialog.h:
+       * src/maemo/modest-account-settings-dialog.c:
+       (modest_account_settings_dialog_finalize), (check_data),
+       (on_response): Store the original title as well as the name, to avoid unnececessary warnings 
+       about changing titles.
+       (modest_account_settings_dialog_set_account_name): Load the security and secure-auth settings.
+       (save_configuration): Save the security and secure-auth settings.
+
+       * src/modest-conf.c: (modest_conf_set_list): Get the list after setting it, to show that this 
+       is failing sometimes (though reporting success). I fear I may need to debug gconf to fix this.
+
+2007-04-17  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-defs.h: 
+       * src/modest-account-mgr.c:
+       (modest_account_mgr_add_server_account):
+       Added and used defines for the options key and value pair strings, 
+       that are used so far, though they do not seem to correspond to anything in our 
+       UI specs or ModestProtocol enum.
+       
+       * src/modest-account-mgr-helpers.h:
+       * src/modest-account-mgr-helpers.c:
+       (compare_option_strings_for_name),
+       (modest_server_account_data_get_option_value),
+       (modest_server_account_data_get_option_bool),
+       (modest_account_mgr_get_server_account_option):
+       Added helper functions for parsing the options GSList.
+
+2007-04-16  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/modest-account-mgr-helpers.c: Clarified the documentation to say that the initial 
+       display name is based on the supplied account name.
+       * src/modest-account-mgr.c:
+       * src/modest-account-mgr.h: Added modest_account_mgr_account_with_display_name_exists(), 
+       with an inefficient, but good-enough, implementation.
+       
+       * src/maemo/easysetup/modest-easysetup-wizard.c:
+       (create_page_account_details), (on_before_next), (create_account): 
+       Check for existing display names rather than (non-user-visible) account names, and just 
+       create and set a unique account name at the end.
+       
+       * src/maemo/modest-account-settings-dialog.c:
+       (modest_account_settings_dialog_init),
+       (modest_account_settings_dialog_set_account_name),
+       (create_page_incoming): Show the display name, instead of the account name.
+       (on_response): Do some (not all) extra checks, as in the UI spec.
+       (save_configuration): Save the display name if it was changed.
+
+2007-04-16  Murray Cumming  <murrayc@murrayc.com>
+
+       * po/en_GB.po: Added needed logical ID and translation.
+       * src/widgets/modest-account-view.c: (on_account_default_toggled),
+       (init_view): Made the is-default column clicking work.
+
 2007-04-16  Murray Cumming  <murrayc@murrayc.com>
 
        * configure.ac: