aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
Commit message (Collapse)AuthorAgeFilesLines
* Update the unread count in the model if the folder got new mail.Jeffrey Stedfast2003-12-111-2/+1
| | | | | | | | | | | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * mail-folder-cache.c (real_flush_updates): Update the unread count in the model if the folder got new mail. * em-folder-selection.c (em_select_folder): Updated. * em-folder-selection-button.c (em_folder_selection_button_clicked): Updated. * em-folder-tree-model.c (em_folder_tree_model_set_unread_count): New function to update the unread count for a folder. * mail-component.c (mail_component_peek_tree_model): Don't ref the model. Also renamed s/get/peek/ svn path=/trunk/; revision=23910
* separeate view_menu unreffing from view_instance. fixes a runtime warning.Not Zed2003-12-101-7/+10
| | | | | | | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * em-folder-browser.c (emfb_activate): separeate view_menu unreffing from view_instance. fixes a runtime warning. ** See bug #51718. * mail-component.c (em_uri_to_camel): handle an e-uri which has an account uid which isn't in user@host format. svn path=/trunk/; revision=23897
* Moved here. (drop_folder): Moved here. (import_message_rfc822): MovedJeffrey Stedfast2003-12-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-02 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (drop_uid_list): Moved here. (drop_folder): Moved here. (import_message_rfc822): Moved here. (drop_message_rfc822): Moved here. (drop_text_uri_list): Moved here. (model_drag_data_received): Moved the logic from em-folder-tree.c into here. (model_row_drop_possible): Same. (model_row_draggable): Same. (drag_text_uri_list): Moved here. (model_drag_data_get): Moved logic here. (model_drag_data_delete): Moved logic here. * em-folder-tree.c (drag_data_get_cb): Pass the full_name to camel_store_get_folder() rather than the path. (drag_data_received_cb): Same. (drop_uid_list): Removed. (drop_folder): Removed. (import_message_rfc822): Removed. (drop_message_rfc822): Removed. (drop_text_uri_list): Removed. (drag_data_received_cb): Removed. (row_drop_possible_cb): Removed. (row_draggable_cb): Removed. (drag_text_uri_list): Removed. (drag_data_get_cb): Removed. (drag_data_delete_cb): Removed. (em_folder_tree_enable_drag_and_drop): Don't connect to any of the drag & drop signals, they don't exist anymore. * mail-component.c (impl_createControls): Enable drag-and-drop. * em-folder-tree.c (em_folder_tree_new_with_model): Connect to the loading row signal. (loading_row_cb): Expand the path if needed. (em_folder_tree_destroy): Disconnect from the loading-row signal. (em_folder_tree_enable_drag_and_drop): New function to enable drag-and-drop. (em_folder_tree_new): Remove drag-and-drop setup code. * em-folder-tree-model.c (em_folder_tree_model_class_init): Define the loading-row signal. (em_folder_tree_model_set_folder_info): emit the loading-row signal. svn path=/trunk/; revision=23590
* Fixed to pass the evolution dir into em_folder_tree_model_new().Jeffrey Stedfast2003-12-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2003-12-02 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_new): Fixed to pass the evolution dir into em_folder_tree_model_new(). (model_save_state): Removed. (em_folder_tree_save_state): Moved all the saving logic into em_folder_tree_model_save_expanded(). * em-folder-tree-model.c (em_folder_tree_model_new): Load the expanded state off disk. (em_folder_tree_model_save_expanded): New function to save expanded state. (em_folder_tree_model_get_expanded): new function to get if a node should be expanded. (em_folder_tree_model_set_expanded): new function to set the expanded state of a node. * mail-component.c (mail_component_init): Pass the evo dir to em_folder_tree_model_new() which now requires it. svn path=/trunk/; revision=23585
* New member activity_handler. (mail_component_init): Initialize.Ettore Perazzoli2003-12-021-12/+25
| | | | | | | | | | | | | | | | | | | | | | * mail-component.c (struct _MailComponentPrivate): New member activity_handler. (mail_component_init): Initialize. (impl_dispose): Unref. (mail_component_peek_activity_handler): New. (impl_createControls): Create an ETaskBar, attach it to the ActivityHandler, and return it to the caller as the statusbar control. * e-activity-handler.c (e_activity_handler_operation_finished): Argh, renamed from e_activity_client_operation_finished(). (e_activity_handler_operation_started): Don't unref the pixbuf. * e-shell-window.c (setup_widgets): Hide the menu hint label. * e-activity-handler.c (init): Init to next_activity_id to 1 so callers can rely on it being nonzero. svn path=/trunk/; revision=23556
* Pass a label for the status bar control for now.Ettore Perazzoli2003-12-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/calendar-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/tasks-component.c (impl_createControls): Pass a label for the status bar control for now. * mail-component.c (impl_createControls): Pass a label for the status bar control for now. * e-shell.c (struct _EShellPrivate): Remove member activity_handler. (setup_activity_interface): Remove. (e_shell_init): Don't call. (create_window): Don't attach the task bar to the activity handler. * e-shell-window.c (struct _ComponentView): New member statusbar_widget. (struct _EShellWindowPrivate): Remove member task_bar. (init_view): Get the status bar control from createControls and put it in the ComponentView struct. (setup_task_bar): New. (setup_statusbar_notebook): New. (switch_view): Switch the statusbar notebook too. (impl_dispose): Add missing GTK_OBJECT() cast. (e_shell_window_peek_task_bar): Remove. * Evolution-Component.idl (Component::createControls): New out arg "statusbar_control"; this way components can provide their own status bar. * e-activity-handler.c, e-activity-handler.h: Turn into a plain GObject; translate all the CORBA methods into plain C methods. * Makefile.am: Move e-activity-handler to libeshell instead of it being in the shell. svn path=/trunk/; revision=23555
* Updated to call em_folder_tree_model_set_folder_info().Jeffrey Stedfast2003-12-021-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_get_folder_info__got): Updated to call em_folder_tree_model_set_folder_info(). (folder_subscribed_cb): Removed. (folder_unsubscribed_cb): Removed. (folder_created_cb): Removed. (folder_deleted_cb): Removed. (folder_renamed_cb): Removed. * em-folder-tree-model.c (em_folder_tree_store_set_folder_info): New function to replace tree_store_set_folder_info() which had been in em-folder-tree.c (em_folder_tree_model_remove_uri): Made private. (em_folder_tree_model_remove_store_info): Made private. (em_folder_tree_model_remove_folders): New function to replace remove_folders() from em-folder-tree.c (em_folder_tree_model_new): No longer takes any args. * em-folder-tree.c (em_folder_tree_new): Updated. * mail-component.c (add_store): Add the store to the model rather than the treeview. (impl_createControls): create a new treeview based on the already-instantiated model. (mail_component_init): Create a new tree model. (mail_component_remove_store): Remove the store from the model directly. (mail_component_get_tree_model): Updated. * em-folder-tree.c (folder_unsubscribed_cb): Call em_folder_tree_model_remove_folders() rather than the deprecated internal remove_folders() function. (folder_renamed_cb): Same. (em_folder_tree_remove_store): Removed. (em_folder_tree_add_store): Removed. (remove_folders): Removed. svn path=/trunk/; revision=23545
* Implemented. (mail_component_class_init): Overload the handleURI method.Jeffrey Stedfast2003-11-211-8/+15
| | | | | | | | | 2003-11-20 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (impl_handleURI): Implemented. (mail_component_class_init): Overload the handleURI method. svn path=/trunk/; revision=23464
* if we're setting the fragment, strip leading /'s.Not Zed2003-11-191-2/+2
| | | | | | | | | | | | | | | 2003-11-19 Not Zed <NotZed@Ximian.com> * mail-component.c (em_uri_to_camel): if we're setting the fragment, strip leading /'s. * mail-tools.c (mail_tool_get_meta_data) (mail_tool_delete_meta_data, meta_data_key): old stuff killed. (mail_tool_uri_to_folder): handle email: uri's specially. this is a bit of a hack, the filter callbacks should manage this itself since filters are the only bits which use those uri's. svn path=/trunk/; revision=23437
* thin wrapper on mail_component_get_local_inbox.Not Zed2003-11-171-0/+5
| | | | | | | | | | | | | | | | 2003-11-17 Not Zed <NotZed@Ximian.com> * mail-tools.c (mail_tool_get_local_inbox): thin wrapper on mail_component_get_local_inbox. * mail-component.c (mail_component_get_local_inbox): helper to get the default local inbox. * mail-ops.c (fetch_mail_fetch): if we can't get the inbox, make sure we still unref the filter driver here by using hte same exit code. Fixes a crash. svn path=/trunk/; revision=23377
* Removed.Jeffrey Stedfast2003-11-151-5/+33
| | | | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.[c,h]: Removed. * mail-component.c (folder_selected_cb): Don't create a new view anymore, simply set the new folder uri on the folder browser. This makes the mailer use a lot less memory than in 1.x (view_control_activate_cb): Moved here from folder-browser-factory.c (impl_createControls): Connect to the activate signal on the view control. svn path=/trunk/; revision=23360
* oops, fixed for when path is a store nodeJeffrey Stedfast2003-11-151-3/+3
| | | | svn path=/trunk/; revision=23359
* Don't create a new view anymore, simply set the new folder uri on theJeffrey Stedfast2003-11-151-58/+6
| | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (folder_selected_cb): Don't create a new view anymore, simply set the new folder uri on the folder browser. This makes the mailer use a lot less memory than in 1.x svn path=/trunk/; revision=23358
* Use em_folder_tree_get_model() since an emft is not a GtkTreeView.Jeffrey Stedfast2003-11-141-1/+1
| | | | | | | | | | | | 2003-11-13 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (mail_component_get_tree_model): Use em_folder_tree_get_model() since an emft is not a GtkTreeView. * em-folder-tree.c (em_folder_tree_get_model): New function to get the tree model. svn path=/trunk/; revision=23347
* Updated for function name changes in mail-component.cJeffrey Stedfast2003-11-141-52/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-13 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_load_storage): Updated for function name changes in mail-component.c * mail-offline-handler.c: Updated for function name changes in mail-component.c * mail-account-gui.c (add_new_store): Fixed to not use EStorage. (mail_account_gui_save): Updated for function name changes. * em-account-prefs.c (account_delete_clicked): Updated for function name changes. (account_able_clicked): Same. (account_able_toggled): Same. * mail-component.c: Renamed mail_component_*storage*() functions to mail_component_*store*() since we are no longer dealing with storages, but instead with CamelStore's. (create_view_widget): If the user selects a store node, don't try to open it as a folder. svn path=/trunk/; revision=23340
* If the user selects a store node, don't try to open it as a folder.Jeffrey Stedfast2003-11-141-6/+12
| | | | | | | | | 2003-11-13 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (create_view_widget): If the user selects a store node, don't try to open it as a folder. svn path=/trunk/; revision=23336
* (impl_sendAndReceive): New, implementation forEttore Perazzoli2003-11-141-0/+8
| | | | | | | Evolution.Component.sendAndReceive. (mail_component_class_init): Install. svn path=/trunk/; revision=23335
* Modified to not use EStorage* functions. I don't even think it *needs* toJeffrey Stedfast2003-11-141-0/+6
| | | | | | | | | | | 2003-11-13 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (context_rule_removed): Modified to not use EStorage* functions. I don't even think it *needs* to remove the folder from the mail-component, the mail-component should just pick it up automagically via CamelStore events. svn path=/trunk/; revision=23333
* New folder-tree widget that replaces the shell's folder-tree widget.Jeffrey Stedfast2003-11-141-1410/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-13 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.[c,h]: New folder-tree widget that replaces the shell's folder-tree widget. * em-folder-tree-model.[c,h]: New source files subclassing GtkTreeStore for handling the mess that is drag&drop. * em-folder-selection-button.c: Ported to use EMFolderTree. * em-folder-selection.c: Ported to use EMFolderTree. * em-folder-selector.c: Ported to use EMFolderTree. * mail-component.c: Ported to use EMFolderTree. * mail-offline-handler.c (storage_go_online): Updated to not pass a storage argument. * mail-folder-cache.c: Removed storage stuff. * mail-send-recv.c (receive_update_got_store): Don't do EStorage* stuff anymore. svn path=/trunk/; revision=23331
* (impl__get_userCreatableItems): New,Ettore Perazzoli2003-11-131-1/+40
| | | | | | | | | implementation for the Component.userCreatableItems attribute. (impl_requestCreateItem): New, implementation for the Component.requestCreateItem() method. (mail_component_class_init): Install. svn path=/trunk/; revision=23321
* merged spam filtering branchRadek Doulik2003-11-131-0/+11
| | | | svn path=/trunk/; revision=23302
* User vfolder rules should be in ${evolution_dir}/mail/vfolders.xml ratherJeffrey Stedfast2003-11-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-06 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (mail_vfolder_delete_uri): User vfolder rules should be in ${evolution_dir}/mail/vfolders.xml rather than ${evolution_dir}/vfolders.xml (mail_vfolder_rename_uri): Same. (store_folder_deleted): Here too. (store_folder_renamed): And here. (vfolder_load_storage): Again here. (vfolder_editor_response): Same. (edit_rule_response): And here. (new_rule_clicked): Here too. * mail-session.c (main_get_filter_driver): User filter rules should be in ${evolution_dir}/mail/filters.xml rather than ${evolution_dir}/filters.xml * mail-autofilter.c (filter_gui_add_from_message): Same. (mail_filter_rename_uri): And here. (mail_filter_delete_uri): Here too. * em-utils.c (filter_editor_response): Again here. (em_utils_edit_filters): Same. * em-migrate.c (em_migrate_filter_file): Same (also for vfolders.xml) 2003-11-05 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.[c,h]: New source files to migrate from the old mail directory to the new mail directory. * mail-component.c (mail_component_init): Changed to use ~/.evolution and added code to migrate the old mail folders over if ~/.evolution/mail does not yet exist. svn path=/trunk/; revision=23201
* New source files to migrate from the old mail directory to the new mailJeffrey Stedfast2003-11-061-48/+39
| | | | | | | | | | | | | 2003-11-05 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.[c,h]: New source files to migrate from the old mail directory to the new mail directory. * mail-component.c (mail_component_init): Changed to use ~/.evolution and added code to migrate the old mail folders over if ~/.evolution/mail does not yet exist. svn path=/trunk/; revision=23193
* added a #includeJeffrey Stedfast2003-11-011-0/+1
| | | | svn path=/trunk/; revision=23156
* show application/x-pkcs7-mime inline always by default.Not Zed2003-10-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | 2003-10-30 Not Zed <NotZed@Ximian.com> * em-format.c (em_format_is_inline): show application/x-pkcs7-mime inline always by default. 2003-10-30 Not Zed <NotZed@Ximian.com> * em-format.c (emf_multipart_signed): handle application/x-pkcs7-signature. 2003-10-29 Not Zed <NotZed@Ximian.com> * em-format-html.c (em_format_html_multipart_signed_sign): handle application/x-pkcs7-signature. * em-format.c (emf_application_xpkcs7mime): Handle application/x-pkcs7-mime. svn path=/trunk/; revision=23129
* Removed, use em_utils_selection_get_uidlist() instead. (drop_uid_list):Jeffrey Stedfast2003-10-231-33/+11
| | | | | | | | | | | | | | | | | | | 2003-10-22 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (parse_uid_list): Removed, use em_utils_selection_get_uidlist() instead. (drop_uid_list): Use em_utils_selection_get_uidlist() to parse the x-uid-list selection data and use mail_tool_uri_to_folder() directly since we have the uri (originally we expected the first component of the selection data to be the e-storage-set-view folder path rather than the uri). (folder_receive_drop_cb): Call gtk_drag_finish() here. * message-list.c: s/x-evolution-message/x-uid-list/ * em-utils.c: Same. svn path=/trunk/; revision=23004
* Use e_storage_browser_peek_widget_scrolled() to retrieve the scrolledEttore Perazzoli2003-10-231-2/+4
| | | | | | | | | | | | | | | * mail-component.c (impl_createControls): Use e_storage_browser_peek_widget_scrolled() to retrieve the scrolled window that the EStorageSetView is contained in. * e-storage-browser.c (struct _EStorageBrowserPrivate): New member "storage_set_view_scrolled". (e_storage_browser_new): Put the storage_set_view in a scrolled window. Set priv->storage_set_view_scrolled to this scrolled window. (e_storage_browser_peek_tree_widget_scrolled): New. svn path=/trunk/; revision=22993
* handle destination of "" properly. (emc_popup_copy_folder_selected):Not Zed2003-10-221-15/+48
| | | | | | | | | | | | | | 2003-10-22 Not Zed <NotZed@Ximian.com> * mail-component.c (em_copy_folders): handle destination of "" properly. (emc_popup_copy_folder_selected): handle url->path properly, strip leading /. (em_copy_folders): if we just created a new folder on a subscribable store, subscribe to it. (em_copy_folders): handle nonselectable folders specially. svn path=/trunk/; revision=22973
* New functions to handle drag & drop to/from the folder tree.Jeffrey Stedfast2003-10-221-0/+489
| | | | | | | | | | | | 2003-10-21 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (drag_text_uri_list, folder_dragged_cb) (drop_uid_list, drop_folder, import_message_rfc822) (drop_message_rfc822, drop_text_uri_list, folder_receive_drop_cb): New functions to handle drag & drop to/from the folder tree. (impl_createControls): Setup drag & drop support. svn path=/trunk/; revision=22970
* compiler fixesJeffrey Stedfast2003-10-221-17/+15
| | | | svn path=/trunk/; revision=22967
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-0/+1625
| | | | svn path=/trunk/; revision=22964
* This seems to be cruft. Nuke it.Dan Winship2000-05-181-50/+0
| | | | | | * mail-component.c: This seems to be cruft. Nuke it. svn path=/trunk/; revision=3115
* More changes than a man can remember.Bertrand Guiheneuf2000-03-061-0/+2
| | | | | | The UI works now. svn path=/trunk/; revision=2074
* Make Evolution compile with the latest Bonobo changes.Arturo Espinosa2000-01-261-1/+1
| | | | | | | | Make Evolution compile with the latest Bonobo changes. Miguel. svn path=/trunk/; revision=1636
* More workArturo Espinosa2000-01-251-0/+48
svn path=/trunk/; revision=1628