2007-05-21 Murray Cumming <murrayc@murrayc.com>
[modest] / ChangeLog2
1 2007-05-21  Murray Cumming  <murrayc@murrayc.com>
2
3         * src/modest-ui-actions.c:
4         (modest_ui_actions_on_password_requested): Make sure that the remember 
5         output parameter is always TRUE.
6
7 2007-05-21  Murray Cumming  <murrayc@murrayc.com>
8
9         * src/modest-tny-account-store.c: (modest_tny_account_store_alert):
10         Show a OK/Cancel dialog if the error is a question, though we still do not 
11         know anything more about what we are asking the user.
12         * src/widgets/modest-folder-view.c: (on_drag_data_received):
13         Fix an uninitialized variable (helper). This is a logic error, however.
14
15 2007-05-21  Christian Kellner  <ckellner@openismus.com>
16         
17         * src/modest-search.h:
18         Correct bit shifting in the ModestSearchFlags enum.
19
20 2007-05-21  Murray Cumming  <murrayc@murrayc.com>
21
22         * src/modest-tny-account.c:
23         (modest_tny_account_new_from_server_account): Do not use the lsub and 
24         check-all hard-coded IMAP options when using POP.
25
26 2007-05-21  Murray Cumming  <murrayc@murrayc.com>
27
28         * src/modest-tny-account.c:
29         (modest_tny_account_new_from_server_account): 
30         Use NULL for the secure-auth method for POP when Password auth has been 
31         specified by the user, as we already do for IMAP. "auth=Login" causes 
32         an error from camel or the server.
33
34 2007-05-17  Murray Cumming  <murrayc@murrayc.com>
35
36         * src/maemo/modest-account-settings-dialog.c:
37         (create_page_account_details),
38         (modest_account_settings_dialog_set_account_name):
39         * src/maemo/modest-account-settings-dialog.h: Hide the whole caption 
40         for the leave-on-server checkbox, rathr than just the checkbox, when 
41         the protocol is not POP.
42
43 2007-05-17  Murray Cumming  <murrayc@murrayc.com>
44
45         * src/widgets/modest-account-view.c:
46         * src/widgets/modest-account-view.h:
47         Added modest_account_view_select_account() which will be useful later 
48         to asynchronously re-select the edited account.
49
50 2007-05-17  Murray Cumming  <murrayc@murrayc.com>
51
52         * src/maemo/modest-account-settings-dialog.c:
53         (modest_account_settings_dialog_set_account_name): 
54         Automatically choose the port numbers based on the secure authentication 
55         methods, if they have not been chosen before.
56         This fixes projects.maemo.org bug NB#56273 .
57
58 2007-05-17  Murray Cumming  <murrayc@murrayc.com>
59
60         * src/maemo/modest-main-window-ui.h:
61         * src/modest-ui-actions.c:
62         * src/modest-ui-actions.h:
63         Connect the Tools/SMTP Servers menu item to 
64         modest_ui_actions_on_smtp_servers(), which shows the connection-specific 
65         SMTP servers dialog, as in the UI specification and saves changes when it 
66         is closed. This fixed  projects.maemo.org bug NB#56305 .
67
68 2007-05-17  Murray Cumming  <murrayc@murrayc.com>
69
70         * src/maemo/modest-connection-specific-smtp-window.c:
71         (modest_connection_specific_smtp_window_init):
72         Use gtk_window_set_default_size() to make this window big enough, so 
73         we see more of the GtkTreeView. This fixes projects.maemo.org bug NB#55497 .
74
75 2007-05-17  Murray Cumming  <murrayc@murrayc.com>
76
77         * src/maemo/modest-connection-specific-smtp-edit-window.h:
78         * src/maemo/modest-connection-specific-smtp-edit-window.c:
79         (modest_connection_specific_smtp_edit_window_init),
80         Do not try to connect to a combobox signal before the combobox exists.
81         This fixes the cras in projects.maemo.org bug NB#56288 .
82         (modest_connection_specific_smtp_edit_window_get_settings):
83         Remove the server_account_name parameter which was being checked for NULL 
84         though it was not used.
85
86         * src/maemo/modest-connection-specific-smtp-window.c:
87         (modest_connection_specific_smtp_window_fill_with_connections),
88         (on_button_edit), (modest_connection_specific_smtp_window_init):
89         Correct the number of treemodel columns to prevent a warning.
90         Added DEBUG_WITHOUT_LIBCONIC #define, for debugging on scratchbox, where 
91         libconic does not work.
92
93 2007-05-16  Murray Cumming  <murrayc@murrayc.com>
94
95         * src/modest-tny-account.c:
96         (modest_tny_account_new_from_server_account):
97         Excplicitly use ANONYMOUS secure authentication, instead of "PLAIN" for 
98         SMTP when "None" was chosen by the user. However, with my SMTP server that 
99         does not support ANONYMOUS, the emails do not leave the Outbox and I see 
100         no error dialog.
101
102 2007-05-16  Murray Cumming  <murrayc@murrayc.com>
103
104         * src/modest-pair.h: Improve the documentation for modest_combo_box_new() 
105         to explain the memory management issue with the ID in the ModestPair.
106         
107         * src/gnome/modest-account-assistant.c: (add_receiving_page),
108         (add_sending_page), (modest_account_assistant_finalize):
109         * src/gnome/modest-gnome-global-settings-dialog.c:
110         (create_updating_page), (create_composing_page):
111         * src/gnome/modest-msg-edit-window.c: (get_transports),
112         (init_window), (modest_msg_edit_window_finalize),
113         (modest_msg_edit_window_get_msg_data):
114         * src/gnome/modest-store-widget.c: (imap_pop_configuration):
115         * src/gnome/modest-transport-widget.c:
116         (modest_transport_widget_finalize), (smtp_configuration):
117         * src/maemo/modest-maemo-global-settings-dialog.c:
118         (create_updating_page), (create_composing_page):
119         * src/maemo/modest-msg-edit-window.c: (get_transports),
120         (init_window), (modest_msg_edit_window_finalize),
121         (modest_msg_edit_window_get_msg_data),
122         (modest_msg_edit_window_free_msg_data):
123         * src/maemo/modest-store-widget.c: (imap_pop_configuration),
124         (modest_store_widget_finalize):
125         * src/maemo/modest-transport-widget.c:
126         (modest_transport_widget_finalize), (smtp_configuration):
127         * src/modest-main.c: (send_mail):
128         * src/widgets/modest-combo-box.h:
129         * src/widgets/modest-global-settings-dialog-priv.h:
130         * src/widgets/modest-global-settings-dialog.c:
131         (modest_global_settings_dialog_finalize):
132         * src/widgets/modest-msg-edit-window.h:
133         Whenever using modest_combo_box_new(), keep the ModestPairList alive
134         as long as the combo box, to prevent use of freed memory for the ID.
135
136 2007-05-15  Murray Cumming  <murrayc@murrayc.com>
137
138         * src/modest-tny-account-store.c: (get_server_accounts): Renamed from 
139         get_accounts(), to make this clearer. Do not check for the enabled gconf
140         key, because we do not use this for server accounts (at least, not yet).
141         This allows us to send email again.
142
143 2007-05-15  Murray Cumming  <murrayc@murrayc.com>
144
145         * src/maemo/modest-platform.c:
146         (on_modest_conf_update_interval_changed), (modest_platform_init):
147         Only respond to this particular key change. All these strcmp()s cannot be 
148         efficient.
149
150 2007-05-15  Murray Cumming  <murrayc@murrayc.com>
151
152         * src/maemo/modest-maemo-global-settings-dialog.c:
153         (current_connection): Prevent a crash in scratchbox when 
154         ny_maemo_conic_device_get_current_iap_id() returns NULL.
155         * src/maemo/modest-platform.c:
156         (on_modest_conf_update_interval_changed), (modest_platform_init):
157         Get the update interval from gconf and reset it when the gconf key changes.
158
159 2007-05-15  Murray Cumming  <murrayc@murrayc.com>
160
161         * src/modest-protocol-info.c:
162         * src/modest-protocol-info.h: Adde enum-specific get functions, 
163         instead of using a ModestProtocolType enum parameter.
164         
165         * src/gnome/modest-account-assistant.c:
166         * src/gnome/modest-store-widget.c:
167         * src/gnome/modest-store-widget.h:
168         * src/gnome/modest-transport-widget.c:
169         * src/gnome/modest-transport-widget.h:
170         * src/maemo/easysetup/modest-easysetup-servertype-combo-box.c:
171         * src/maemo/easysetup/modest-easysetup-servertype-combo-box.h:
172         * src/maemo/easysetup/modest-easysetup-wizard.c:
173         * src/maemo/modest-account-settings-dialog.c:
174         * src/maemo/modest-account-settings-dialog.h:
175         * src/maemo/modest-store-widget.c:
176         * src/maemo/modest-store-widget.h:
177         * src/maemo/modest-transport-widget.c:
178         * src/maemo/modest-transport-widget.h:
179         * src/modest-account-mgr-helpers.c:
180         * src/modest-account-mgr-helpers.h:
181         * src/modest-account-mgr.c:
182         * src/modest-account-mgr.h:
183         * src/modest-tny-account.c:
184         * src/modest-tny-folder.c: 
185         * src/widgets/modest-account-view.c:
186         * src/widgets/modest-retrieve-combo-box.c:
187         * src/widgets/modest-retrieve-combo-box.h:
188         * src/widgets/modest-secureauth-combo-box.c:
189         * src/widgets/modest-serversecurity-combo-box.c:
190         * src/widgets/modest-serversecurity-combo-box.h:
191         * tests/check_account-mgr.c: 
192         Use the specific functions, and use the re-renamed enum values for GNOME too.
193
194 2007-05-15  Murray Cumming  <murrayc@murrayc.com>
195
196         * src/modest-pair.h: 
197         * src/modest-pair.c: Added modest_pair_list_find_by_first_as_string(),
198         so we can get the second based on the first.
199
200         * src/maemo/modest-account-settings-dialog.h: 
201         * src/maemo/modest-account-settings-dialog.c:
202         Added get_supported_secure_authentication_methods(), though it is mostly 
203         commented-out for now until the necessary API is committed to tinymail.
204         (modest_account_settings_dialog_set_account_name),
205         (save_configuration): Request the supported authentication methods from the 
206         server, so we can choose a working method.
207         
208         * src/modest-tny-account-store.h:
209         * src/modest-tny-account-store.c:
210         (modest_tny_account_store_get_session): Rename from 
211         tny_account_store_get_session().
212
213 2007-05-14  Murray Cumming  <murrayc@murrayc.com>
214
215         * src/modest-protocol-info.h: Split the ModestProtocol enum 
216         into ModestProtocol, ModestSecureConnection, and ModestSecureAuthentication.
217         There was no need to have these unrelated values in one enum.
218         
219         * src/: many files: Adapted to changed enum. This makes the code a bit
220         clearer, and the compiler could catch some errors.
221
222 2007-05-14  Murray Cumming  <murrayc@murrayc.com>
223
224         * src/modest-tny-account-store.c: (modest_tny_account_store_alert):
225         Show the detailed internal camel error message when an error happens 
226         during the configuration, so that our testers can give us more clues.
227         For instance, in projects.maemo.org bug NB#56910 .
228
229 2007-05-14  Murray Cumming  <murrayc@murrayc.com>
230
231         * src/modest-tny-account.c:
232         (modest_tny_account_new_from_server_account): Adapt to changed tinymail API: 
233         change tny_account_set_mech() to tny_account_set_secure_auth_mech().
234
235 2007-05-14  Murray Cumming  <murrayc@murrayc.com>
236
237         * src/maemo/easysetup/modest-easysetup-wizard.c: (create_account):
238         * src/maemo/modest-account-settings-dialog.c:
239         (modest_account_settings_dialog_set_account_name),
240         (save_configuration): For the incoming secure authentication checkbox, 
241         use PASSWORD for unchecked, and CRAM-MD5 for checked, after I reread 
242         the UI specification. PLAIN does not seem to be supported for most IMAP 
243         servers anyway, and I am not sure what it would mean.
244         However, we probably need to discover which of the secure-authentication 
245         mechanisms are supported by the server, instead of hard-coding CRAM-MD5.
246         * src/modest-account-mgr-helpers.c:
247         (modest_account_mgr_get_server_account_data):
248
249         * src/modest-tny-account.c:
250         (modest_tny_account_new_from_server_account):
251         Use tny_account_set_mech() to set secure-authentication methods, 
252         with some special-casing for IMAP, based on my observations of how 
253         evolution behaves.
254         
255         * src/modest-account-mgr-helpers.h:
256         * src/modest-account-mgr.c:
257         * src/modest-defs.h: Comment that the URI is only used for local folders.
258
259 2007-05-11  Murray Cumming  <murrayc@murrayc.com>
260
261         * src/maemo/modest-main-window.c: (on_account_update): Make the gchar* 
262         parameter const, just to be neat.
263         * src/modest-text-utils.c: (modest_text_utils_inline):
264         End g_strconcat() with NULL, as its documentation says. This is almost 
265         certainly the cause of my crash at startup on the device. Interestingly, 
266         valgrind doesn't tell us about these errors.
267
268 2007-05-11  Murray Cumming  <murrayc@murrayc.com>
269
270         * scripts/build-packages: Added more precise comments about how to use 
271         this script, though I still get this error:
272         dpkg-genchanges: error: cannot open .dsc file ../tinymail_1.0-svn1938.dsc: No such file or directory
273         error building tinymail
274         
275 2007-05-11  Murray Cumming  <murrayc@murrayc.com>
276
277         * src/maemo/modest-main-window.c: (on_account_update):
278         Very slight cleanup, hoping to make it simpler to discover what causes 
279         a crash here sometimes.
280         
281         * src/modest-tny-account.c:
282         (modest_tny_account_new_from_server_account): Set the port. Added 
283         comments about the options and a TODO comment because I need to find out 
284         how to specify the secure authentication method.
285
286 2007-05-11  Marcus Bauer  <marcusb@openismus.com>
287
288         * libmodest-dbus-client/libmodest-dbus-client-1.0.pc.in:
289         changed CFlags paths form modest to libmodest
290
291 2007-05-10  Murray Cumming  <murrayc@murrayc.com>
292
293         * src/modest-account-mgr-helpers.c:
294         (modest_account_mgr_get_server_account_data),
295         (modest_account_mgr_free_server_account_data):
296         * src/modest-account-mgr-helpers.h:
297         * src/modest-account-mgr.c:
298         (modest_account_mgr_add_server_account):
299         * src/modest-defs.h:
300         * src/modest-tny-account.c:
301         (modest_tny_account_new_from_server_account):
302         Determine the options for tny_camel_account_add_option() here, 
303         based on the settings, rather than storing them directly in gconf.
304
305 2007-05-10  Murray Cumming  <murrayc@murrayc.com>
306
307         * src/modest-tny-account-store.c: (modest_tny_account_store_alert):
308         Show a more friendly error dialog now that we expect (from the tinymail 
309         documentation) to get the UNKNOWN_ALERT error. Add explanatory comments.
310
311 2007-05-10  Murray Cumming  <murrayc@murrayc.com>
312
313         * src/maemo/modest-main-window.c: (on_account_update): Check that 
314         account_name is not NULL, to prevent a crash at startup that I am 
315         seeing on the N800. I do wonder why it is NULL.
316         
317         * src/maemo/easysetup/modest-easysetup-wizard.c:
318         (create_page_user_details):
319         * src/maemo/modest-account-settings-dialog.c:
320         (create_page_user_details), (create_page_outgoing):
321         * src/maemo/modest-connection-specific-smtp-edit-window.c:
322         (modest_connection_specific_smtp_edit_window_init):
323         * src/modest-ui-actions.c:
324         (modest_ui_actions_on_password_requested):
325         Use HILDON_GTK_INPUT_MODE_INVISIBLE with password entries, which 
326         might do something useful with the on-screen keyboard.
327
328 2007-05-10  Murray Cumming  <murrayc@murrayc.com>
329
330         * src/maemo/modest-main-window.c: (on_account_update):
331         Avoid adding a menu item to priv->accounts_popup if accounts_popup is 
332         NULL, to avoid lots of warnings. However, it probably should not be NULL.
333
334 2007-05-09  Murray Cumming  <murrayc@murrayc.com>
335
336         * src/modest-tny-account-store.c: (on_account_changed): 
337         Correct the signature of this signal handler.
338
339 2007-05-09  Murray Cumming  <murrayc@murrayc.com>
340
341         * src/modest-tny-account-store.c: (modest_tny_account_store_alert):
342         Show a HildonNote instead of a GtkDialog for Maemo.
343
344 2007-05-09  Murray Cumming  <murrayc@murrayc.com>
345
346         * src/widgets/modest-account-view.h:
347         * src/widgets/modest-account-view.c: (on_account_changed),
348         (on_account_removed). Added a boolean flag, set/unset by 
349         modest_account_view_block_conf_updates(), 
350         modest_account_view_unblock_conf_updates() to prevent unnecessary 
351         updates, but this is not very useful because the gconf notifications are 
352         so delays (maybe only on Maemo Bora).
353         So auto-updating is turned off, and these functions do an explicit 
354         update when necessary.
355         However, something else is still doing too much work when adding/removing 
356         accounts, probably in another part of the application.
357         
358         * src/maemo/modest-account-view-window.c:
359         (on_delete_button_clicked), (on_edit_button_clicked),
360         (on_new_button_clicked): Use the new functions.
361
362 2007-05-09  Murray Cumming  <murrayc@murrayc.com>
363
364         * src/modest-account-mgr-helpers.c:
365         (modest_account_mgr_set_first_account_as_default):
366         Sort the list of names alphabetically-by-title, so we choose the first one 
367         based on that.
368         * src/widgets/modest-account-view.c: (init_view): Sort the TreeModel 
369         alphabetically by the title.
370         
371         This fixes projects.maemo.org bug NB#56418 .
372         
373         * src/modest-account-mgr-priv.c:
374         (_modest_account_mgr_account_from_key):
375         * src/modest-account-mgr.c: (on_key_change): Initialize variables to 
376         avoid a valgrind error, and possible random behaviour.
377
378 2007-05-09  Murray Cumming  <murrayc@murrayc.com>
379
380         * src/modest-tny-account-store.c: (modest_tny_account_store_alert):
381         Handle the new TNY_ACCOUNT_STORE_ERROR error domain. I will update the 
382         tinymail documentation to say that this can be expected.
383         Handle the new TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT error code. It is not 
384         pretty, and should not happen, but I would prefer to know when it does.
385
386 2007-05-09  Murray Cumming  <murrayc@murrayc.com>
387
388         * configure.ac: When using the older hildon version, probably on Bora, 
389         require gnome-vfs-module-2.0, which is the old provider of gnome-vfs-mime.h,
390         to fix the build.
391         * src/widgets/modest-attachment-view.c:
392         (modest_attachment_view_set_part_default): Initialize variables, to fix the 
393         build.
394
395 2007-05-09  Marcus Bauer  <marcusb@openismus.com>
396
397         * src/dbus_api/modest-dbus-callbacks.c: (on_idle_open_message):
398         Implemented the prototype. Can be tested with
399         tests/dbus_api/test_open_message: 
400
401 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
402
403         * src/modest-tny-account-store.c:
404         (modest_tny_account_store_instance_init), (get_password):
405         * src/modest-ui-actions.c:
406         (modest_ui_actions_on_password_requested):
407         Do not store the password in gconf, because this function is called 
408         for non-remembered passwords. Actually use the cached (in the hash map) 
409         password instead of releasing it.
410         The password will now not be remembered if it is asked via the protected 
411         password dialog, as per the UI spec.
412
413 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
414
415         * src/modest-defs.h:
416         * src/modest-account-mgr-helpers.h:
417         * src/modest-account-mgr-helpers.c:
418         Added modest_server_account_get_username_has_succeeded(),
419         modest_server_account_set_username_has_succeeded().
420         (modest_server_account_set_username),
421         Reset the has-succeeded flag if the username changes.
422         
423         * src/maemo/modest-account-settings-dialog.c: (save_configuration):
424         * src/maemo/modest-connection-specific-smtp-window.c:
425         (modest_connection_specific_smtp_window_save_server_accounts):
426         Use modest_server_account_set_username() instead of using 
427         modest_conf_set_string() directly, so that the has-succeeded flag is always 
428         reset.
429         
430         * src/modest-ui-actions.c:
431         (modest_ui_actions_on_password_requested): Dim the username entry if 
432         the username has ever worked, as per the UI spec.
433
434 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
435
436         * src/modest-tny-account-store.c: (get_password):
437         * src/modest-ui-actions.c:
438         (modest_ui_actions_on_password_requested):
439         Allow the username to be changed too, though there is more work to 
440         be done on exactly how this behaves.
441
442 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
443
444         * src/modest-account-mgr-helpers.h:
445         * src/modest-account-mgr-helpers.c:
446         Added modest_account_mgr_get_display_name(),
447         modest_server_account_get_username(),
448         modest_server_account_set_username(),
449         modest_server_account_set_password(),
450         modest_server_account_get_hostname() functions so we do not need to 
451         use the conf API directly.
452         
453         * src/maemo/modest-main-window.c: (connect_signals):
454         Actually connect ot the ModestAccountStore::request-password signal, 
455         so that we show the dialog when the password is requested by Tinymail, 
456         for isntance if it is empty.
457
458         * src/modest-marshal.list:
459         * src/modest-tny-account-store.c:
460         (modest_tny_account_store_class_init), (get_password),
461         (modest_tny_account_store_alert):
462         * src/modest-tny-account-store.h:
463         * src/modest-ui-actions.h:
464         * src/modest-ui-actions.c:
465         (modest_ui_actions_on_password_requested):
466         Change the signal parameters, so it is obvious that we are providing 
467         the non human-readable server name, and receiving both the username 
468         and password, though changing of the username is not yet implemented.
469         Change the dialog UI to match the Maemo UI specifications, with #idfefing 
470         for the GNOME version.
471         
472         This should fix the projects.maemo.org bug NB#56209, though it does not 
473         work on Bora, because the gconf_client_get() for the password fails 
474         immediately after we save it with gconf_client_set().
475
476 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
477
478         * configure.ac:
479         * src/Makefile.am: Reverted the use of AM_CONDITIONAL(), because it 
480         caused an undefined symbol error:
481         modest-platform.c:84: undefined reference to `modest_osso_cb_hw_state_handler
482
483 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
484
485         * src/modest-tny-account-store.c:
486         (modest_tny_account_store_alert): Adapt to the changed tinymail API, 
487         using a GError instead of a string message, so we can translate it in 
488         Modest.
489
490 2007-05-08  Murray Cumming  <murrayc@murrayc.com>
491
492         * src/maemo/modest-address-book.c:
493         (modest_address_book_check_names):
494         * src/maemo/modest-msg-view-window.c:
495         (modest_msg_view_window_clipboard_owner_change):
496         * src/modest-init.c: (modest_init_init_ui):
497         * src/modest-mail-operation.c: (modest_mail_operation_send_mail),
498         (update_folders_cb), (modest_mail_operation_update_account):
499         * src/modest-ui-actions.c: (modest_ui_actions_on_msg_link_hover),
500         (modest_ui_actions_on_msg_attachment_clicked),
501         (modest_ui_actions_on_msg_recpt_activated):
502         * src/widgets/modest-header-view.c: (drag_data_get_cb):
503         * src/widgets/modest-msg-view.c: (modest_msg_view_search),
504         (modest_msg_view_search_next):
505         * src/widgets/modest-recpt-editor.c:
506         (modest_recpt_editor_on_button_release_event),
507         (modest_recpt_editor_on_key_press_event): Commented-out unnecessary calls to 
508         g_message(). At this point we should only be seeing interesting errors on 
509         stdout. Debugging messages could be #ifdefed-out if they are still useful.
510
511 2007-05-07  Murray Cumming  <murrayc@murrayc.com>
512         
513         (modest_wizard_dialog_force_title_update):
514         * src/maemo/easysetup/modest-wizard-dialog.h:
515         * src/maemo/easysetup/modest-wizard-dialog.c: (set_property):
516         For GTK+ 2.10, when present, connect to the GtkNotebook signals so we 
517         can update the title when appropriate. Otherwise the title is wrong if the 
518         pages are added after adding the notebook to the dialog.
519         This must be a problem in HildonWizardDialog too.
520         Added modest_wizard_dialog_force_title_update() for GTK+ 2.6.
521         
522         * src/maemo/easysetup/modest-easysetup-wizard.c:
523         (create_subsequent_customsetup_pages),
524         (create_subsequent_easysetup_pages): 
525         Call modest_wizard_dialog_force_title_update() so that the title is 
526         correct even with GTK+ < 2.10.
527         This fixes projects.maemo.org bug NB#56145 .
528         
529 2007-05-07  Murray Cumming  <murrayc@murrayc.com>
530
531         * src/maemo/modest-platform.c:
532         (modest_platform_set_update_interval): Use the ALARM_EVENT_NO_DIALOG 
533         flag (awful lack of namespacing in this API) to prevent a useless %s dialog 
534         from being shown.
535
536 2007-05-07  Murray Cumming  <murrayc@murrayc.com>
537
538         * src/widgets/modest-window.h:  
539         * src/widgets/modest-window.c: Added a save_state_func vfunc, 
540         and modest_window_save_state(), which invokes it.
541
542         * src/widgets/modest-window-mgr.h:
543         * src/widgets/modest-window-mgr.c:
544         Added modest_window_mgr_save_state_for_all_windows(), which calls 
545         the save_state vfunc on all registered windows, if implemented.
546         
547         * src/gnome/modest-msg-edit-window.c:
548         * src/gnome/modest-msg-view-window.c:
549         * src/maemo/modest-msg-edit-window.c:
550         * src/maemo/modest-msg-view-window.c:
551         * src/maemo/modest-main-window.c: 
552         Specify the existing save_settings functions as implementations of 
553         ModestWindow::save_state_func().
554
555         * src/maemo/modest-osso-state-saving.c: modest_osso_save_state():
556         Call modest_window_mgr_save_state_for_all_windows(). This happens before 
557         enabling hibernation, for instance.
558         
559         We may need to do the same thing for restoring settings.
560
561
562 2007-05-07  Murray Cumming  <murrayc@murrayc.com>
563
564         * src/widgets/modest-window-mgr.c: 
565         * src/widgets/modest-window-mgr.h:
566         Added modest_window_mgr_prevent_hibernation_while_window_is_shown() and
567         modest_window_mgr_get_hibernation_is_prevented().
568         
569         * src/maemo/modest-main-window.c:
570         (on_hildon_program_is_topmost_notify): Prevent hibernation 
571         (possible when the application goes to the background in the WM), 
572         if modest_window_mgr_get_hibernation_is_prevented() is TRUE.
573         
574         * src/maemo/easysetup/modest-easysetup-wizard.c:
575         (modest_easysetup_wizard_dialog_init):
576         * src/maemo/modest-account-settings-dialog.c:
577         (modest_account_settings_dialog_init):
578         * src/maemo/modest-connection-specific-smtp-edit-window.c:
579         (modest_connection_specific_smtp_edit_window_init):
580         * src/maemo/modest-connection-specific-smtp-window.c:
581         (modest_connection_specific_smtp_window_init):
582         * src/maemo/modest-signature-editor-dialog.c:
583         (modest_signature_editor_dialog_init):
584         Call modest_window_mgr_prevent_hibernation_while_window_is_shown() to 
585         prevent hibernation while any of these account settings dialogs are open.
586
587 2007-05-04  Murray Cumming  <murrayc@murrayc.com>
588
589         * src/maemo/Makefile.am:
590         * src/maemo/modest-osso-state-saving.c: 
591         * src/maemo/modest-osso-state-saving.h: Added 
592         modest_osso_load_state() and modest_osso_save_state() though they do 
593         nothing now. They should iterate through all the open windows and load/save 
594         their state.
595         * src/modest-ui-actions.c: (modest_ui_actions_on_quit): For Mameo, 
596         save state when closing.
597         
598         * src/maemo/modest-main-window.c:
599         (on_hildon_program_is_topmost_notify), (modest_main_window_new):
600         Add a notification handler for the HildonProgram::is-topmost property, 
601         so we can allow hibernation when the application goes into the background.
602         But we still need to detect when the accounts setup windows are open so 
603         we can stop hibernation when they are open.
604         To do this, I also added the main window the HildonProgram. This might have 
605         other side-effects/benefits, and should maybe be done for other windows.
606
607         * src/maemo/modest-osso-autosave-callbacks.h:
608         * src/maemo/modest-osso-autosave-callbacks.c:
609         (modest_on_osso_application_autosave): Add a libosso auto-save callback, 
610         though it does not do anything yet, and we might never need this to do 
611         anything. For instance, we already save drafts.
612         
613         * src/maemo/modest-platform.c: (modest_platform_init):
614         Specify the libosso auto-save callback.
615
616 2007-05-03  Murray Cumming  <murrayc@murrayc.com>
617
618         * src/maemo/modest-platform.c:
619         (modest_platform_set_update_interval):
620         * src/modest-defs.h: Store the alarmd cookie ID in gconf, because it 
621         aparently stays valid between application instances, so we can use this 
622         to remove and reset it later. According to a maemo-developers email from 
623         David Weinehall.
624
625 2007-05-03  Murray Cumming  <murrayc@murrayc.com>
626
627         * configure.ac: Depend on libalarm for Maemo.
628
629         * src/dbus_api/modest-dbus-api.h:
630         * src/dbus_api/modest-dbus-callbacks.c: (on_idle_send_receive),
631         (on_send_receive), (modest_dbus_req_handler):
632         Handle a SEND_RECEIVE D-Bus method.
633         
634         * libmodest-dbus-client/libmodest-dbus-client.c:
635         (libmodest_dbus_client_send_and_receive):
636         * libmodest-dbus-client/libmodest-dbus-client.h:
637         Add C convenience functions for calling the new D-Bus method.
638         
639         * src/modest-platform.h:
640         * src/gnome/modest-platform.c:
641         * src/maemo/modest-platform.c: 
642         Added modest_platform_set_update_interval(), which uses the 
643         alarmd API on Maemo.
644         (modest_platform_init),
645         Call modest_platform_set_update_interval(), using a hard-coded 
646         interval for now (until the global settings dialog is implemented), 
647         though I am not sure that this makes sense yet.
648
649 2007-05-02  Murray Cumming  <murrayc@murrayc.com>
650
651         * src/dbus_api/modest-dbus-callbacks.c:
652         (modest_osso_cb_hw_state_handler):
653         * src/dbus_api/modest-dbus-callbacks.h:
654         * src/maemo/modest-platform.c: (modest_platform_init):
655         Registered (empty) callbacks for the osso hardware state D-Bus signals, 
656         in case this has some effect on the ability for Maemo to ping the 
657         application.
658
659 2007-05-02  Murray Cumming  <murrayc@murrayc.com>
660
661         * src/modest-text-utils.c: (modest_text_utils_validate_recipient):
662         Comment out an if() that checks a gchar for < 0, causing a build-breaking 
663         warning. It is probably a logic error, but I need to fix the build.
664
665 2007-05-02  Murray Cumming  <murrayc@murrayc.com>
666
667         * src/modest-account-mgr.h:
668         * src/modest-account-mgr.c: 
669         (modest_account_mgr_account_names): Add a gboolean enabled_only 
670         parameter, so we can get lists of onlt the enabled accounts.
671         
672         (modest_account_mgr_add_account),,
673         (modest_account_mgr_account_with_display_name_exists):
674         * src/maemo/modest-msg-edit-window.c: (get_transports):
675         * src/modest-account-mgr-helpers.c:
676         (modest_account_mgr_set_first_account_as_default):
677         * src/modest-init.c: (init_default_account_maybe):
678         * src/modest-tny-account-store.c: (get_accounts):
679         * src/modest-ui-actions.c: (modest_ui_actions_on_accounts),
680         (do_send_receive_auto), (modest_ui_actions_on_send_receive):
681         * tests/check_account-mgr.c: (START_TEST):
682         Provide the extra parameter, as appropriate.
683         
684         * src/widgets/modest-account-view.c: (update_account_view):
685         Do not show disabled accounts (meaning that there is no way to 
686         enable/disable accounts in the UI (the feature is not in our UI 
687         specification), so we can use this internally only to mark unfinished 
688         or temporary account data.
689         
690         * src/maemo/easysetup/modest-easysetup-wizard.c:
691         (create_account): Add boolean enable parameter, so we can specify FALSE 
692         to create the temporary account.
693         (on_button_edit_advanced_settings): Create the temporary account as disabled.
694         (on_before_next): When finishing, when there is a temporary account, just 
695         set it as enabled.
696         Also, use a timeout to delay the showing of the dialog until gconf is likely 
697         to return correct information, due to a maemo gconf bug that is fixed in 
698         osso 1.1, but not yet in Bora.
699         However, the dialog stays on screen after it is destroyed.
700         
701         * src/maemo/modest-account-settings-dialog.c: on_response(): Do not check 
702         for invalid data when cancelling. Use a hildon note instead of a dialog 
703         to complain about invalid data. Do not show the account-saved note if the 
704         account is disabled (a temporary account that will not really be saved for use 
705         until later.)
706
707 2007-04-30  Murray Cumming  <murrayc@murrayc.com>
708
709         * src/modest-account-mgr-helpers.h:
710         * src/modest-account-mgr-helpers.c:
711         Added modest_account_mgr_unset_default_account(),
712         Added modest_account_mgr_set_first_account_as_default().
713
714         * src/modest-account-mgr.c: (modest_account_mgr_remove_account): 
715         If it was the default account, unset the default account name.
716         
717         * src/maemo/modest-account-view-window.c:
718         (on_delete_button_clicked): If it was the default account, 
719         set the first remaining account as the default instead.
720         
721         * src/maemo/modest-main-window.c: (on_account_update): Do not try to use 
722         a NULL account or a NULL default account, to prevent a crash. This should 
723         not happen now anyway. Bug #55343 in projects.maemo.org/bugzilla.
724         
725
726 2007-04-30  Murray Cumming  <murrayc@murrayc.com>
727
728         * src/widgets/modest-recpt-editor.c:
729         (modest_recpt_editor_on_key_press_event): Put an #ifdef around the 
730         use of gtk_text_buffer_get_has_selection() (from GTK+ 2.10), and add a 
731         TODO comment for this. This fixes the build.
732         
733         * src/modest-ui-actions.c: Add do_send_receive(), though it might not 
734         be the best place for it. This will in future update all auto-update accounts, 
735         rather than just the current/default account, when that gconf key exists.
736         (modest_ui_actions_on_send_receive): Offer the settings dialog (or wizard) 
737         if there are no accounts, before calling do_send_receive().
738         * src/modest-ui-actions.h: Specify the callback for the Send/Recieve menu item.
739         
740         * src/gnome/modest-main-window.c: (on_online_toggle_toggled):
741         * src/maemo/modest-main-window-ui.h:
742         * src/maemo/modest-main-window.c: (on_connection_changed),
743         (sync_accounts_cb): Use do_send_receive() instead of calling the signal handler 
744         directly, becaue the signal handler does more.
745
746 2007-04-30  Murray Cumming  <murrayc@murrayc.com>
747
748         * src/modest-account-mgr-helpers.c:
749         (modest_account_mgr_get_account_data): Add a more helpful error message, and comment, 
750         for the case that the account does not exist.
751         
752         * src/widgets/modest-folder-view.c: (filter_row): Use the tinymail account ID 
753         (equivalent to the modest account name) rather than the tinymail account name 
754         (equivalent to the modest account title - human readable) to get the account data.
755         Check for null account data to prevent the crash, and add a TODO comment saying that 
756         this needs fixing because it is using the server account name instead of the account name.
757
758 2007-04-29  Murray Cumming  <murrayc@murrayc.com>
759
760         * src/maemo/easysetup/modest-easysetup-wizard.c: (show_error):
761         * src/maemo/modest-account-settings-dialog.c: (show_error),
762         (show_ok):
763         Use hildon_note_new_information() for informative and error messages, 
764         which seems to be expected for Maemo applications (no documentation that I know of 
765         says this). I am surprised that there is no distinction between info and error 
766         dialogs.
767
768 2007-04-29  Murray Cumming  <murrayc@murrayc.com>
769
770         * src/maemo/modest-maemo-ui-constants.h: Add a MODEST_MARGIN_NONE constant, so 
771         it is easy to find where this is used.
772         
773         * src/maemo/easysetup/modest-easysetup-wizard.c:
774         (create_page_welcome), (create_page_account_details),
775         (create_page_user_details), (create_page_complete_easysetup),
776         (create_page_custom_incoming), (create_page_custom_outgoing),
777         (create_page_complete_custom):
778         * src/maemo/modest-account-settings-dialog.c:
779         (create_page_account_details), (create_page_user_details),
780         (create_page_incoming), (create_page_outgoing):
781         * src/maemo/modest-account-view-window.c: (window_vbox_new):
782         * src/maemo/modest-connection-specific-smtp-edit-window.c:
783         (modest_connection_specific_smtp_edit_window_init):
784         * src/maemo/modest-connection-specific-smtp-window.c:
785         (modest_connection_specific_smtp_window_init):
786         * src/maemo/modest-signature-editor-dialog.c:
787         (modest_signature_editor_dialog_init): Use the correct padding/spacing/borders 
788         and scrolling policy as per the Email Application Layout Guide, if I have 
789         understood it.
790
791 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
792
793         * src/modest-tny-account-store.c: (modest_tny_account_store_init): 
794         Remove the add_transport_account_func and add_store_account_func vfunc implementations, 
795         which were empty, because these vfuncs have been removed from TnyAccountStore.
796         This fixes the build.
797
798 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
799
800         * src/maemo/modest-main-window.c:
801         (modest_main_window_show_toolbar): Check that a toolbar item is not NULL before 
802         showing/hiding it. Added TODO because it probably should not be NULL.
803         * src/modest-init.c: (modest_init_init_ui): Use a g_message() instead of a g_warning() 
804         because unnecessary g_warnings() make degugging difficult.
805
806 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
807
808         * src/maemo/modest-msg-edit-window.c:
809         (modest_msg_edit_window_select_color),
810         (modest_msg_edit_window_select_background_color): 2 const corrections and 
811         moving 2 #endifs before closing brackets, to fix the build.
812
813 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
814
815         * src/maemo/easysetup/modest-easysetup-wizard.h:
816         * src/maemo/easysetup/modest-easysetup-wizard.c:
817         (modest_easysetup_wizard_dialog_finalize),
818         (on_button_edit_advanced_settings), (create_page_complete_custom),
819         (on_response), (create_account):
820         Implement the Advanced Settings edit button, by saving the account information, 
821         for the Advanded Settings dialog to use directly from gconf, and removing it 
822         if Finish is never clicked. There is still some UI strangeness, so this is not finished.
823         Bug #5533 in the projects.maemo.org bugzilla.
824
825 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
826
827         * src/maemo/modest-msg-view-window.c:
828         (modest_msg_view_window_show_toolbar): Prevent hide/show of a NULL toolbar widget, 
829         when opening a message window.
830
831 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
832
833         * src/maemo/easysetup/modest-easysetup-wizard.c:
834         (create_page_custom_outgoing): Correct the position of the horizontal separator to 
835         match the UI spec.
836         
837         * src/maemo/modest-main-window.c: (set_toolbar_mode): Check that widgets are not NULL 
838         before showing/hiding them, to avoid a crash when clicking on folders when there are no 
839         gconf settings. I probably added more checks than necessary, but that is safer.
840         
841         * src/modest-ui-actions.c: (modest_ui_actions_on_move_to): Initialize the mail_op 
842         variable to fix the build, but this seems to be used when it is still NULL.
843
844 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
845
846         * src/modest-platform.h:
847         * src/gnome/modest-platform.c: (modest_platform_connect_and_wait):
848         * src/maemo/modest-platform.c: (modest_platform_connect_and_wait):
849         * src/modest-main.c: Implement this function so we can avoid using 
850         maemo-specific API from cross-platform code.
851         (main):
852         * src/modest-tny-account-store.c:
853         (get_smtp_specific_transport_account_for_open_connection):
854         * src/modest-ui-actions.c: (check_for_connection),
855         (modest_ui_actions_on_item_not_found):
856         Use modest_platform_connect_and_wait() and put #idefs around other 
857         maemo-specific code, because only maemo currently has a way to 
858         identify connection names.
859
860 2007-04-27  Murray Cumming  <murrayc@murrayc.com>
861
862         * src/modest-tny-account-store.h:
863         * src/modest-tny-account-store.c:
864         Added modest_tny_account_store_get_transport_account_for_open_connection(), which respects 
865         the connection-specific SMTP server settings in the configuration.
866         
867         * src/dbus_api/modest-dbus-callbacks.c: (on_idle_send_mail),
868         (on_idle_mail_to):
869         * src/maemo/modest-main-window.c: (on_connection_changed),
870         (connect_signals):
871         * src/modest-main.c: (main), (start_ui), (send_mail):
872         Use tny_maemo_conic_device_connect() instead of tny_maemo_conic_force_online(), when 
873         that is what is intended.
874         
875         * src/modest-ui-actions.c: (action_send), (action_receive),
876         (modest_ui_actions_on_item_not_found), (modest_ui_actions_on_send):
877         Use modest_tny_account_store_get_transport_account_for_open_connection() instead of 
878         modest_tny_account_store_get_tny_account_by_account() so that the connection-specific 
879         SMTP server is used when it is specified.
880         
881         (modest_ui_actions_on_send_receive): 
882         Check that a connection is open before proceeding.
883         Receive and then send, instead of vice-versa, as per the specification.
884
885 2007-04-26  Murray Cumming  <murrayc@murrayc.com>
886
887         * src/modest-mail-operation.c:
888         (modest_mail_operation_remove_folder): Intialize the parent variable, to fix the build, 
889         though I guess it should be something other than NULL.
890
891 2007-04-26  Murray Cumming  <murrayc@murrayc.com>
892
893         * src/maemo/easysetup/modest-easysetup-wizard.c:
894         (create_page_custom_incoming): Add the checkbox to the caption instead of adding the 
895         combo twice, to avoid an g_warning and to make it visible again.
896         * src/maemo/modest-main-window.c: (on_account_update): Check whether the popup_menu is 
897         attached before detaching it, to avoid a g_warning, and add comment about the implicit 
898         (already intended) dereference when detaching, because we then recreate the menu.
899         But I am not sure why the warning was happening, and it is possible that this is a memory 
900         leak.
901
902 2007-04-25  Murray Cumming  <murrayc@murrayc.com>
903
904         * src/dbus_api/modest-dbus-callbacks.c: Added uri_unescape(),
905         and uri_parse_mailto() utility functions.
906         (on_idle_mail_to): Parse, unescape, and use the subject, cc, bcc, and body items in 
907         the mailto URI.
908         * tests/dbus_api/test_mail_to.c: (main): Add escaped spaces in the URI to test this.
909
910 2007-04-24  Murray Cumming  <murrayc@murrayc.com>
911
912         * src/dbus_api/modest-dbus-api.h:
913         * src/dbus_api/modest-dbus-callbacks.c:
914         Use an idle callback to execute the modest code in the application's own thread.
915         Remove the helloworld example method.
916         Handle mail-to and open-message D-Bus methods, though the mail-to format needs to be 
917         parsed, and the open-message method is not implemented because this is not yet implemented in 
918         modest itself.
919         * libmodest-dbus-client/libmodest-dbus-client.c:
920         (libmodest_dbus_client_send_mail), (libmodest_dbus_client_mail_to),
921         (libmodest_dbus_client_open_message):
922         * libmodest-dbus-client/libmodest-dbus-client.h: New functions for the new methods.
923         
924         * src/modest-tny-msg.c: (modest_tny_msg_new), (add_body_part): Handle NULLs for subject and 
925         body without crashing.
926         
927         * tests/dbus_api/Makefile.am:
928         * tests/dbus_api/test_mail_to.c:
929         * tests/dbus_api/test_open_message.c: New tests for the new methods.
930
931 2007-04-24  Murray Cumming  <murrayc@murrayc.com>
932
933         * libmodest-dbus-client/libmodest-dbus-client-1.0.pc.in:
934         Added file to fix the build. Sorry.
935         
936         * src/dbus_api/Makefile.am:
937         * src/dbus_api/modest-dbus-api.h:
938         * src/dbus_api/modest-dbus-callbacks.h:
939         * src/dbus_api/modest-dbus-callbacks.c: (on_send_mail),
940         (modest_dbus_req_handler):
941         Put constants in a separate header so it can be reused by the 
942         client library, without duplication
943         
944         * libmodest-dbus-client/Makefile.am:
945         * libmodest-dbus-client/libmodest-dbus-client.c:
946         (libmodest_dbus_client_call_helloworld),
947         (libmodfest_dbus_client_send_mail),
948         (libmodfest_dbus_client_mailto),
949         (libmodfest_dbus_client_open_message):
950         * libmodest-dbus-client/libmodest-dbus-client.h:
951         (Partly) Implement a send_mail D-Bus method.
952         
953         * tests/dbus_api/Makefile.am:
954         * tests/dbus_api/test_send_mail.c: (main): Added a test for 
955         the send_email D-Bus method.
956
957 2007-04-24  Murray Cumming  <murrayc@murrayc.com>
958
959         * Makefile.am:
960         * configure.ac:
961         * libmodest-dbus-client/Makefile.am:
962         * libmodest-dbus-client/libmodest-dbus-client.c:
963         * libmodest-dbus-client/libmodest-dbus-client.h:
964         * tests/dbus_api/Makefile.am:
965         * tests/dbus_api/test_hello.c: (main): Added directory structure for a C convenience library 
966         for using the modest D-Bus API, and used that from the test. It is still just a helloworld.
967
968 2007-04-24  Murray Cumming  <murrayc@murrayc.com>
969
970         * src/maemo/easysetup/modest-easysetup-wizard.c:
971         (create_page_account_details):
972         * src/maemo/modest-account-settings-dialog.c:
973         (create_page_account_details): Explicitly set auto-capitalization mode for the title 
974         widgets, because this might not be the default in future versions of the Maemo GTK+. 
975         However, I can not not get capitalization to work even in a simple test case.
976
977 2007-04-24  Murray Cumming  <murrayc@murrayc.com>
978
979         * src/maemo/easysetup/modest-easysetup-wizard.c:
980         (create_page_custom_incoming), (create_page_custom_outgoing):
981         * src/maemo/modest-account-settings-dialog.c:
982         (create_page_account_details), (create_page_incoming),
983         (create_page_outgoing): Use a separate label in a caption for GtkCheckButtons, 
984         instead of using gtk_check_button_with_label(), so they are aligned like the other 
985         widgets, as per the UI spec.
986
987 2007-04-24  Murray Cumming  <murrayc@murrayc.com>
988
989         * src/maemo/easysetup/modest-easysetup-wizard.c:
990         * src/maemo/modest-connection-specific-smtp-edit-window.c:
991         * src/widgets/modest-validating-entry.c:
992         * src/widgets/modest-validating-entry.h: Rename the validating widget so it has a 
993         Modest prefix instead of an EasySetup prefix.
994
995 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
996
997         * src/widgets/modest-validating-entry.h:
998         * src/widgets/modest-validating-entry.c: (on_insert_text),
999         Added easysetup_validating_entry_set_max_func(), used to set a callback 
1000         to call when the max number of characters is reached. GtkEntry has a max-length 
1001         already but is silent about it.
1002
1003         * src/maemo/easysetup/modest-easysetup-wizard.c: (on_entry_max),
1004         (create_page_account_details), (create_page_user_details),
1005         (create_account):
1006         * src/maemo/modest-account-settings-dialog.c: (on_entry_max),
1007         (create_page_account_details), (create_page_user_details),
1008         (create_page_outgoing):
1009         * src/modest-ui-actions.c: (modest_ui_actions_on_details): 
1010         Use easysetup_validating_entry_set_max_func() to show the warning dialog, as per 
1011         the UI spec, when the user tries to enter more than the max number of characters.
1012
1013 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
1014
1015         * src/maemo/easysetup/modest-easysetup-wizard.c:
1016         (create_page_user_details), (create_page_custom_incoming),
1017         (create_page_custom_outgoing):
1018         * src/maemo/modest-account-settings-dialog.c:
1019         (create_page_user_details), (create_page_incoming),
1020         (create_page_outgoing):
1021         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1022         (modest_connection_specific_smtp_edit_window_init):
1023         Use hildon_gtk_entry_set_input_mode() to turn off auto-capitalization where it is 
1024         not appropriate. Bad Maemo-specific defaults!.
1025
1026 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
1027
1028         * src/maemo/modest-signature-editor-dialog.c: (enable_widgets),
1029         (on_toggle_button_changed), (modest_signature_editor_dialog_init),
1030         (modest_signature_editor_dialog_set_settings): 
1031         Disable the label and textview when the checkbox is disabled, and use the 
1032         specified (UI spec) default signature text.
1033
1034 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
1035
1036         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1037         (modest_connection_specific_smtp_edit_window_init): Use spacing constants.
1038         
1039         * src/modest-defs.h:
1040         * src/modest-account-mgr-helpers.h:
1041         * src/modest-account-mgr-helpers.c:
1042         Added modest_account_mgr_get/set_signature(), using new gconf keys.
1043         
1044         * src/maemo/Makefile.am:
1045         * src/maemo/modest-signature-editor-dialog.c:
1046         * src/maemo/modest-signature-editor-dialog.h: New dialog for editing signatures, 
1047         as per the UI spec.
1048         
1049         * src/maemo/modest-account-settings-dialog.h:
1050         * src/maemo/modest-account-settings-dialog.c:
1051         (modest_account_settings_dialog_finalize), (on_button_signature),
1052         (save_configuration): Use the new dialog when the Edit button is pressed, and 
1053         save the changes if necessary, as per the UI spec.
1054
1055 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
1056
1057         * src/maemo/Makefile.am:
1058         * src/maemo/modest-maemo-ui-constants.h: New header with some defines for widget spacing, 
1059         based on maemo-develoers email from Dirk.
1060         
1061         * src/maemo/easysetup/modest-easysetup-wizard.c:
1062         (create_page_welcome), (create_page_account_details),
1063         (create_page_user_details), (create_page_complete_easysetup),
1064         (create_page_custom_incoming), (create_page_custom_outgoing),
1065         (create_page_complete_custom),
1066         (modest_easysetup_wizard_dialog_init):
1067         * src/maemo/modest-account-settings-dialog.c:
1068         (create_page_account_details), (create_page_user_details),
1069         (create_page_incoming), (create_page_outgoing),
1070         (modest_account_settings_dialog_init):
1071         * src/maemo/modest-connection-specific-smtp-window.c:
1072         (modest_connection_specific_smtp_window_init): Used the smallest of the spacing constants.
1073
1074 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
1075
1076         * src/maemo/easysetup/modest-easysetup-wizard.c:
1077         (create_page_account_details), (create_page_custom_outgoing),
1078         (create_page_complete_custom):
1079         * src/maemo/modest-account-settings-dialog.c:
1080         (create_page_user_details), (create_page_incoming),
1081         (create_page_outgoing):
1082         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1083         (modest_connection_specific_smtp_edit_window_init): 
1084         Use the correct (UI spec) port min/max, and use horizontal separators, 
1085         as per the UI spec.
1086
1087 2007-04-23  Murray Cumming  <murrayc@murrayc.com>
1088
1089         * src/maemo/easysetup/modest-easysetup-wizard.c:
1090         (set_default_custom_servernames):
1091         * src/maemo/modest-account-settings-dialog.c:
1092         (create_page_incoming), (on_combo_outgoing_security_changed),
1093         (on_combo_incoming_security_changed), (create_page_outgoing),
1094         (modest_account_settings_dialog_set_account_name),
1095         (save_configuration):
1096         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1097         (on_combo_security_changed),
1098         (modest_connection_specific_smtp_edit_window_init),
1099         (modest_connection_specific_smtp_edit_window_set_connection),
1100         (modest_connection_specific_smtp_edit_window_get_settings): 
1101         Use HildonNumberEditor instead of GtkEntry for the port numbers so it has the - and + buttons,
1102         as per the UI spec.
1103
1104 2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1105
1106         * po/en_GB.po:
1107         * src/maemo/easysetup/modest-easysetup-wizard.c:
1108         (create_page_custom_outgoing), (create_page_complete_custom):
1109         * src/maemo/modest-account-settings-dialog.c:
1110         (create_page_user_details), (create_page_outgoing):
1111         * src/maemo/modest-account-view-window.c: (button_box_new):
1112         Use changed logical IDs as per the most recent UI spec:
1113         mcen_bd_emailsetup_edit -> mcen_bd_edit
1114         mcen_bd_emailsetup_delete -> mcen_bd_delete
1115         mcen_bd_emailsetup_close -> mcen_bd_close
1116
1117 2007-04-20  2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1118
1119         * configure.ac:
1120         * src/Makefile.am:
1121         * src/dbus_api/Makefile.am:
1122         * src/dbus_api/modest-dbus-callbacks.c:
1123         * src/dbus_api/modest-dbus-callbacks.h:
1124         * src/maemo/modest-platform.c: (modest_platform_init):
1125         Added the beginnings of a D-Bus API. At the moment it just has a HelloWorld 
1126         method.
1127         * tests/Makefile.am:
1128         * tests/dbus_api/Makefile.am:
1129         * tests/dbus_api/test_hello.c: (main): Very simple test of the D-Bus API.
1130
1131 2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1132
1133         * src/maemo/modest-account-settings-dialog.c:
1134         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1135         Removed unnecessary includes.
1136
1137 2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1138
1139         * src/maemo/easysetup/modest-easysetup-wizard.c:
1140         * src/maemo/modest-account-settings-dialog.c:
1141         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1142         * src/widgets/Makefile.am:
1143         * src/widgets/modest-easysetup-secureauth-combo-box.c:
1144         * src/widgets/modest-easysetup-secureauth-combo-box.h:
1145         * src/widgets/modest-easysetup-serversecurity-combo-box.c:
1146         * src/widgets/modest-easysetup-serversecurity-combo-box.h:
1147         * src/widgets/modest-secureauth-combo-box.c:
1148         * src/widgets/modest-secureauth-combo-box.h:
1149         * src/widgets/modest-serversecurity-combo-box.c:
1150         * src/widgets/modest-serversecurity-combo-box.h: Renamed the files and 
1151         made the GObject names more consistent with the rest of the Modest code.
1152
1153 2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1154
1155         * src/maemo/easysetup/Makefile.am:
1156         * src/maemo/easysetup/modest-easysetup-secureauth-combo-box.c:
1157         * src/maemo/easysetup/modest-easysetup-secureauth-combo-box.h:
1158         * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.c:
1159         * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.h:
1160         * src/maemo/easysetup/modest-easysetup-wizard.c:
1161         * src/maemo/easysetup/modest-validating-entry.c:
1162         * src/maemo/easysetup/modest-validating-entry.h:
1163         * src/maemo/modest-account-settings-dialog.c:
1164         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1165         * src/widgets/Makefile.am: Moved these widgets from maemo/easysetup into 
1166         widgets/ because they are used outside of easysetup too. After checking in, 
1167         svn will allow me to rename them too.
1168
1169 2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1170
1171         * src/gnome/modest-msg-edit-window.c:
1172         (modest_msg_edit_window_set_priority_flags): Added an empty implementation to fix a 
1173         linker error, to fix the build on the GNOME platform.
1174         modest_msg_edit_window_set_zoom(), modest_msg_edit_window_get_zoom(), 
1175         modest_msg_edit_window_zoom_plus(), modest_msg_edit_window_zoom_minus():
1176         ifdefed out to avoid a warning.
1177
1178 2007-04-20  Murray Cumming  <murrayc@murrayc.com>
1179
1180         * src/widgets/modest-header-view.c: (on_focus_in): Use GTK_CHECK_VERSION to #ifdef around the 
1181         use of gtk_tree_view_get_visible_range(), to fix the build on Mameo. This code probably needs 
1182         some alternative for GTK+ 2.6.
1183
1184 2007-04-19  Murray Cumming  <murrayc@murrayc.com>
1185
1186         * src/maemo/modest-address-book.c: Added include to avoid a warning.
1187
1188         * po/en_GB.po: Added missing mcen_bd_emailsetup_close string, 
1189         specified for EmailAccountsDialog in UI spec.
1190         
1191         * src/maemo/easysetup/modest-easysetup-wizard.c:
1192         * src/maemo/easysetup/modest-easysetup-wizard.h:
1193         * src/maemo/modest-account-settings-dialog.c:
1194         * src/maemo/modest-account-settings-dialog.h:
1195         Reuse a member window widget for the connection-specific SMTP server accounts, 
1196         so we can tell it to create/save the accounts only if we actually save changes.
1197
1198         * src/maemo/modest-connection-specific-smtp-edit-window.h:      
1199         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1200         (modest_connection_specific_smtp_edit_window_get_settings): 
1201         Return a struct instance for temporarily remembering the entered data.
1202
1203         * src/maemo/modest-connection-specific-smtp-window.h:
1204         * src/maemo/modest-connection-specific-smtp-window.c:
1205         (modest_connection_specific_smtp_window_finalize),
1206         (modest_connection_specific_smtp_window_fill_with_connections),
1207         (on_button_edit),
1208         (modest_connection_specific_smtp_window_save_server_accounts),
1209         (update_model_server_names): Do not actually save data until asked, 
1210         when the caller calls modest_connection_specific_smtp_window_save_server_accounts().
1211         
1212         (on_selection_changed),
1213         (modest_connection_specific_smtp_window_init): Disable the edit 
1214         button when nothing is selected.
1215         
1216         * src/modest-account-mgr-helpers.c:
1217         * src/modest-account-mgr-helpers.h: 
1218         Put modest_account_mgr_free_server_account_data() in the header now that I use the struct 
1219         elsewhere.
1220
1221 2007-04-19  Murray Cumming  <murrayc@murrayc.com>
1222
1223         * src/modest-account-mgr-helpers.h:
1224         * src/modest-account-mgr-helpers.c:
1225         (modest_account_mgr_get_unused_account_name),
1226         (modest_account_mgr_get_unused_account_display_name): Added these 
1227         utility functions, to avoid code duplication.
1228
1229         * src/maemo/easysetup/modest-easysetup-wizard.c:
1230         (create_page_account_details), (create_account):
1231         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1232         (on_combo_security_changed),
1233         (modest_connection_specific_smtp_edit_window_init),
1234         (modest_connection_specific_smtp_edit_window_save_settings):
1235         * src/maemo/modest-connection-specific-smtp-edit-window.h:
1236         * src/maemo/modest-connection-specific-smtp-window.c:
1237         (modest_connection_specific_smtp_window_finalize),
1238         (modest_connection_specific_smtp_window_fill_with_connections),
1239         (on_button_edit), (modest_connection_specific_smtp_window_init):
1240         * src/maemo/modest-connection-specific-smtp-window.h:
1241         Implementing saving of connection-specific server accounts.
1242         
1243         But I need to refactor this so we can save the data for each 
1244         possible connection-specific account and only actually create the server accounts 
1245         when the easysetup finished, or the OK button is pressed on the account settings 
1246         dialog.
1247
1248 2007-04-18  Murray Cumming  <murrayc@murrayc.com>
1249
1250         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1251         (on_combo_security_changed): 
1252         (modest_connection_specific_smtp_edit_window_init):
1253         Auto-fill the port number as in the account settings.
1254         
1255         (modest_connection_specific_smtp_edit_window_set_connection):
1256         * src/maemo/modest-connection-specific-smtp-edit-window.h:
1257         * src/maemo/modest-connection-specific-smtp-window.c:
1258         (fill_with_connections), (on_button_edit),
1259         (modest_connection_specific_smtp_window_init): 
1260         Turn the edit window into a dialog to simplify the code, and 
1261         set a WM hint as in a GtkDialog, because only a popup can be on top of 
1262         another window in Maemo, and popups usually have no WM decoration.
1263         
1264         * src/modest-defs.h:
1265         * src/modest-account-mgr-helpers.c:
1266         (modest_account_mgr_set_connection_specific_smtp),
1267         (modest_account_mgr_remove_connection_specific_smtp),
1268         (modest_account_mgr_get_connection_specific_smtp):
1269         * src/modest-account-mgr-helpers.h: Some functions to write the 
1270         connection-specific SMTP server information. Not yet used.
1271
1272         
1273         * src/widgets/modest-folder-view.c: (text_cell_data):
1274         Fix a warning about an uninitialized variable.
1275         (on_configuration_key_changed): Put an #ifdef around the use 
1276         of gtk_tree_view_column_queue_resize() because it is new in GTK+ 2.10.
1277
1278 2007-04-18  Murray Cumming  <murrayc@murrayc.com>
1279
1280         * src/maemo/modest-account-settings-dialog.h:
1281         * src/maemo/modest-account-settings-dialog.c:
1282         Added connect_for_modified() utility function to mark the new modified boolean.
1283         
1284         (create_page_account_details), (create_page_user_details),
1285         (create_page_incoming), (create_page_outgoing), (on_response),
1286         (modest_account_settings_dialog_init),
1287         (modest_account_settings_dialog_set_account_name):
1288         Only warn about unsaved changes when there are actually unsaved changes.
1289         
1290         * src/modest-account-mgr-helpers.c:
1291         * src/modest-account-mgr-helpers.h: Put the port, secure-auth, and security information 
1292         into the ModestServerAccountData struct. I do not use it yet, but someone might expect 
1293         to get the data from there in future.
1294
1295 2007-04-18  Murray Cumming  <murrayc@murrayc.com>
1296
1297         * src/modest-defs.h:
1298
1299         * src/modest-account-mgr-helpers.h:
1300         * src/modest-account-mgr-helpers.c:
1301         Store the security account setting in a single conf key instead of using 
1302         the options list, so that the list is left for just the to-be-removed camel hack, 
1303         and because gconf_client_set_list() is failing for some reason.
1304
1305         * src/modest-account-mgr.c:
1306         (modest_account_mgr_add_server_account):
1307         * src/maemo/modest-account-settings-dialog.c:
1308         (modest_account_settings_dialog_set_account_name),
1309         (save_configuration): Use the renamed functions.
1310
1311
1312 2007-04-18  Murray Cumming  <murrayc@murrayc.com>
1313
1314         * src/widgets/Makefile.am:
1315         * src/widgets/modest-limit-retrieve-combo-box.c:
1316         * src/widgets/modest-limit-retrieve-combo-box.h:
1317         * src/widgets/modest-retrieve-combo-box.c:
1318         * src/widgets/modest-retrieve-combo-box.h: Added new widgets for use in 
1319         the account settings dialog.
1320         
1321         * src/modest-defs.h:
1322         * src/modest-account-mgr-helpers.h:
1323         * src/modest-account-mgr-helpers.c:
1324         (modest_server_account_get_option_secure_auth),
1325         (modest_server_account_set_option_secure_auth):
1326         * src/modest-account-mgr.c:
1327         (modest_account_mgr_add_server_account):
1328         Use the existing AUTH_MECH conf key for the secure-auth setting, 
1329         instead of putting it in the list options, because this was actually used already.
1330         
1331         * src/maemo/modest-account-settings-dialog.c:
1332         (create_page_account_details),
1333         (modest_account_settings_dialog_set_account_name),
1334         (save_configuration):
1335         * src/maemo/modest-account-settings-dialog.h:
1336         Add the retrieve and retrieve-limit combo boxes, as per the UI spec.
1337         Hide the leave-messages checkbox for non-POP accounts, as per the UI spec.
1338
1339 2007-04-18  Murray Cumming  <murrayc@murrayc.com>
1340
1341         * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.h:
1342         * src/maemo/easysetup/modest-easysetup-serversecurity-combo-box.c:
1343         Added easysetup_serversecurity_combo_box_get_active_serversecurity_port()
1344
1345         * src/modest-defs.h:
1346         * src/maemo/modest-account-settings-dialog.c:
1347         (create_page_incoming), (on_combo_outgoing_security_changed),
1348         (on_combo_incoming_security_changed), (create_page_outgoing),
1349         (modest_account_settings_dialog_set_account_name),
1350         (save_configuration): Load/Save the port number, and change it when the 
1351         security combo changes, to suitable defaults.
1352
1353 2007-04-17  Murray Cumming  <murrayc@murrayc.com>
1354
1355         * src/modest-account-mgr.c:
1356         (modest_account_mgr_add_server_account): Set the security and secure-auth 
1357         options, and add a comment saying that the other camel-specific options should be 
1358         removed in future.
1359
1360 2007-04-17  Murray Cumming  <murrayc@murrayc.com>
1361
1362         * src/maemo/modest-account-settings-dialog.c: (check_data): Always return something, 
1363         found by valgrind.
1364         * src/modest-tny-account-store.c: (account_list_free),
1365         (on_account_changed): Add a TODO comment about a valgrind error, caused by using 
1366         cursor->data after unreffing it. But there is some strange stuff there so it might not be 
1367         easy to fix.
1368
1369 2007-04-17  Murray Cumming  <murrayc@murrayc.com>
1370
1371         * src/modest-protocol-info.c:
1372         * src/modest-protocol-info.h: Added a MODEST_PROTOCOL_AUTH_CRAMMD5 enum value, because it 
1373         is required by our UI spec. Maybe something in our implementation will use this eventually.
1374         * src/maemo/easysetup/modest-easysetup-secureauth-combo-box.c: 
1375         (easysetup_secureauth_combo_box_fill): Use the CRAM MD5 enum value 
1376         instead of the previous 0 placeholder.
1377         
1378         * src/modest-defs.h: Added gconf list pair key names and value strings for the security and 
1379         secure-auth settings.
1380         * src/modest-account-mgr-helpers.h:
1381         * src/modest-account-mgr-helpers.c:
1382         (modest_server_account_data_get_option_secure_auth),
1383         (modest_server_account_set_option_secure_auth),
1384         (modest_server_account_data_get_option_security),
1385         (modest_server_account_set_option_security): Added this API for getting and setting the security 
1386         and secure-auth settings.
1387         
1388         * src/maemo/modest-account-settings-dialog.h:
1389         * src/maemo/modest-account-settings-dialog.c:
1390         (modest_account_settings_dialog_finalize), (check_data),
1391         (on_response): Store the original title as well as the name, to avoid unnececessary warnings 
1392         about changing titles.
1393         (modest_account_settings_dialog_set_account_name): Load the security and secure-auth settings.
1394         (save_configuration): Save the security and secure-auth settings.
1395
1396         * src/modest-conf.c: (modest_conf_set_list): Get the list after setting it, to show that this 
1397         is failing sometimes (though reporting success). I fear I may need to debug gconf to fix this.
1398
1399 2007-04-17  Murray Cumming  <murrayc@murrayc.com>
1400
1401         * src/modest-defs.h: 
1402         * src/modest-account-mgr.c:
1403         (modest_account_mgr_add_server_account):
1404         Added and used defines for the options key and value pair strings, 
1405         that are used so far, though they do not seem to correspond to anything in our 
1406         UI specs or ModestProtocol enum.
1407         
1408         * src/modest-account-mgr-helpers.h:
1409         * src/modest-account-mgr-helpers.c:
1410         (compare_option_strings_for_name),
1411         (modest_server_account_data_get_option_value),
1412         (modest_server_account_data_get_option_bool),
1413         (modest_account_mgr_get_server_account_option):
1414         Added helper functions for parsing the options GSList.
1415
1416 2007-04-16  Murray Cumming  <murrayc@murrayc.com>
1417
1418         * src/modest-account-mgr-helpers.c: Clarified the documentation to say that the initial 
1419         display name is based on the supplied account name.
1420         * src/modest-account-mgr.c:
1421         * src/modest-account-mgr.h: Added modest_account_mgr_account_with_display_name_exists(), 
1422         with an inefficient, but good-enough, implementation.
1423         
1424         * src/maemo/easysetup/modest-easysetup-wizard.c:
1425         (create_page_account_details), (on_before_next), (create_account): 
1426         Check for existing display names rather than (non-user-visible) account names, and just 
1427         create and set a unique account name at the end.
1428         
1429         * src/maemo/modest-account-settings-dialog.c:
1430         (modest_account_settings_dialog_init),
1431         (modest_account_settings_dialog_set_account_name),
1432         (create_page_incoming): Show the display name, instead of the account name.
1433         (on_response): Do some (not all) extra checks, as in the UI spec.
1434         (save_configuration): Save the display name if it was changed.
1435
1436 2007-04-16  Murray Cumming  <murrayc@murrayc.com>
1437
1438         * po/en_GB.po: Added needed logical ID and translation.
1439         * src/widgets/modest-account-view.c: (on_account_default_toggled),
1440         (init_view): Made the is-default column clicking work.
1441
1442 2007-04-16  Murray Cumming  <murrayc@murrayc.com>
1443
1444         * configure.ac:
1445         * src/maemo/easysetup/Makefile.am:
1446         * src/maemo/easysetup/modest-easysetup-wizard.c:
1447         (modest_easysetup_wizard_dialog_init):
1448         * src/maemo/easysetup/provider-data-test.keyfile:
1449         * src/maemo/easysetup/provider-data.keyfile: 
1450         Moved the provider data file to the new modest-providers-data package and used it from there.
1451
1452 2007-04-16  Murray Cumming  <murrayc@murrayc.com>
1453
1454         * src/modest-local-folder-info.c:
1455         (modest_local_folder_info_get_type_display_name): Use _() to actually get the translated string. 
1456         N_() was already used on the static strings, but this just marks it for translation without 
1457         using the translation.
1458
1459 2007-04-06  Murray Cumming  <murrayc@murrayc.com>
1460
1461         * src/maemo/modest-account-settings-dialog.c:
1462         (create_page_incoming),
1463         (modest_account_settings_dialog_set_account_name): 
1464         Added comments about the need for new API in ModestAccountMgr to handle the authentication 
1465         and secure-connection stuff that is stored in the options GSList* with hard-coded names.
1466         I will do this if nobody else gets there first.
1467
1468 2007-04-06  Murray Cumming  <murrayc@murrayc.com>
1469
1470         * src/maemo/modest-account-settings-dialog.c: (save_configuration): 
1471         Saved much of the incoming and outgoing data too, though I cannot yet see how to 
1472         save the security stuff.
1473
1474 2007-04-06  Murray Cumming  <murrayc@murrayc.com>
1475
1476         * src/maemo/easysetup/modest-easysetup-wizard.c: (create_account): 
1477         Set the email address and user fullname, which I now see must be 
1478         done separately.
1479         
1480         * src/maemo/modest-account-settings-dialog.h:
1481         * src/maemo/modest-account-settings-dialog.c:
1482          (on_response),
1483         (modest_account_settings_dialog_set_account_name): Show the email address, fullname, 
1484         leave-on-server and authentication.
1485         (save_configuration): Save most of the non-server-account specific stuff, but I don't see 
1486         how to do the rest.
1487
1488 2007-04-06  Murray Cumming  <murrayc@murrayc.com>
1489
1490
1491         * src/maemo/modest-account-settings-dialog.c:
1492         * src/maemo/modest-account-settings-dialog.h:
1493         Most (but not all) of the widgets are now present as specified by the UI spec.
1494         No changes are yet saved, and some details are not properly shown yet.
1495         
1496         * po/en_GB.po: Added translations for logical IDs used by the Account Settings dialog.
1497
1498 2007-04-06  Murray Cumming  <murrayc@murrayc.com>
1499
1500         * src/maemo/Makefile.am:
1501         * src/maemo/modest-account-settings-dialog.c:
1502         * src/maemo/modest-account-settings-dialog.h: The beginnings of the dialog to edit 
1503         an existing account. Doesn't do much yet.
1504         
1505         * src/maemo/modest-account-view-window.c: (on_edit_button_clicked): 
1506         Open the accounts settings dialog when Edit is clicked.
1507
1508 2007-04-05  Murray Cumming  <murrayc@murrayc.com>
1509
1510         * src/maemo/easysetup/Makefile.am:
1511         * src/maemo/easysetup/modest-easysetup-country-combo-box.c:
1512         (load_from_file): 
1513         * src/maemo/easysetup/modest-easysetup-wizard.c:
1514         (modest_easysetup_wizard_dialog_init):
1515         Try to get the source directory from the build system,
1516         instead of hard-coding "./" into the source code, when opening our local 
1517         copies of the configuration files.
1518         But this still fails when opening the wizard from the Accounts window, 
1519         maybe because the working directory seems to change at runtime.
1520         So the wizard will fail the second time unless you copy the files into their 
1521         proper locations - see the stdout warnings for the paths.
1522         
1523         (create_page_account_details),(on_before_next): 
1524         Check for existing non-server accounts instead of server accounts, 
1525         so the default account name is useful again, and to prevent trying to 
1526         recreate accounts.
1527         
1528         * src/maemo/modest-account-view-window.c: (on_new_button_clicked): 
1529         Show the wizard when New is clicked.
1530         
1531         * src/widgets/modest-account-view.c: (on_account_default_toggled),
1532         (init_view): Show the column headers, and show the columns that are 
1533         specified in the UI specs. However, something in Maemo's GTK+ prevents 
1534         us from handling the GtkCellRendererToggle::toggled signal, so we cannot 
1535         change the default account. This is despite unsetting the special properties.
1536
1537 2007-04-05  Murray Cumming  <murrayc@murrayc.com>
1538
1539         * docs/reference/modest-design.sgml: Corrected spelling mistake.
1540         * src/maemo/easysetup/modest-easysetup-wizard.c: (create_account): 
1541         Create the 2 server accounts and then create the account, using the names of the 2 server accounts.
1542         This seems to be how this should be used. If it is, then I will update the AccountMgr documentation 
1543         to make that clearer.
1544         * src/modest-account-mgr.h: Corrected the modest_account_mgr_search_server_account() documentation.
1545
1546 2007-04-05  Murray Cumming  <murrayc@murrayc.com>
1547
1548         * src/maemo/modest-account-view-window.c:
1549         (modest_account_view_window_init),
1550         (modest_account_view_window_new):
1551         Use the same buttons as specified in the 
1552         UI spec. Add the widgets to the vbox and action_area instead of just assigning them to 
1553         the existing widgets, which never had a chance of working.
1554         Put the ModestAccountView treeview in a scrolled window.
1555         Do not repeat the initialization in both _init() and _new().
1556         
1557         * src/widgets/modest-account-view.c: (update_account_view):
1558         Add a warning about modest_account_mgr_account_names() returning NULL, which is why 
1559         this widget and window shows no accounts.
1560         
1561         * po/en_GB.po: Added translations needed for the dialog button logical IDs.
1562         
1563 2007-04-05  Murray Cumming  <murrayc@murrayc.com>
1564
1565         * src/maemo/easysetup/modest-easysetup-wizard.c:
1566         (set_default_custom_servernames): Avoid a dereference of a destroyed widget.
1567         (create_account): Do a sanity check, showing that modest_account_mgr_account_names() 
1568         returns NULL after modest_account_mgr_add_server_account() returned TRUE, 
1569         which seems wrong.
1570         
1571         * src/maemo/modest-main-window-ui.h: Specify the callback for the Accounts menu item.
1572         * src/modest-ui-actions.c: (modest_ui_actions_on_accounts): Open the wizard if no 
1573         accounts exist yet, as in the UI spec.
1574         
1575         * src/modest-account-mgr.h: Add TODO comment about a possible memory leak.
1576
1577 2007-04-05  Murray Cumming  <murrayc@murrayc.com>
1578
1579         * src/maemo/Makefile.am:
1580         * src/maemo/modest-connection-specific-smtp-edit-window.c:
1581         * src/maemo/modest-connection-specific-smtp-edit-window.h: 
1582         New window for editing connection-specific smtp details.
1583         Not fully implemented.
1584
1585         * src/maemo/modest-connection-specific-smtp-window.c:
1586         (modest_connection_specific_smtp_window_finalize) :
1587         unref the tree model.
1588         (on_button_edit): Show the edit window.
1589
1590 2007-04-05  Murray Cumming  <murrayc@murrayc.com>
1591
1592         * src/Makefile.am: Change sequence of sub-libraries, which fixed an undefined symbol 
1593         error for me.
1594         
1595         * src/maemo/Makefile.am:
1596         * src/maemo/modest-connection-specific-smtp-window.c:
1597         * src/maemo/modest-connection-specific-smtp-window.h:
1598         New window for showing the list of connections, for connection-specific 
1599         SMTP servers. Not fully implemented, because it needs an enhancement to TnyMaemoDevice.
1600         * src/maemo/easysetup/modest-easysetup-wizard.c:
1601         (create_page_custom_outgoing): Show the new window when the button is clicked.
1602
1603 2007-04-04  Murray Cumming  <murrayc@murrayc.com>
1604
1605         * src/maemo/easysetup/modest-easysetup-wizard.c: (create_account):
1606         * src/maemo/easysetup/modest-presets.c: (modest_presets_new):
1607         * src/maemo/modest-msg-edit-window.c:
1608         (modest_msg_edit_window_insert_image):
1609         * src/modest-conf.c: (modest_conf_key_escape):
1610         * src/modest-mail-operation.c:
1611         (modest_mail_operation_send_new_mail):
1612         * src/modest-ui-actions.c: (modest_ui_actions_on_accounts),
1613         (modest_ui_actions_on_new_account):
1614         * src/widgets/modest-attachment-view.c: (update_filename_request):
1615         * src/widgets/modest-mail-header-view.c: 
1616         Corrected warnings that were breaking the build, by commenting out unused variables, 
1617         and a function, and by including a header.
1618
1619 2007-04-04  Murray Cumming  <murrayc@murrayc.com>
1620
1621         * configure.ac: Define MODEST_PLATFORM_MAEMO and MODEST_PLATFORM_GNOME in config.h, 
1622         so we can #ifdef around platform-specific code when necessary.
1623         * src/modest-ui-actions.c: (modest_ui_actions_on_new_account): Use MODEST_PLATFORM_MAEMO 
1624         to allow this to build for the GNOME platform too.
1625
1626 2007-04-04  Murray Cumming  <murrayc@murrayc.com>
1627
1628         * src/maemo/easysetup/modest-easysetup-wizard.c:
1629         Added util_increment_name() and used it in create_page_account_details() 
1630         to make sure that the default account name is always a new name.
1631         
1632         (modest_easysetup_wizard_dialog_init), 
1633         (set_default_custom_servernames): Some minor memory management fixes.
1634
1635 2007-04-04  Murray Cumming  <murrayc@murrayc.com>
1636
1637         * Makefile.am:
1638         * configure.ac:
1639         * src/modest-runtime.c: (init_i18n): Restored the translation 
1640         infrastructure, so that GETTEXT_PACKAGE and MODEST_LOCALE_DIR 
1641         are defined in config.h, and the translations are installed.
1642         
1643         * src/maemo/easysetup/: Include config.h so that GETTEXT_PACKAGE 
1644         is defined for translation.
1645
1646 2007-04-03  Murray Cumming  <murrayc@murrayc.com>
1647
1648         * src/maemo/easysetup/modest-easysetup-country-combo-box.c:
1649         (load_from_file):
1650         * src/maemo/easysetup/modest-easysetup-wizard.c:
1651         (modest_easysetup_wizard_dialog_init):
1652         * src/maemo/easysetup/modest-presets.c: (modest_presets_new): 
1653         Use realistic paths (though they should use $prefix generically) to the 
1654         mcc_mapping and provider-data.keyfile files which might work when they 
1655         are installed by the future version of the operator-wizard package, 
1656         and then fallback to paths in our source code, with an explanatory 
1657         warning.
1658
1659 2007-04-03  Murray Cumming  <murrayc@murrayc.com>
1660
1661         * configure.ac:
1662         * src/Makefile.am:
1663         * src/maemo/Makefile.am:
1664         * src/maemo/easysetup/: Added files from the previously-exernal 
1665         osso-modest-easysetup.
1666         * src/maemo/modest-main-window-ui.h:
1667         * src/modest-ui-actions.c: 
1668         * src/modest-ui-actions.h:
1669         Added modest_ui_actions_on_new_account() as a signal handler for the 
1670         New Account menu item. It shows the easysetup wizard.
1671         * po/en_GB.po: Added additional needed logical IDs and translations.
1672         
1673 Started ChangeLog2 file, because I cannot work without a ChangeLog. murrayc.
1674 Apparently ChangeLog is not used for some vague Nokia legal reasons.
1675