Commit Graph

12 Commits

Author SHA1 Message Date
a878c6c70b Add #include to fix warning.
2003-05-17  Jeremy Katz  <katzj@redhat.com>

	* mail-offline-handler.c: Add #include to fix warning.

	* mail-mt.c (mail_msg_new): Use glib macros for pointer/int
	conversions.
	(mail_msg_free): Likewise.
	(mail_msg_cancel): Likewise.
	(mail_msg_wait): Likewise.
	(mail_msg_active): Likewise.
	* mail-session.c (main_register_timeout): Likewise.
	(register_timeout): Likewise.
	(main_remove_timeout): Likewise.
	(remove_timeout): Likewise.
	* message-list.c (ml_value_to_string): Likewise.

	* mail-identify.c: Add #include to fix warning.

	* mail-config.c (config_write_fonts): Don't pass extra arguments
	to g_warning.

	* mail-callbacks.c: Add #include to fix warning.

svn path=/trunk/; revision=21222
2003-05-16 18:52:14 +00:00
efa11b7781 s/BonoboXObject/BonoboObject/
* folder-info.c: s/BonoboXObject/BonoboObject/

	* mail-config.c: Likewise

	* mail-offline-handler.c: Likewise

svn path=/trunk/; revision=19426
2003-01-13 18:41:39 +00:00
f9804e1193 Commented out stuff that doesn't build yet. Also fixed idl build rule.
2002-11-13  Not Zed  <NotZed@Ximian.com>

	* Makefile.am: Commented out stuff that doesn't build yet.  Also
	fixed idl build rule.  importers still not built.

	* main.c (main): bonobactivationise.  remove push visual/colormap.
	(main): no longer activate activation, let bonobo_init do it.

	* mail-signature-editor.c (menu_help): Change help api.

	* mail-session.c (user_message_destroy_noreply): removed.  Not
	used?

	* mail-local.c (load_metainfo): xml root->children.

	* mail-format.c (g_string_append_len): Removed, it exists now.

2002-11-12  Not Zed  <NotZed@Ximian.com>

	* subscribe-dialog.c: gnome2ised, use gtkdialog.
	(subscribe_get_global_extras): use a weak ref rather than destroy signal.

	* message-tag-followup.c: gnome2ised.

	* message-tag-editor.c: gnome2ised & converted to gtkdialog.

	* message-list.c: gnome2ised.
	(message_list_finalise): From destroy method.  maybe should be
	destroy still.

	* message-browser.c: port to gnome2
	(message_browser_finalise): renamed from destroy method.

	* mail-stream-gtkhtml.c: removed redundant
	camel_class_get_global_classfuncs() call.

	* mail-signature-editor.c: gtkdialogised, & bonobo api changes.


	* mail-search-dialogue.c: gtkdialogised.

	* mail-folder-cache.c: cleaned up camel ref/hook casts.

	* mail-composer-prefs.c (mail_composer_prefs_get_type): convert to
	gtype.

	* mail-font-prefs.c (mail_font_prefs_destroy): from finalise.

	* mail-config.c: s/bonobo_config/e_config_listener/
	Added /apps/Evolution prefix to the evolution keys.
	Changed to use e_config_listener, etc.
	(mail_config_init): remove bonobo_config stuff.
	(mail_config_check_service): gtk dialogise.
	(check_response): from check_cancelled.

	* mail-config-druid.c (mail_config_druid_destroy): renamed from
	_finalize, turned into destroy handler.
	(construct): set type to toplevel, GTK_WINDOW_DIALOG no longer exists.

	* mail-config-factory.c (mail_config_register_factory): bonobo api
	changes.

	* mail-crypto.c (mail_crypto_get_pgp_cipher_context): cleaned up
	unref casts.

	* mail-display.c (write_data_to_file): gnome->gtkdialog.
	(on_link_clicked): use ascii_str*cmp on url.
	(save_part): g_path stuff.
	(launch_cb): gtk dialog.
	(pixmap_press): de-oafify.
	(pixbuf_for_mime_type): gnome-vfs api changes.
	(do_attachment_header): Change the pixmap to a gtkimage.
	(do_signature): "
	(pixbuf_gen_idle): "
	(do_attachment_header): ascii_str*cmp
	(do_attachment_header): gnome pixmap->gtkimage.
	(mail_display_destroy): protect against gtk mentalness.
	(html_button_press_event): ascii_str*cmp
	(drag_data_get_cb): added comment for translators of filename.

	* mail-format.c (component_supports): de-oafise.
	(is_anonymous): ascii_strncmp
	(attachment_header): remove utf8<>locale stuff, and gnomevfs api
	changes.
	(format_mime_part): fix g_strdown call.
	(write_field_row_begin): kill utf8->gtk stuff.
	(write_address): "
	(default_header_index): ascii_strcasecmp
	(handle_text_plain): "
	(handle_text_enriched): "
	(handle_multipart_encrypted): remove utf/gtk stuff.
	(handle_message_external_body): ascii_str*cmp

	* mail-identify.c (mail_identify_mime_part):
	(identify_by_magic): gnome vfs api changes.

	* mail-importer.c: Converted.

	* mail-local.c (load_metainfo): xml childs -> children.
	(mls_get_folder): g_strerror.
	(mls_delete_folder): g_strerror.
	(reconfigure_got_folder): Gnome->GtkDialog
	(reconfigure_response): from reconfigure_clicked.

	* mail-mt.c (mail_msg_check_error): gnome -> gtk dialog
	(error_response): renmae from error_gone.  destroy widget on any
	response.

	* mail-offline-handler.c (impl_finalise): renamed from
	impl_destroy since thats what it should be anyway.

	* mail-ops.c: removed utf8 widget conversion & camel_object_un/ref
	casts.

	* mail-preferences.c (mail_preferences_get_type): glib2'ised.

	* mail-search.c (mail_search_finalise): renmaed from destroy &
	properly chain.
	(mail_search_get_type): glib2 & make gtkdialog parent.
	(entry_run_search): run search when entry activated.  not sure if
	gtkdialog has anohter way to do this on an arbitrary widget.

	* mail-send-recv.c (dialogue_response): renamed from clicked.  Use
	gtkdialog.

	* mail-session.c (request_password_deleted): removed, redundant.
	(pass_response): rename from pass_got, changed for gtkdialog.
	(user_message_destroy): Removed, redundant.
	(user_message_response): Renamed from user_message_clicked.

