2003-03-10 Not Zed <NotZed@Ximian.com>
* Makefile.am (libevolution_mail_la_SOURCES): removed main.c from
the build.
* component-factory.c (component_factory_init): Remove, not used
anymore, causes linking problems some places.
(factory): Removed the debug printf.
svn path=/trunk/; revision=20226
2003-03-07 Jeffrey Stedfast <fejj@ximian.com>
All this snot just to fix bug #38925 and an attempt to fix bug
#38926 (but it seems no matter what I do, I can't work around the
bonoboness/modality/whatever of the shell's preferences dialog).
* mail-account-gui.c (sig_add_new_signature): Get the toplevel
parent GtkWindow and pass that along to
mail_composer_prefs_new_signature() so that window layering can be
done correctly.
* mail-composer-prefs.c (mail_composer_prefs_new_signature):
Simplify. We don't want to add the signature to the list until
after they have saved.
(sig_edit_cb): Pass FALSE as the is_new argument to
mail_signature_editor().
(sig_event_client): Listen for signatures being added.
(mail_composer_prefs_new_signature): Now takes a GtkWindow arg as
the first arg rather than a MailComposerPrefs arg since we don't
really need it to be a MailComposerPrefs object. We'd rather use
the first arg as the parent GtkWindow so that we can set
transience for the editor window.
* mail-signature-editor.c (mail_signature_editor): Now takes a
'parent' argument (so we can set transient_for()) and a 'is_new'
argument specifying whether the editor is editing a new signature
or not. If it is, when the user saves, it will be added to the
signature list. otherwise it won't.
(sig_name_changed): Only use the mail_config_signature_set_name()
interface if it is *not* a new signature.
(menu_file_save_cb): If is_new, then save the signature to the
config - otherwise do what we did before and set the modifications
to it and emit the CHANGED event.
* mail-config.c (mail_config_signature_new): Renamed from
mail_config_signature_add(). We no longer immediately add the
signature to the list of saved signatures.
(mail_config_signature_add): New function which adds the signature
and emits the SIG_ADDED event.
svn path=/trunk/; revision=20221
2003-03-07 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_url_requested): If the part url is a text
part, use mail_format_data_wrapper_write_to_stream(). This should
fix bug #39204.
* mail-format.c (mail_format_data_wrapper_write_to_stream): Make public.
svn path=/trunk/; revision=20219
2003-03-06 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c (camel_utf8_getc): Don't use __inline__
as not all platforms/compilers support this keyword.
(g): Same.
svn path=/trunk/; revision=20193
2003-03-05 Not Zed <NotZed@Ximian.com>
* component-factory.c (idle_quit): Removed old quit code.
(owner_unset_cb): Make this call synchronous. Wont cover all
cases but should be ok most of the time.
svn path=/trunk/; revision=20167
2003-03-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Go back to using
e_destination_get_address() but use the camel-address parser on
the strings to make sure they are non-empty. Fixes bug #37854.
svn path=/trunk/; revision=20137
2003-03-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-signature-editor.c (menu_file_save_cb): Use 'filename' when
creating the uri rather than using the uninitialised 'uri'
variable to create itself. Fixes bug #38864.
svn path=/trunk/; revision=20125
2003-03-03 Not Zed <NotZed@Ximian.com>
* mail-session.c (do_user_message): Do the same as below for
request_password, so we dont leave a mainloop lying around.
2003-03-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (request_password): Don't connect to the response
signal if we are in the main thread - instead just use the return
value from gtk_dialog_run and then call pass_response() with the
response value.
svn path=/trunk/; revision=20122
2003-03-03 Not Zed <NotZed@Ximian.com>
* subscribe-dialog.c (fe_got_children): Remove the
e_tree_memory_sort_node, currently it crashes inside gal, the root
node seems to get free'd under it.
svn path=/trunk/; revision=20120
* mail-config-druid.c: Redo this to not use the CORBA interfaces
in the local case (in preparation for redoing the CORBA
interfaces).
(mail_config_druid_new): Remove unused "shell" arg
* mail-account-gui.c (mail_account_gui_transport_complete): Don't
crash if there's no transport selected at all.
(mail_account_gui_new): Don't try to set cc_addrs/bcc_addrs if
they're NULL.
* mail-accounts.c (account_add_clicked): Don't need to pass shell
to mail_config_druid_new.
* mail-callbacks.c (configure_mail): Don't need to pass shell to
mail_config_druid_new.
svn path=/trunk/; revision=20051
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (request_password): Make sure m->config_service
is non-NULL before using m->config_service->save_passwd since PGP
stuff will not have a config_service. Fixes bug #38149.
* mail-account-gui.c (mail_account_gui_save):
s/e_account_list_changed/e_account_list_change - otherwise we get
an undefined symbol and we crash :-)
svn path=/trunk/; revision=20043
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_new_signature): Don't
always append "[script]" to the signature name. Also cleaned up
some memory leakage.
svn path=/trunk/; revision=20039
2003-02-20 Not Zed <NotZed@Ximian.com>
* mail-preferences.c (mail_preferences_apply): fix the g_snprintf
stuff.
* mail-config.c (mail_config_add_account): Use new
e_account_list_add.
(mail_config_remove_account): Use new e_account_list_remove.
(mail_config_set_default_account): Similarly for
e_account_list_set_default.
(mail_config_get_default_account): Same for
e_account_list_get_default.
(mail_config_get_account_by_name): Use e_account_list_find.
* mail-account-gui.c (mail_account_gui_save): use new
e_account_list_changed call instead of manual signalling.
svn path=/trunk/; revision=20020
2003-02-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c: Set the local provider description field to a
string rather than NULL to prevent a segfault on solaris. Fixes
bug #38418.
svn path=/trunk/; revision=20007
2003-02-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-search.c (mail_search_destroy): New overloaded virtual
method, does what dialog_destroy_cb was trying to do.
(mail_search_construct): Connect to the "response" signal rather
than "clicked" to correspond to the GtkDialog API
(instead og the old GnomeDialog API).
(dialog_response_cb): Changed the function name and made it check
button == GTK_RESPONSE_ACCEPT to search, any other button
closes. Fixes bug #37947.
svn path=/trunk/; revision=20005
2003-02-21 Hans Petter Jansson <hpj@ximian.com>
* component-factory.c (factory): Don't try to get a FontPrefs control.
* mail-config-factory.c (mail_config_control_factory_cb): Just return
NULL if a FontPrefs control was requested.
* mail-config.c (mail_config_get_default_account): If no accounts
are defined, don't try to set the default account.
svn path=/trunk/; revision=19996
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
tables instead of vboxes, so that groups of label/entry pairs (as
in Connector's config page) can line up nicely.
* mail-config.glade: Turn extra_vbox and extra_mailcheck_vbox into
tables.
* mail-config-druid.c (get_fn): s/extra_vbox/extra_table/
* Makefile.am (libevolution_mail_la_LIBADD):
s/libcomposer.a/libcomposer.la/
svn path=/trunk/; revision=19993
2003-02-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_headers): Use
camel_charset_canonical_name() here instead of
e_iconv_charset_name().
* mail-preferences.c (mail_preferences_construct): Same as below.
(mail_preferences_apply): Again here.
* mail-composer-prefs.c (mail_composer_prefs_construct): Use
camel_charset_locale_name() here instead of
e_iconv_locale_charset().
(mail_composer_prefs_apply): Same.
svn path=/trunk/; revision=19978
2003-02-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (uri_to_key): Removed.
(lookup_signature): Removed.
(xml_get_int): Removed.
(xml_get_bool): Removed.
(mail_config_get_time_24hour): Removed.
* evolution-mail.schemas: s/long/int/g and change default_account
to be a string instead of an int.
* mail-config.c (mail_config_get_default_account): default_account
now uses the account uid, so change the code a bit to match uid
strings rather than use an index.
(mail_config_remove_account): Same here. simplifies the code a
bunch.
(mail_config_set_default_account): Here too.
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Update
the GalView path.
svn path=/trunk/; revision=19932
2003-02-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_get_pass): Change the logic here
slightly. Instead of only reprompting the user if the cache is
empty, also reprompt the user if the backend is forcing a
reprompt.
(request_password): If we have a cached passwd string for the
account, fill-in the GtkEntry box with that value by
default. This, together with the camel changes, fixes the
"Evolution forgets my POP passwd if it gets a -ERR response during
the login phase" bug.
svn path=/trunk/; revision=19911
2003-02-13 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c: #include <stdio.h>
* mail-config-factory.c: #include <string.h>
* mail-config-druid.c (identity_prepare): Use
gtk_editable_select_region() since gtk_entry_select_region() has
been deprecated.
(construct): Use gtk_window_set_resizable() instead of
gtk_window_set_policy().
(wizard_free): account_destroy() is no longer around, use
g_object_unref() instead. (how did this even compile before?)
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
gtk_label_set_text_with_mnemonic() instead of
gtk_label_parse_uline() as the latter has been deprecated.
svn path=/trunk/; revision=19905
2003-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (mail_accounts_tab_class_init): Register a
destroy virtual method.
(mail_accounts_tab_destroy): Set mail_display->destroyed = TRUE.
* message-list.c (message_list_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
svn path=/trunk/; revision=19884
2003-02-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_display_destroy): Set
mail_display->destroyed = TRUE. This is a workaround for the
GTK_OBJECT_DESTROYED() macro that we used to use before.
svn path=/trunk/; revision=19883
2003-02-10 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (build_tree): Use g_signal_emit() rather than
gtk_signal_emit().
(build_flat): Same here.
* mail-signature-editor.c: #include <string.h>
* mail-vfolder.c: #include <string.h>
* mail-session.c: #include <string.h>
* mail-search.c: #include <string.h>
* mail-mt.c: #include <string.h>
* mail-ops.c (save_part_save): Use strcasecmp() instead of
g_strcasecmp().
* mail-local.c: #include <string.h>
(reconfigure_folder_reconfigured): Use a GtkDialog instead of
gnome_error_dialog().
* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
since g_strdown is deprecated.
(fake_mime_part_from_data): Removed, no longer used it seems.
(destroy_part): Also removed.
* mail-display.c (make_popup_window): Replace call to
gtk_window_set_polociy() with gtk_window_set_resizable() instead.
(popup_size_allocate_cb): Use gtk_window_set_position() with
GTK_WIN_POS_MOUSE instead of calculating the position to put it
in.
svn path=/trunk/; revision=19878
* importers/Makefile.am: Split the ORBit IDL compilation rules to
work properly with parallel makes.
(BUILT_SOURCES): Add this.
(CLEANFILES): Add this.
* Makefile.am: Split the ORBit IDL compilation rules to work
properly with parallel makes.
(BUILT_SOURCES): Add $(IDL_GENERATED) here.
(CLEANFILES): Remove from here.
svn path=/trunk/; revision=19874
2003-02-10 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_url): look in the http cache for images
when saving
(image_save_as): remove random warning.
(do_external_viewer): remove unused variable.
(do_attachment_header): use g_ascii_strdown
svn path=/trunk/; revision=19864
2003-02-07 Larry Ewing <lewing@ximian.com>
* mail-display.c (save_data_cb): don't use random memory as a
gconf client.
svn path=/trunk/; revision=19848