2002-11-11  Not Zed  <NotZed@Ximian.com>

	* mail-stream-gtkhtml.c (mail_stream_gtkhtml_class_init): dont use
	get_global_classfuncs, just get the type

	* mail-tools.c: converted gnome2 api's.

	* mail-vfolder.c (vfolder_editor_response): clicked->response.
	(vfolder_editor_destroy): Removed.
	(vfolder_edit): gtk dialog api
	(edit_rule_response): clicked->response.
	(vfolder_edit_rule): gnomedialog->gtkdialog.
	(vfolder_gui_add_rule): "
	(new_rule_clicked): clicked->response

svn path=/trunk/; revision=18723
2002-11-12 14:59:35 +00:00
01fb066a57 Add a GHashTable pointer so we can remove the info once the operation is
2002-08-01  Peter Williams  <peterw@ximian.com>

	* mail-offline-handler.c (struct _sync_info): Add a GHashTable pointer
	so we can remove the info once the operation is done.
	(sync_done): Remove the info from the hash table.
	(impl_syncFolder): Save the table to which the info was added.

svn path=/trunk/; revision=17701
2002-08-05 21:04:30 +00:00
dd328148b9 Call mail_note_store to get the folders to be updated and new ones to be
2002-07-26  Peter Williams  <peterw@ximian.com>

	* mail-offline-handler.c (storage_go_online): Call mail_note_store
	to get the folders to be updated and new ones to be inserted into
	the tree.

svn path=/trunk/; revision=17632
2002-07-29 16:26:32 +00:00
f9a7422465 Account for the case that when a disco store is "online" but actually
2002-07-15  Peter Williams  <peterw@ximian.com>

	* mail-offline-handler.c (service_is_relevant): Account for the case
	that when a disco store is "online" but actually offline and we're
	going online, we should actually connect it.

	* component-factory.c (mail_load_storages): Always set auto_connect
	to FALSE, same reason as below.

	* mail-session.c (mail_session_init): Initialize our session to not be online,
	since the shell will tell us to go online if we need to.

svn path=/trunk/; revision=17459
2002-07-15 15:00:05 +00:00
be2d7023bf Implement prep_offline for an individual folder. (set_offline_do): Only
2002-05-15  Not Zed  <NotZed@Ximian.com>

        * mail-ops.c (prep_offline_do):
        (prep_offline_done):
        (prep_offline_free):
        (mail_prep_offline): Implement prep_offline for an individual
        folder.
        (set_offline_do): Only call disco_store_set_status or disconnect
        for the store, dont do any offline prep stuff.

        * mail-offline-handler.c: Applied patch from Ettore to hook in
        extra offline interfaces.
        (impl_destroy): Dont free listener here anymore, its removed, but
        free sync table.
        (mail_offline_handler_init): Same for setup.
        (impl_syncFolder): Implement.
        (sync_done): handles finalising synchronisation of 1 folder.
        (sync_status): progress reporting, camel side.
        (sync_timeout): progress reporting, gmainloop side.
        (impl_cancelSyncFolder): Implement.
        (impl_goOffline, storage_go_offline, went_offline): Dont copy the
        listener to our struct - its an argument, not a member, so give
        each thread its own copy.

svn path=/trunk/; revision=16799
2002-05-15 12:39:17 +00:00
c0cddd6d1d Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14191
2001-10-27 00:47:22 +00:00
8d3a2ebd28 create storages for providers that are STORAGE and aren't EXTERNAL, rather
* component-factory.c (mail_load_storage_by_uri): create storages
	for providers that are STORAGE and aren't EXTERNAL, rather than
	"(STORAGE and REMOTE) or spool, maildir, or vfolder".
	(mail_remove_storage_by_uri): Use the same rule here (which makes
	it possible now to remove maildir and spool stores now, which
	weren't properly special-cased before). Remove some CamelException
	misuse.

	* mail-config.c (new_source_created): Fix up the broken INBOX-
	shortcut-generating assumption a little by only assuming that if
	you call camel_store_get_inbox(), that its full_name is the same
	as its path. (This happens to always be true for inboxes now, and
	will be always true by definition at some point in the future.)
	Now maildir stores get working Inbox shortcuts.

	* mail-send-recv.c (get_receive_type): If PROVIDER_IS_STORAGE
	then use SEND_UPDATE, if not, use SEND_RECEIVE.

	* mail-local.c (local_provider): The local provider is EXTERNAL.
	(The shell creates it.)
	(mail_local_reconfigure_folder): Allow reconfiguring between
	IS_LOCAL providers.

	* mail-accounts.c (news_delete): Don't need to check the provider
	flags here... we know nntp is a STORAGE.

svn path=/trunk/; revision=13277
2001-10-01 19:45:39 +00:00
ac54446b56 A service needs to be disconnected if it's remote, not already offline,
* mail-offline-handler.c (service_is_relevant): A service needs to
	be disconnected if it's remote, not already offline, and either
	connected OR connecting.
	(storage_go_offline): Don't put non-relevant stores offline. (Eg,
	don't force an IMAP store which you hadn't already connected to to
	connect and sync.)
	(storage_go_online): Likewise, don't "reconnect" stores that
	weren't connected before.

	* mail-ops.c (set_offline_desc): Fix the message to say
	"reconnecting" instead of "disconnecting" when appropriate.
	(mail_store_set_offline): If offline is TRUE, call
	camel_service_cancel_connect on the store. (We do this here
	because we don't want the cancel_connect request to get queued up
	behind a hanging connection attempt.)

svn path=/trunk/; revision=13192
2001-09-27 14:47:46 +00:00
6fb0378533 Set the session as online so auto mail checking (and the composer) will be
2001-08-11  Jason Leach  <jleach@ximian.com>

	* mail-offline-handler.c (impl_goOnline): Set the session as
	online so auto mail checking (and the composer) will be doing the
	right things when you go online.  Bug #6343 and #4601.

svn path=/trunk/; revision=11928
2001-08-12 03:12:52 +00:00
72be879a27 New file, started by Ettore, finished by me, to implement the
* mail-offline-handler.c: New file, started by Ettore, finished by
	me, to implement the GNOME_Evolution_Offline interface.

	* Makefile.am (evolution_mail_SOURCES): Add
	mail-offline-handler.[ch]

	* mail-ops.c (mail_store_set_offline): Set a store online or
	offline.

	* mail-send-recv.c (auto_timeout): Don't run auto-check-for-mail
	while the session is offline.

	* component-factory.c (component_fn): Set up offline handler.

svn path=/trunk/; revision=9739
2001-05-09 22:01:42 +00:00