aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
Commit message (Collapse)AuthorAgeFilesLines
* ** Fix for bug #498551Milan Crha2007-11-221-2/+2
| | | | | | | | | | | | 2007-11-22 Milan Crha <mcrha@redhat.com> ** Fix for bug #498551 * em-folder-tree.c: (emft_get_folder_info__got): Remove placeholder node even for store if no children found. svn path=/trunk/; revision=34563
* ** Fix for bug #495875Gilles Dartiguelongue2007-11-181-11/+14
| | | | | | right click menu reordering svn path=/trunk/; revision=34549
* Call camel_folder_info_new() instead of g_new0().Matthew Barnes2007-11-151-1/+1
| | | | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> * mail/em-folder-tree.c (em_folder_tree_get_selected_folder_info): * plugins/exchange-operations/exchange-folder.c (ex_create_folder_info): Call camel_folder_info_new() instead of g_new0(). svn path=/trunk/; revision=34538
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-245/+245
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* ** Fix for bug #343011 (restore collapse state of selected folder afterMilan Crha2007-11-051-3/+12
| | | | | | | | | | | | | | | | | | | | | 2007-11-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #343011 (restore collapse state of selected folder after start) * em-folder-tree.c: (emft_maybe_expand_row): Do not expand subtree of a node, only make it visible. * em-folder-tree-model.h: (em_folder_tree_model_get_expanded_uri), (em_folder_tree_model_set_expanded_uri): * em-folder-tree-model.c: (em_folder_tree_model_get_expanded_uri), (em_folder_tree_model_set_expanded_uri): Same as ..._get/_set_expanded, but using 'uri', instead of 'key'. * em-folder-tree-model.c: (emftm_uri_to_key): New helper function. * mail-component.c: (impl_createView): Restore collapsed state after selecting last selected folder, if necessary. svn path=/trunk/; revision=34503
* Change enum order. LAST should be the last. Regression from #446035Sankar P2007-11-051-2/+2
| | | | | | | | | | | | | | 2007-11-05 Sankar P <psankar@novell.com> * em-folder-tree.c: Change enum order. LAST should be the last. Regression from #446035 ** Fix for bug #493646 svn path=/trunk/; revision=34492
* ** Fix for bug #446035Michael Monreal2007-10-311-1/+5
| | | | | | | | | | | | 2007-10-30 Michael Monreal <mmonreal@svn.gnome.org> ** Fix for bug #446035 * em-folder-tree.c: (render_pixbuf): Use the folder-saved-search icon for vfolders. svn path=/trunk/; revision=34459
* ** Migration of theme icons to data/icons/ (bug #479257)Michael Monreal2007-10-121-3/+3
| | | | | | | | | | | | | | | | | | | | | 2007-10-12 Michael Monreal <michael.monreal@gmail.com> ** Migration of theme icons to data/icons/ (bug #479257) * art/Makefile.am: Remove references to art/$size. * configure.in: Include new data/icons/ directory. * file e-util/e-icon-factory.c: Append a private icon directory to the search path. New inbox/outbox/sent icons. * mail/em-folder-tree.c, mail/mail-send-recv.c: Change icon references. New view-calendar icons. * calendar/gui/calendar-commands.c: Change icon references. svn path=/trunk/; revision=34383
* ** Fixes bug #477045Matthew Barnes2007-10-041-1/+1
| | | | | | | | | | | | | | | | 2007-10-04 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #477045 * addressbook/gui/component/addressbook-view.c: * calendar/gui/calendar-component.c: * calendar/gui/memos-component.c: * calendar/gui/tasks-component.c: * mail/em-folder-tree.c: Use "edit-copy" and "document-properties" icons in the pop-up menu. svn path=/trunk/; revision=34354
* ** Fixes bug #477045Matthew Barnes2007-09-281-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-09-27 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #477045 * addressbook/gui/component/addressbook-component.c: * addressbook/gui/component/addressbook-view.c: * addressbook/gui/contact-editor/e-contact-editor-address.c: * addressbook/gui/contact-editor/e-contact-editor-fullname.c: * addressbook/gui/contact-editor/e-contact-editor-im.c: * addressbook/gui/widgets/e-addressbook-view.c: * addressbook/gui/widgets/eab-contact-display.c: * calendar/gui/calendar-commands.c: * calendar/gui/calendar-component.c: * calendar/gui/dialogs/cal-attachment-select-file.c: * calendar/gui/dialogs/comp-editor.c: * calendar/gui/dialogs/event-editor.c: * calendar/gui/dialogs/task-editor.c: * calendar/gui/e-cal-popup.c: * calendar/gui/e-calendar-table.c: * calendar/gui/e-calendar-view.c: * calendar/gui/e-day-view.c: * calendar/gui/e-memo-table.c: * calendar/gui/e-week-view.c: * calendar/gui/memos-component.c: * calendar/gui/memos-control.c: * calendar/gui/tasks-component.c: * calendar/gui/tasks-control.c: * composer/e-msg-composer-select-file.c: * composer/e-msg-composer.c: * mail/em-folder-tree.c: * mail/em-folder-view.c: * mail/em-popup.c: * mail/mail-component.c: * mail/mail-mt.c: * mail/mail-send-recv.c: * mail/message-list.c: * plugins/exchange-folder-permission.c: * plugins/exchange-folder.c: * plugins/groupwise-features/share-folder-common.c: * shell/e-shell-window-commands.c: * ui/evolution-addressbook.xml: * ui/evolution-calendar.xml: * ui/evolution-composer-entries.xml: * ui/evolution-editor.xml: * ui/evolution-event-editor.xml: * ui/evolution-mail-list.xml: * ui/evolution-mail-message.xml: * ui/evolution-memos.xml: * ui/evolution-message-composer.xml: * ui/evolution-subscribe.xml: * ui/evolution-task-editor.xml: * ui/evolution-tasks.xml: * ui/evolution.xml: Use standard icon names where applicable. svn path=/trunk/; revision=34322
* 2007-09-07 mcrha Fix for bug #473903Milan Crha2007-09-071-15/+9
| | | | svn path=/trunk/; revision=34192
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-1/+1
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* ** Move away from g_assert to g_return* calls Srinivasa Ragavan2007-08-311-2/+1
| | | | svn path=/trunk/; revision=34143
* 2007-08-30 Gavin Scott Fixes bug #351672Milan Crha2007-08-301-19/+1
| | | | svn path=/trunk/; revision=34135
* ** Fix for bug #467165Srinivasa Ragavan2007-08-201-1/+1
| | | | svn path=/trunk/; revision=34037
* ** Fix for bug #464312Srinivasa Ragavan2007-08-071-3/+7
| | | | svn path=/trunk/; revision=33965
* Fix from Lucky to expand newly created folderSrinivasa Ragavan2007-08-021-12/+17
| | | | svn path=/trunk/; revision=33926
* ** Fix for bug #237989Srinivasa Ragavan2007-07-291-4/+109
| | | | svn path=/trunk/; revision=33870
* ** Add support for the Magic Space Bar.Srinivasa Ragavan2007-06-171-0/+47
| | | | svn path=/trunk/; revision=33682
* Do not fetch folder-info from backend - use the available folder-treeSrinivasa Ragavan2007-06-041-4/+22
| | | | | | | instance. svn path=/trunk/; revision=33651
* Fix compilation warnings in mail folder (#437935).Matthew Barnes2007-06-031-3/+3
| | | | svn path=/trunk/; revision=33628
* Added support for flush outbox and refresh folder.Srinivasa Ragavan2007-05-111-0/+25
| | | | svn path=/trunk/; revision=33504
* Update parent rows when a child row changes. (#352713) Patch by RenéMatthew Barnes2007-04-051-0/+26
| | | | | | | | | | | 2007-04-04 Matthew Barnes <mbarnes@redhat.com> * em-folder-tree.c (emft_model_row_changed): Update parent rows when a child row changes. (#352713) Patch by René Stadler. svn path=/trunk/; revision=33381
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* Add header glib/gi18n.h to provide the missing symbol required by theHarish Krishnaswamy2006-08-081-0/+1
| | | | | | | | | | 2006-08-08 Harish Krishnaswamy <kharish@novell.com> * em-folder-tree.c: Add header glib/gi18n.h to provide the missing symbol required by the previous commit. This was an ugly crasher on the release tarball candidate. svn path=/trunk/; revision=32494
* Marking vFolder names in the folder tree localizable.Karsten Bräckelmann2006-08-081-1/+16
| | | | svn path=/trunk/; revision=32492
* Use gnome-fs-trash-empty rather than stock_delete for the Trash folderRodney Dawes2006-04-281-1/+1
| | | | | | | | | | | | | | | 2006-04-27 Rodney Dawes <dobey@novell.com> * em-folder-tree.c (render_pixbuf): Use gnome-fs-trash-empty rather than stock_delete for the Trash folder icon * em-folder-view.c (emfv_popup_items[]): Don't set an icon for Undelete (emfv_message_pixmaps[]): Don't set an icon for Undelete and set the icon for deleting a message to gnome-fs-trash-empty, not stock_delete Fixes #339626 svn path=/trunk/; revision=31920
* Committing fix for 323402 from Vincent NoelSrinivasa Ragavan2006-04-261-1/+8
| | | | svn path=/trunk/; revision=31896
* s/int/guint/g for 1-bit bitfield. Remove cruft use guint for 1-bitKjartan Maraas2006-02-081-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-09 Kjartan Maraas <kmaraas@gnome.org> * em-account-editor.h: s/int/guint/g for 1-bit bitfield. * em-composer-utils.c: (em_utils_redirect_message): Remove cruft * em-folder-tree.c: (emft_drop_target): use guint for 1-bit bitfield and rename a variable with a name clash. * em-folder-utils.c: (em_folder_utils_rename_folder): Rename var to avoid name clashes. * em-folder-view.c: guint for 1-bit bitfields. * em-folder-view.h: Same as above. * em-format-html-print.h: Again. * em-format-html.c: (efh_text_html), (efh_multipart_related): Add comments * em-format.c: (emf_multipart_alternative): Add comment about using var that is passed in rather than a local variable. * em-inline-filter.c: (emif_scan): Remove unused var. Mark code static. * em-mailer-prefs.h: guint for 1-bit bitfields. * em-migrate.c: (em_migrate_folder): mark a struct static. remove unused var * em-subscribe-editor.c: guint for 1-bit bitfield * em-utils.c: remove unused function * em-vfolder-rule.c: mark array static * importers/mail-importer.c: (decode_status): Remove unused code. Use guint for 1-bit bitfield. * mail-autofilter.c: (rule_from_message): rename a variable * mail-component.c: guint for 1-bit bitfield * mail-folder-cache.c: (update_1folder): remove unused code * mail-mt.c: mark some structs static * message-list.c: (message_list_select_uid), (ml_value_to_string), (ml_tree_value_at), (find_next_undeleted), (build_tree), (build_flat): Remove unused code and fix some format specifiers. svn path=/trunk/; revision=31448
* Return valid transport, only if the account is enabled.Parthasarathi Susarla2005-10-221-1/+1
| | | | | | | | | | | | | | | | 2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com> * mail-config.c: (mail_config_get_default_account): Return valid transport, only if the account is enabled. 2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com> * em-composer-utils.c: (create_new_composer): If the account corresponding to the fromuri is not enabled. Then load the preferred account from the composer. ---------------------------------------------------------------------- svn path=/trunk/; revision=30555
* Fixes #208647S.Antony Vincent Pandian2005-09-261-1/+12
| | | | | | | | | | | | 2005-09-26 S.Antony Vincent Pandian <santony@gmail.com> Fixes #208647 * em-folder-tree.c : Have added a menu item Empty Trash in the folder tree's context menu and also added its callback. svn path=/trunk/; revision=30373
* Added enum and the code to change the icon for sent items folder. FixesSankar P2005-09-201-0/+5
| | | | | | | | | | 2005-09-15 Sankar P <psankar@novell.com> * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): * em-folder-tree.c (render_pixbuf): Added enum and the code to change the icon for sent items folder. Fixes #257321 svn path=/trunk/; revision=30365
* ** See #312715.Not Zed2005-08-101-81/+8
| | | | | | | | | | | | | | | | | | | 2005-08-09 Not Zed <NotZed@Ximian.com> ** See #312715. * em-folder-tree.c (emft_drop_folder_rec): removed. (emft_drop_folder): call em_folder_utils_copy_folders to perform the operation rather than: doing it sync when it shouldn't be, and 2; copying code redundantly. * em-folder-utils.c (em_folder_utils_move_folder): remove this redundant api. (em_folder_utils_copy_folder): add delete flag. (em_folder_utils_copy_folders): export this function. fix strange argument order. svn path=/trunk/; revision=30066
* Change instances of "vfolder" that appear in the UI to use the termRodney Dawes2005-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2005-08-07 Rodney Dawes <dobey@novell.com> * em-folder-browser.c (emfb_search_items): * em-folder-tree-model.c (sort_cb, em_folder_tree_model_load_state): * em-folder-tree.c (emft_drop_target): * em-folder-view.c (emfv_popup_items, emfv_uri_popups): * em-utils.c: * em-vfolder-editor.c (em_vfolder_editor_new): * em-vfolder-rule.c (em_vfolder_editor_sourcelist_new): * mail-dialogs.glade: * mail-vfolder.c (vfolder_setup_desc, vfolder_setup_do): (vfolder_adduri_desc, vfolder_load_storage, vfolder_edit): (vfolder_edit_rule, vfolder_gui_add_rule): * mail.error.xml: Change instances of "vfolder" that appear in the UI to use the term "Search Folder" instead Update some comments to use the term "Search Folder" instead of vfolder svn path=/trunk/; revision=30024
* if we get a null default, then set "" on the entry. (emae_option_entry):Not Zed2005-07-211-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-21 Not Zed <NotZed@Ximian.com> * em-account-editor.c (emae_option_entry): if we get a null default, then set "" on the entry. (emae_option_entry): set the default value on the url if it doesn't exist already. 2005-07-20 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (refresh_folders_desc, refresh_folders_get) (refresh_folders_got, refresh_folders_free, get_folders) (receive_update_got_folderinfo, receive_update_got_store): refresh all the folders manually and directly. * mail-folder-cache.c (setup_folder): propagate even -1 unread counts, they get ignored later. * em-composer-utils.c (emu_handle_receipt_message) (em_utils_handle_receipt): use getmessagex too, so we can always clear any error. * em-folder-view.c (emfv_message_selected_timeout) (emfv_list_done_message_selected): use getmessagex and do something meaninful with the error. * mail-ops.c (mail_get_messagex): added new get message which returns an exception. 2005-07-19 Not Zed <NotZed@Ximian.com> * mail-tools.c (mail_tool_uri_to_folder): dont get the service connected, it will connect if it needs to. * mail-ops.c (get_folderinfo_get): * em-folder-utils.c (emft_copy_folders__copy) (emfu_delete_folders): * em-folder-tree.c (emft_get_folder_info__get): Always request subscribed folders, if the backend doesn't implement it it will ignore it. 2005-07-13 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (mail_autoreceive_init, auto_online): listen to session online events, and if we are online, trigger an auto-receive of all auto-check accounts. 2005-07-11 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (auto_account_commit): force an update immediately if we're setting up the timeout to start with. * em-folder-tree-model.c (em_folder_tree_model_set_unread_count): noop if the unread count < 0. (em_folder_tree_model_set_folder_info): only set the unread count if we actually have one. * em-folder-tree.c (emft_tree_row_expanded): get the folder list 'fast'. * mail-ops.c (get_folderinfo_get): get the folder list 'fast'. svn path=/trunk/; revision=29822
* calling the wrong api to move a folder. Infact it was copying for move.Srinivasa Ragavan2005-07-201-1/+1
| | | | | | | | | 2005-07-19 Srinivasa Ragavan <sragavan@novell.com> * em-folder-tree.c: (emft_popup_move) calling the wrong api to move a folder. Infact it was copying for move. svn path=/trunk/; revision=29808
* fix rodney's name choices. fix multiple-inclusion. fix forward references.Not Zed2005-05-191-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-19 Not Zed <NotZed@Ximian.com> * em-folder-utils.h: fix rodney's name choices. fix multiple-inclusion. fix forward references. fix all callers. add many fixme's for the busted api's. * em-format-quote.c (emfq_format_clone): use pseudo mime type to find message formatter. * em-format-html-display.c (efhd_format_message): remove, it didn't do anything. * em-format-html.c (efh_format_message): make this a handler callback. * em-format.c (emf_message_rfc822): make this use the pseudo mime-type x-evolution/message/rfc822 instead of the hardcoded format_message callback. * em-format-html-display.c (efhd_message_prefix): make this use a pseudo-mime-type handler rather than hard-coded, so it can be overridden by a plugin. svn path=/trunk/; revision=29382
* move e-error into e-util/Not Zed2005-05-161-2/+1
| | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * move e-error into e-util/ svn path=/trunk/; revision=29366
* Add profiler so that it gets disted properlyRodney Dawes2005-05-141-714/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-13 Rodney Dawes <dobey@novell.com> * plugins/Makefile.am (DIST_SUBDIRS): Add profiler so that it gets disted properly 2005-05-13 Rodney Dawes <dobey@novell.com> * Makefile.am: Add new em-folder-utils.[ch] abstraction * em-folder-browser.c: Update for new menu layout Add new methods to handle the actions that were previously only available from the context menu when right-clicking on a folder * em-folder-selector.c (emfs_response): Just call emfu_folder_create if the user wants to create a new folder in the selector dialog (em_folder_selector_get_selected_path): Clean up the code to fix a couple potential crashes * em-folder-tree.[ch]: Add methods to get pointers to a CamelFolder or CamelFolderInfo object for the selected item in the tree Add a method to get a pointer to an EMFolderTreeModelStoreInfo object for the selected store in the tree Move folder operations out into em-folder-utils.[ch] so that they are abstracted from the tree and can be used by methods other than the internal context menu * em-folder-utils.[ch]: Move the folder operations code to here * em-folder-view.c: Update for the new menu layout Fix Mark as Read/Unread in the context menu to only show up in the list * mail-component.c (create_item): Just call emfu_folder_create here when the user requests to create a new folder from the New toolbar item 2005-05-13 Rodney Dawes <dobey@novell.com> * org-gnome-mailing-list-actions.xml: Update for the new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * org-gnome-plugin-manager.xml: Update for new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * org-gnome-save-attachments.xml: Update for new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * e-shell-window.c (setup_widgets): Update for the new menu layout by putting the "component" switching items under the "Tools" menu 2005-05-13 Rodney Dawes <dobey@novell.com> * *.xml: Update to the new menu layout 2005-05-13 Rodney Dawes <dobey@novell.com> * e-filter-bar.[ch]: Update for the new menu layout svn path=/trunk/; revision=29354
* ** See bug #273752Not Zed2005-04-131-1/+1
| | | | | | | | | | | 2005-04-12 Not Zed <NotZed@Ximian.com> ** See bug #273752 * em-folder-tree.c (emft_drop_folder_rec): handle NULL "parent_name" - dropping to store node. svn path=/trunk/; revision=29206
* ** See bug #72518Not Zed2005-04-011-2/+3
| | | | | | | | | | | 2005-03-31 Not Zed <NotZed@Ximian.com> ** See bug #72518 * em-folder-tree.c (emft_popup_delete_folder): prompt for vfolder case differently. svn path=/trunk/; revision=29143
* **fixes bug #73139 change the shared-folder icon names to the names inVivek Jain2005-03-101-2/+3
| | | | | | | | | | 2005-03-10 Vivek Jain <jvivek@novell.com> **fixes bug #73139 * em-folder-tree.c (render_pixbuf):change the shared-folder icon names to the names in gnome-icon-theme svn path=/trunk/; revision=28994
* ** See bug #72209Not Zed2005-02-081-5/+48
| | | | | | | | | | | | | | | | | | | 2005-02-07 Not Zed <NotZed@Ximian.com> ** See bug #72209 * em-folder-tree.c (emft_popup_copy_folder_exclude): implement one for copying/moving folders. * em-folder-selection.c (em_select_folder): add an excluded func argument, fix callers. * em-folder-tree.c (em_folder_tree_set_exclude_func): allow custom callback for exclusion. (emft_select_func): handle the custom excluded callback. svn path=/trunk/; revision=28745
* use the type hint to sort for inbox, not the name.Not Zed2005-02-011-15/+20
| | | | | | | | | | | | | | | | | | | | | 2005-02-01 Not Zed <NotZed@Ximian.com> * em-folder-tree-model.c (sort_cb): use the type hint to sort for inbox, not the name. (emft_is_special_local_folder): removed. (em_folder_tree_model_set_folder_info): special-case the local-store case, handle translated names and the name hints. * em-folder-tree.c (render_pixbuf): use the camel folderinfo folder type to determine the icon, don't hardcode based on name. ** See bug #71310 * em-composer-prefs.c (sig_add_script_response): force a save of the signatures as soon as they change. Also save the script name if we were just editing it, not just the signature name. svn path=/trunk/; revision=28653
* Fixes #71774 we should check whether the 'new_name' is a NULL pointer toMengjie Yu2005-01-271-4/+4
| | | | | | | | | | | 2005-01-26 Mengjie Yu <meng-jie.yu@sun.com> Fixes #71774 * em-folder-tree.c: (emft_popup_rename_folder): we should check whether the 'new_name' is a NULL pointer to avoid Evolution crashes. svn path=/trunk/; revision=28574
* Added a description function for copying folders (so we don't get aJeffrey Stedfast2005-01-211-1/+9
| | | | | | | | | | | | | 2005-01-20 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (emft_copy_folders__desc): Added a description function for copying folders (so we don't get a "Working 0x..." status message). * mail-mt.c (do_op_status): Always g_free(what) since we always strdup it. svn path=/trunk/; revision=28467
* ** See bug #70768.Not Zed2005-01-181-1/+5
| | | | | | | | | | | | | | | 2005-01-18 Not Zed <NotZed@Ximian.com> ** See bug #70768. * em-folder-browser.c (emfb_mark_all_read): get the uid list from the message-list (view) rather than folder (model). * message-list.c (message_list_foreach): removed, no longer used. (message_list_get_uids): new function replacing ml_foreach, get visible uids's of messages. svn path=/trunk/; revision=28425
* Added conditions to check for shared folders to display different icon ifVivek Jain2005-01-111-3/+11
| | | | | | | | | 2005-01-11 Vivek Jain <jvivek@novell.com> * em-folder-tree.c (render_pixbuf): Added conditions to check for shared folders to display different icon if it is a shard folder. svn path=/trunk/; revision=28349
* add atk name for the treeview.Mengjie Yu2005-01-041-0/+4
| | | | | | | | | 2004-12-28 Mengjie Yu <meng-jie.yu@sun.com> * em-folder-tree.c: (em_folder_tree_new_with_model): add atk name for the treeview. svn path=/trunk/; revision=28230
* moved to after emae_authtype_changed to fix warning.Not Zed2004-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 2004-12-22 Not Zed <NotZed@Ximian.com> * em-account-editor.c (emae_needs_auth): moved to after emae_authtype_changed to fix warning. 2004-12-17 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_attachment_popup): * message-list.c (ml_tree_drag_data_received): * em-folder-view.c (emfv_popup, emfv_format_popup_event): * em-folder-tree.c (tree_drag_data_received): api changes. (emft_popup): * em-popup.c (emp_standard_menu_factory) (emp_standard_menu_factory): api changes. svn path=/trunk/; revision=28180
* Use stock_new-dir instead of stock_folder for "New Folder" creationRodney Dawes2004-12-091-1/+1
| | | | | | | | | | 2004-12-08 Rodney Dawes <dobey@novell.com> * em-folder-tree.c: * mail-component.c (impl__get_userCreatableItems): Use stock_new-dir instead of stock_folder for "New Folder" creation svn path=/trunk/; revision=28089
* added hook docs, and cleaned up some of the hook point names.Not Zed2004-10-281-2/+8
| | | | | | | | | | | | | | | | | | | | 2004-10-28 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (real_flush_updates): * em-message-browser.c (em_message_browser_new): * em-mailer-prefs.c (em_mailer_prefs_construct): * em-format-html-display.c (efhd_attachment_popup): * em-folder-view.c (emfv_popup, emfv_list_done_message_selected) (emfv_format_popup_event): * em-folder-tree.c (emft_popup): * em-folder-properties.c (emfp_dialog_got_folder): * em-folder-browser.c (em_folder_browser_new): * em-composer-utils.c (em_utils_reply_to_message): * em-composer-prefs.c (em_composer_prefs_construct): * em-account-editor.c (em_account_editor_construct): added hook docs, and cleaned up some of the hook point names. svn path=/trunk/; revision=27749
* Give the Rename item a different path than the Delete item.Jeffrey Stedfast2004-10-231-1/+1
| | | | | | | | | 2004-10-22 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c: Give the Rename item a different path than the Delete item. svn path=/trunk/; revision=27702
* convert to org.gnome hook namesJP Rosevear2004-10-201-2/+2
| | | | | | | | | | | | | 2004-10-19 JP Rosevear <jpr@novell.com> * em-account-editor.c, em-composer-prefs.c, em-config.c, em-event.c, em-folder-browser.c, em-folder-properties.c, em-folder-tree.c, em-folder-view.c, em-format-hook.c, em-format-html-display.c, em-mailer-prefs.c, em-menu.c, em-message-browser.c, em-popup.c, message-list.c: convert to org.gnome hook names svn path=/trunk/; revision=27635
* implement popup_menu so that popup menu can be shown with Shift+F10 onHarry Lu2004-10-081-28/+53
| | | | | | | | | | | | 2004-10-08 Harry Lu <harry.lu@sun.com> * em-folder-tree.c: (em_folder_tree_class_init), (real_popup_menu), (emft_popup_menu), (emft_tree_button_press): implement popup_menu so that popup menu can be shown with Shift+F10 on folder tree. * em-folder-view.c: (emfv_popup), (emfv_list_key_press): same as above. svn path=/trunk/; revision=27507
* put back in the attachment attaching code. Doesn't work for s/mime andNot Zed2004-10-071-12/+10
| | | | | | | | | | | | | | | | | | | | | 2004-09-28 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (forward_non_attached): put back in the attachment attaching code. Doesn't work for s/mime and pgp, but why bother arguing about it. 2004-10-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_get_folder_info__desc): fix busted cast. * *.c: e-popup api changes. 2004-10-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_tree_button_press): remove some debug that made it in accidentally. svn path=/trunk/; revision=27487
* remove old debug which no longer works.Not Zed2004-10-061-6/+8
| | | | | | | | | | | | | | | | 2004-10-05 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_popup_copy_folder_selected): remove old debug which no longer works. ** See bug #66991 (related to #64377). * em-folder-tree.c (em_folder_tree_set_selected): if we get a NULL uri or "", just clear the list. (emft_tree_button_press): select the new path as well as move the cursor there, otherwise emft_tree_user_event clears the selection. svn path=/trunk/; revision=27469
* describe the get-folder process. This also makes it cancellable.Not Zed2004-09-241-1/+13
| | | | | | | | | | | | | | 2004-09-23 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_get_folder_info__desc): describe the get-folder process. This also makes it cancellable. ** See bug #64972. * em-composer-utils.c (em_utils_reply_to_message): pass the folder to guess_account. svn path=/trunk/; revision=27354
* Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-201-44/+64
| | | | svn path=/trunk/; revision=27300
* Set the store and full_name info on the dialog.Jeffrey Stedfast2004-08-311-26/+19
| | | | | | | | | | | | 2004-08-30 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (emft_popup_delete_folder): Set the store and full_name info on the dialog. (emft_popup_delete_response): Use the requisite data stored on the dialog object rather than examining the selection again. Fixes bug #62665. svn path=/trunk/; revision=27095
* ** See bug #64377.Not Zed2004-08-311-33/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-08-30 Not Zed <NotZed@Ximian.com> ** See bug #64377. * em-folder-selector.c (emfs_response): only set the uri if we have one to set. * em-folder-tree.c (em_folder_tree_finalize): Removed cose using selected_path and selected_uri strings. (emft_popup_new_folder): " (emft_popup_copy_folder_selected): " (emft_tree_selection_changed): (emft_tree_row_activated): ", free paths after use. * em-folder-selector.c (emfs_create_name_changed): free get_selected_uri return. (emfs_create_name_activate): " (em_folder_selector_get_selected_path): handle api change, store the selected_path too. * em-folder-tree.c (em_folder_tree_get_selected_uri): de-constify,and get the selection directly from the tree. (em_folder_tree_get_selected_path): same. svn path=/trunk/; revision=27092
* Fix for bug #63177Jeffrey Stedfast2004-08-261-4/+5
| | | | | | | | | | | | | | | 2004-08-24 Jeffrey Stedfast <fejj@novell.com> Fix for bug #63177 * em-folder-tree.c (emft_drop_async_drop): Check full_name == NULL rather than full_name[0] since store's have NULL full_names, not empty string (like they used to). (emft_drop_folder): Same. (tree_drag_data_received): Don't abort the drop if the user dropped on a store, this is allowed (depending on the store). svn path=/trunk/; revision=27035
* store the select-uri on the view not in the thread message.Not Zed2004-08-241-154/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-08-23 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): store the select-uri on the view not in the thread message. (emft_get_folder_info__free): (emft_get_folder_info__got): select_uri removed. (em_folder_tree_set_selected_list): don't set each selected separately, do it as a list. (emft_maybe_expand_row): if this is a selected row, select it too. (emft_get_folder_info__got): do no pending set selection stuff here. (em_folder_tree_set_selected): just call set_selected_list with one item. (emft_expand_node): if this is a selected row, select it too. (emft_get_folder_info__got): no longer need to track lost folders. (emft_tree_row_activated): clear the pending select list. (emft_tree_selection_changed): and here too. (em_folder_tree_get_selected_uris): get the lost folders from the un-applied selected ones now. also fixes a list appending error. (emft_tree_user_event): find out when the user hits a key or mouse button to override any pending single-user select and don't override the cursor setting either. (emft_tree_row_expanded): set the 'load subdirs' false before we load it, so we don't try to load it again if its still being loaded. (emft_get_folder_info__got): don't check the loaded flag here, it should be set by the callee, also check the exception return. svn path=/trunk/; revision=27002
* setup exclusion for vfolder sources, noselect folders. Bug #60794.Not Zed2004-06-291-1/+0
| | | | | | | | | 2004-06-29 Not Zed <NotZed@Ximian.com> * em-vfolder-rule.c (source_add): setup exclusion for vfolder sources, noselect folders. Bug #60794. svn path=/trunk/; revision=26544
* Don't prepend the path string with a '/'.Jeffrey Stedfast2004-06-251-8/+7
| | | | | | | | | | | | | 2004-06-23 Jeffrey Stedfast <fejj@novell.com> * em-folder-selector.c (em_folder_selector_get_selected_path): Don't prepend the path string with a '/'. * em-folder-tree.c (em_folder_tree_create_folder): This takes a full_name so update the argument to make that clear. (emft_create_folder): Same and also don't strip a leading '/' svn path=/trunk/; revision=26513
* set search column. #60152.Not Zed2004-06-251-0/+2
| | | | | | | | 2004-06-25 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (folder_tree_new): set search column. #60152. svn path=/trunk/; revision=26507
* As toshok discovered, gtk_tree_model_get() strdup's string arguments,Jeffrey Stedfast2004-06-231-90/+124
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-22 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (emft_maybe_expand_row): As toshok discovered, gtk_tree_model_get() strdup's string arguments, *sigh*, so we need to free them. (tree_drag_data_delete): Same. (tree_drag_data_get): Same. (tree_drag_data_received): Same. (emft_drop_target): Same (em_folder_tree_get_selected_uris): Same. (get_selected_uris_path_iterate): Same. (emft_update_model_expanded_state): Same. (emft_tree_row_expanded): Same. (emft_tree_row_activated): Same. (emft_popup_delete_response): Same. (emft_popup_delete_folder): Same. (emft_popup_rename_folder): Same. (emft_popup_properties): Same. (emft_tree_button_press): Same. (emft_tree_selection_changed): Same. svn path=/trunk/; revision=26457
* gtk_tree_model_get on a string field allocates the return value. freeChris Toshok2004-06-231-0/+1
| | | | | | | | | 2004-06-22 Chris Toshok <toshok@ximian.com> * em-folder-tree.c (render_pixbuf): gtk_tree_model_get on a string field allocates the return value. free path. svn path=/trunk/; revision=26456
* gtk_tree_model_get on a string field allocates the return value. freeChris Toshok2004-06-221-0/+1
| | | | | | | | | 2004-06-21 Chris Toshok <toshok@ximian.com> * em-folder-tree.c (render_display_name): gtk_tree_model_get on a string field allocates the return value. free name. svn path=/trunk/; revision=26448
* ** See #59885.Not Zed2004-06-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-17 Not Zed <NotZed@Ximian.com> ** See #59885. ** Moved all of the mail specific filtering stuff from filter/* to here. Renamed appropriately into em* space, etc. * em-filter-folder-element.c (emff_copy_value): implement for folders. * em-vfolder-rule.c (get_widget): read the vfolder glade from mail-config.glade. * mail-config.glade: moved the vfolder source selector here. * em-search-context.c: new mail search specific rule context. * mail-component.c (setup_search_context): use the new em_search_context. * vfolder-rule.c (validate): change error to mail context. * filter-folder.c (validate): change error to mail context. * Makefile.am (em-filter-i18n.h): added rule for i18n of mail filter type stuff. (libevolution_mail_la_SOURCES): added in the filter and vfolder rule stuff specific to mail. ** See #59885. * em-format-html-quote.[ch]: remove and remove from build, not used. * Makefile.am (libevolution_mail_la_LIBADD): add libeabutil and evolutionsmime. * mail-component-factory.c (factory): there is no mail_config anymore. svn path=/trunk/; revision=26380
* frombase is simply the select_path, since selected_path is now just theJeffrey Stedfast2004-06-161-4/+4
| | | | | | | | | | 2004-06-15 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (emft_popup_copy_folder_selected): frombase is simply the select_path, since selected_path is now just the full_name rather than the path. Fixes bug #60075. svn path=/trunk/; revision=26357
* don't check rule->source, its irrelevent to vfolder sources, and clean upNot Zed2004-06-141-0/+1
| | | | | | | | | | | | | 2004-06-14 Not Zed <NotZed@Ximian.com> * mail-vfolder.c (rule_changed): don't check rule->source, its irrelevent to vfolder sources, and clean up the logic a bit. #59158. * em-folder-tree.c (emft_popup_new_folder_response): destroy the create dialogue if we're firing up the vfolder creation window. svn path=/trunk/; revision=26332
* Free any old select_uri string we may have. (emft_tree_row_expanded):Jeffrey Stedfast2004-06-121-17/+19
| | | | | | | | | | | | | | | | 2004-06-11 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): Free any old select_uri string we may have. (emft_tree_row_expanded): Remove the gross hack that was here. (emft_get_folder_info__got): Check for priv->select_uri and try selecting it (if we can't select it yet, it'll just be re-queued for later). (emft_tree_row_activated): Clear the select_uri if set, the user's selection overrules any auto-selection. (emft_tree_selection_changed): Same. svn path=/trunk/; revision=26318
* rearrange the setting up of the target flags, stores can have a null path.Not Zed2004-06-111-13/+18
| | | | | | | | | | | | | | | | 2004-06-11 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_tree_button_press): rearrange the setting up of the target flags, stores can have a null path. * em-folder-selector.c (emfs_create_name_changed): use get_selected_uri rather than path. a valid uri may have a null path now. (emfs_create_name_activate): and here too. (em_folder_selector_get_selected_path): check the uri is null for a selected path, and then handle a null path. svn path=/trunk/; revision=26307
* revert previous change. Stupid emftm.Not Zed2004-06-111-1/+1
| | | | | | | | | 2004-06-11 Not Zed <NotZed@Ximian.com> * em-folder-tree-model.c (em_folder_tree_model_add_store): revert previous change. Stupid emftm. svn path=/trunk/; revision=26306
* Fixes bug #58825. Ugh. Really Gross Hack (tm).Jeffrey Stedfast2004-06-111-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-10 Jeffrey Stedfast <fejj@novell.com> Fixes bug #58825. Ugh. Really Gross Hack (tm). * em-folder-tree.c (emft_tree_row_expanded): If the store that we are expanding matches the uri that we've been requested to select (e.g. from before the store was added to the tree), then give the uri to the get_folder_info_op. (em_folder_tree_set_selected): If the store for the uri isn't in the tree yet, save the uri for later. * mail-component.c (folder_selected_cb): Set the selected state of the folder-tree and save it. (impl_createControls): Restore the selected state on the folder-tree. * em-folder-tree-model.c (em_folder_tree_model_set_selected): New function to set the selected-uri saved state. (em_folder_tree_model_get_selected): New function to get the selected uri saved state. (em_folder_tree_model_save_state): Renamed. * em-folder-tree.c (emft_update_model_expanded_state): Don't let path be NULL if the node is a store node (path == NULL for any other case is a bug). (emft_maybe_expand_row): Same. svn path=/trunk/; revision=26294
* Scroll to the selected folder if needed. Fixes bug #59609.Jeffrey Stedfast2004-06-091-1/+2
| | | | | | | | | 2004-06-08 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (em_folder_tree_set_selected): Scroll to the selected folder if needed. Fixes bug #59609. svn path=/trunk/; revision=26262
* Only change the cursor if the currently selected folder is a subfolder ofJeffrey Stedfast2004-06-091-5/+16
| | | | | | | | | | | | | 2004-06-08 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (emft_tree_row_collapsed): Only change the cursor if the currently selected folder is a subfolder of the folder collapsed. Fixes bug #59801 without breaking bug #57665. (emft_tree_test_collapse_row): Renamed from emft_tree_collapse_row() to match the new signal we are connected to. svn path=/trunk/; revision=26258
* Shuffle usage of trailing "..." in menus.Christian Neumair2004-06-051-4/+4
| | | | svn path=/trunk/; revision=26227
* Disable debug here too - all this code has been working fine.Jeffrey Stedfast2004-05-291-2/+2
| | | | | | | | | | | | | | | | | | | | | 2004-05-28 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (d): Disable debug here too - all this code has been working fine. * em-folder-selector.c (d): Disable debug spew here too (not that this debug was ever seen since it never hit those conditions). * mail-folder-cache.c (d): Disable debug here too. * em-folder-tree-model.c: Disable debug spewage that we don't need anymore. The amount of debug spewage on the console is getting to be too much to find anything. * em-folder-tree.c (emft_expand_node): Use p+1 as the full_name rather than p. Fixes bug #59187. svn path=/trunk/; revision=26125
* Instead of removing the "Loading..." row for toplevel folder nodes onJeffrey Stedfast2004-05-281-1/+12
| | | | | | | | | | | | 2004-05-27 Jeffrey Stedfast <fejj@novell.com> * em-folder-tree.c (emft_get_folder_info__got): Instead of removing the "Loading..." row for toplevel folder nodes on failure (which indicates a failure conenct to the server, most likely), collapse the store node so that if the user expands the store node, it will automagically try connecting again. Fixes bug #57493. svn path=/trunk/; revision=26115
* set the default selection to inbox.Not Zed2004-05-261-87/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-26 Not Zed <NotZed@Ximian.com> * importers/evolution-mbox-importer.c (create_control_fn): set the default selection to inbox. * importers/evolution-outlook-importer.c (folder_selected) (create_control_fn): copied from mbox importer. fixes a crash & lets you choose the target folder. 2004-05-25 Not Zed <NotZed@Ximian.com> * mail-component.c (mc_add_local_store_done): removed, now redundant. * em-folder-tree.c (em_folder_tree_set_selected): fix for path changes. * em-folder-tree-model.c (em_folder_tree_model_set_unread_count): change to use full name rather than path name. * em-folder-tree-model.h: renamed path_hash to full_hash. * em-folder-tree-model.c (folder_subscribed): dont use g_path_get_dirname here, it is os dependent, we want / always. (full_hash_free): rename from path_hash free. svn path=/trunk/; revision=26090
* use set_cursor instead of scroll_to_row. See #58383.Not Zed2004-05-241-21/+21
| | | | | | | | | | | | | | | 2004-05-24 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): use set_cursor instead of scroll_to_row. See #58383. (get_selected_uris_iterate): removed. (em_folder_tree_get_selected_uris): use an interative call based on gtk_tree_selection_get_selected_rows rather than selected_foreach, as the gtk+ docs suggest. was trying to fix a bug but it seems gtktreeselection bug (shift-select rows using keyboard only) svn path=/trunk/; revision=26058
* add marshaller for p_ppppp call.Not Zed2004-05-211-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-21 Not Zed <NotZed@Ximian.com> * mail-mt.c (do_call): add marshaller for p_ppppp call. * mail-session.c (get_password): fix for camel api changes. (forget_password): same. ** See #58376. * message-list.c (mail_regen_list): do some timeout foo so we don't keep doing list regnerations if we're getting called too often. God knows what this will break. (message_list_set_selected): removede bug printf. (regen_list_free): move the message-list poking stuff into regen_list_regened. (message_list_set_folder): call mail_regen_cancel to cancel any regen stuff. (mail_regen_cancel): cancel/clear outstanding regenerations. (message_list_destroy): do it here too. (message_list_select_uid): also set the pending select uid if we have a timeout pending. * mail-component.c (impl_createControls): set the defualt parent to the main folderview as soon as its created. * em-folder-tree.c (emft_popup_copy_folder_selected): use get_toplevel rather than get_ancestor. seems the more reliable one. also we're always parented so we shoudl always find a toplevel window. (em_folder_tree_create_folder): same. (emft_popup_delete_response): set error parent. (emft_popup_delete_folder, emft_popup_rename_folder) (emft_popup_rename_folder, emft_popup_rename_folder): svn path=/trunk/; revision=26030
* don't emit new mail if its any vfolder, not just vtrash folder. #56350.Not Zed2004-05-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-18 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (folder_changed): don't emit new mail if its any vfolder, not just vtrash folder. #56350. * em-folder-view.c (emfv_list_done_message_selected): run enable_menu's to make sure we're up to date. #58352. ** crappy hacks for #58385. * em-folder-selection-button.c (em_folder_selection_button_clicked): leave Ok button for this selection. * em-folder-selection.c (em_select_folder): added oklabel here too. * em-folder-selector.c (em_folder_selector_new) (em_folder_selector_construct, em_folder_selector_create_new): Added oklabel- text for ok label. (em_folder_selector_create_new): Set the ok label to Create. * em-message-browser.c (emmb_set_message): don't mark message seen if user has disabled auto-mark seen feature. #58629. * em-format.c (em_format_part): if we have no content-type header, then we get no mime-type set, so assume text/plain. #58470. svn path=/trunk/; revision=25951
* ** Bug #6556.Not Zed2004-05-171-164/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-17 Not Zed <NotZed@Ximian.com> ** Bug #6556. * message-list.c (ml_drop_async_desc, ml_drop_async_drop) (ml_drop_async_done, ml_drop_async_free, ml_drag_data_action) (ml_drop_popup_copy, ml_drop_popup_move, ml_drop_popup_cancel) (ml_tree_drag_data_received): implement async drop operations and the ask drop option menu. 2004-05-14 Not Zed <NotZed@Ximian.com> ** Bug #6556. * message-list.c (ml_selection_received_uidlist): removed, not needed anymore. (ml_selection_received): call get_uidlist to paste the selection. (ml_tree_drag_data_received): same here. * em-folder-tree.c (emft_drop_uid_list): removed, not needed because of below change. * em-utils.c (em_utils_selection_get_uidlist): actually do the copy now, don't just decode the data. * em-folder-tree.c (tree_drag_data_received): just copy the selection data data itself, dont decode yet. (emft_import_message_rfc822): removed, not needed, use em utils stuff instead. (emft_drop_message_rfc822): same. (emft_drop_text_uri_list): same. (emft_drop_async_free): simply free stuff. (emft_drop_async_drop): call em_utils stuff where they exist to do the drop. * message-list.c (ml_tree_drag_data_get): send x-mailbox instead of message/rfc822 for the mailbox. (ml_tree_drag_data_received): handle drop of x-mailbox differently to message/rfc822. (ml_tree_drag_motion): implement so proper options are setup whilst dragging. (message_list_construct): seutp the drag src/dest types for changes typs and with ASK action. * em-utils.c (em_utils_read_messages_from_stream): dont unref the stream when we get it. (em_utils_selection_get_mailbox): add an argument to scan from or not, for message/rfc822 vs x-mailbox drops. (em_utils_read_messages_from_stream): Same. * em-folder-tree.c (tree_drag_motion): default to move properly. * message-list.c (ml_selection_received_uidlist): take a move flag. (ml_tree_drag_data_received): handle move action. * em-folder-tree.c (em_folder_tree_new_with_model): got sick of this bloody warning. * em-format.c (default_headers[]): just remove x-mailer from the header list, if it isn't on by default. This is the default list. (em_format_default_headers): loop through everything. svn path=/trunk/; revision=25915
* Fix for bug #57152.Jeffrey Stedfast2004-05-081-1/+6
| | | | | | | | | | | | | | | | | | | | 2004-05-07 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #57152. * em-folder-tree.c (emft_get_folder_info__got): If we queried for a recursive folder-info listing, then pass fully_loaded as TRUE to set_folder_info(). (emft_get_folder_info__got): If we find that a folder doesn't have children, set the expanded state to FALSE. * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): Now takes a "fully_loaded" argument to hint to set_folder_info whether or not folder-info's without child nodes can possibly have children (eg. if fully_loaded is set and fi->child is NULL, then 'load' will be FALSE no matter what fi->flags contains). svn path=/trunk/; revision=25826
* Check that the folder is selectable using the new flags argument.Jeffrey Stedfast2004-05-071-11/+14
| | | | | | | | | | | | | | | | 2004-05-06 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (folder_selected_cb): Check that the folder is selectable using the new flags argument. * em-folder-selector.c (folder_selected_cb): Updated for below changes. * em-folder-tree.c (emft_tree_selection_changed): Updated to pass a flags argument to the folder_selected signal. (emft_tree_row_activated): Same. svn path=/trunk/; revision=25816
* Select the row that was just collapsed. Fixes bug #57665.Jeffrey Stedfast2004-05-061-0/+2
| | | | | | | | | 2004-05-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_row_collapsed): Select the row that was just collapsed. Fixes bug #57665. svn path=/trunk/; revision=25811
* ** See bug #57720.Not Zed2004-05-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-05 Not Zed <NotZed@Ximian.com> ** See bug #57720. * em-folder-browser.c (emfb_create_view_menus): removed some stuff done in create_view_instance in the superclass. * em-folder-view.c (emfv_create_view_instance): moved here from em-folder-browser, setup the view instance for the folder. (emfv_set_folder): if the folder is set, create the view instance. * em-folder-browser.c: moved the galview instance and menu pointers to EMFolderView, since they're basically meta-data on the messagelist @ to fix issues. * em-folder-view.c (em_folder_view_open_selected): copy over the threaded list value when the message browser is brought up. ** some clean up * evolution-mail.schemas.in.in: removed xmailer_mask stuff. * em-migrate.c (mail_display_map[]): Removed xmailer_mask stuff. * em-folder-view.c (emfv_setting_notify): removed xmailer_mask stuff. * em-format-html.c (em_format_html_set_xmailer_mask): removed. This isn't used anymore. ** Fixes the double-draw on separate mail view. * message-list.c (on_cursor_activated_cmd): noop if the cursor and uid match for all cases (clearing uid). (on_selection_changed_cmd): noop if the cursor and new selection hasn't changed & fix a memleak. svn path=/trunk/; revision=25806
* Fix for bug #55303, but ideally there would be a nicer way of doing this -Jeffrey Stedfast2004-05-051-4/+6
| | | | | | | | | | | | | | | | | | | | | 2004-05-04 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55303, but ideally there would be a nicer way of doing this - likely with some added ETree API but that's not likely to happen anytime soon. * em-folder-browser.c (scroll_idle_cb): Recall the saved scrollbar position state and set it, then reconnect to the message_list_scrolled signal. (emfb_list_built): Calculate a default scrollbar position for scroll_idle_cb to use if there's no saved state. (emfb_set_folder): Disconnect from the message_list_scrolled signal and the idle_scroll_id. (emfb_list_scrolled): Save the scrollbar position state. (emfb_destroy): Disconnect from list_scrolled_id and idle_scroll_id. svn path=/trunk/; revision=25794
* If the row the cursor is hovering over has children and is not expandedJeffrey Stedfast2004-05-011-0/+68
| | | | | | | | | | | | | | 2004-04-30 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_motion): If the row the cursor is hovering over has children and is not expanded already, setup a timer to auto-expand it if the user hovers there long enough. (tree_autoexpand): Callback to expand the row. (tree_drag_leave): Disconnect the timer. (tree_drag_drop): Same. (em_folder_tree_destroy): Same. svn path=/trunk/; revision=25718
* ** Changed error messages to use EError.Not Zed2004-04-281-69/+39
| | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to use EError. svn path=/trunk/; revision=25653
* ** See bug #57659.Not Zed2004-04-271-1/+1
| | | | | | | | | | 2004-04-27 Not Zed <NotZed@Ximian.com> ** See bug #57659. * mail-ops.c (fix_unmatched_info): removed, done in camel now. svn path=/trunk/; revision=25625
* Same.Jeffrey Stedfast2004-04-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (construct): Same. * message-list.c (message_list_init_images): Same. * mail-send-recv.c (build_dialog): Same. * mail-mt.c (do_op_status): Same. * mail-config-druid.c (evolution_mail_config_wizard_new): Same. * em-popup.c (em_popup_create_menu): Same. * em-format-html-display.c (efhd_format_prefix): Same. * em-format-html.c (efh_format_secure): Same as below. * em-folder-tree.c (render_pixbuf): Don't use absolute icon sizes, use the e-icon-factory enums. svn path=/trunk/; revision=25527
* mail-component.cMichael Terry2004-04-191-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Michael Terry <mike@mterry.name> * GNOME_Evolution_Mail.server.in.in: * em-account-prefs.[ch]: * em-composer-prefs.[ch]: * em-folder-browser.c: * em-folder-tree.c: * em-folder-view.c: * em-format-html-display.c: * em-format-html.[ch]: * em-popup.c: * mail-component.c * mail-config-druid.c: * mail-config.glade: * mail-mt.c: * mail-send-recv.c: * message-list.c: * message-tag-followup.c: * message-tags.glade: Update the mailer to use icon themes through the EIconFactory object in e-util svn path=/trunk/; revision=25517
* Scroll to the auto-selected folder. Fixes bug #56707.Jeffrey Stedfast2004-04-131-0/+1
| | | | | | | | | 2004-04-12 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): Scroll to the auto-selected folder. Fixes bug #56707. svn path=/trunk/; revision=25418
* We need to recursively copy the dragged folder tree over to the dropJeffrey Stedfast2004-04-091-9/+54
| | | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_drop_folder): We need to recursively copy the dragged folder tree over to the drop location, not just the parent folder. We also need to subscribe to the newly created folder in some cases. svn path=/trunk/; revision=25375
* Check that emft_selection_get_selected() returns TRUE before we try to useJeffrey Stedfast2004-04-081-5/+15
| | | | | | | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Check that emft_selection_get_selected() returns TRUE before we try to use the iter. Fixes bug #56652. (emft_popup_delete_response): Same idea here. (emft_popup_delete_folder): Same. (emft_popup_rename_folder): Same. (emft_popup_properties): Same. svn path=/trunk/; revision=25366
* moved a comment to a more appropriate locationJeffrey Stedfast2004-04-081-1/+1
| | | | svn path=/trunk/; revision=25365
* ref the emfoldertree in our thread message. (em_folder_tree_set_selected):Not Zed2004-04-061-0/+3
| | | | | | | | | | | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_tree_row_expanded): ref the emfoldertree in our thread message. (em_folder_tree_set_selected): same. (emft_get_folder_info__free): unref it. * mail-folder-cache.c (ping_store): use thread_queued_slow not thread_queued - we dont care when it runs. * em-folder-view.c (emfv_set_folder_uri): use thread_new for getting the folder, we do elsewhere, and it aids interactivity. svn path=/trunk/; revision=25330
* Cleaned up header inclusions and added plenty of forward declarations.Not Zed2004-03-311-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * *.[ch]: Cleaned up header inclusions and added plenty of forward declarations. Sped up complete re-compilation by upto 20%. ** See bug #55950. * em-utils.c (em_utils_in_addressbook): utility for checking if an email address is in the addressbook. I can't tell if it works 'cause it crashes eds. * em-format-html.c (emfh_gethttp): handle addressbook checking. 2004-03-30 Not Zed <NotZed@Ximian.com> * mail-config.h: clean up the headers and use some forward decl's instead. * em-format-html.c (em_format_html_set_load_http): change state to an int 'style' instead. * em-folder-view.c (emfv_setting_notify): set the format load http option to the config value directly. ** See bug #56147. * message-list.c (clear_info): set the node data to NULL when we unref its data. (ml_get_save_id): use a different test for the root node, and return NULL if we don't have any data on the node (because we're cleaing it). ** See bug #54962. * em-folder-tree.c (emft_popup_new_folder_response): put back the old hack to open the vfolder editor if you try to create a folder under vfolders. ** See bug #55940. * mail-autofilter.c (mail_filter_rename_uri): map the uri to an email uri before passing to filter code. (mail_filter_delete_uri): same here. svn path=/trunk/; revision=25261
* Free the folder-info.Jeffrey Stedfast2004-03-301-2/+1
| | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_create_folder__free): Free the folder-info. svn path=/trunk/; revision=25233
* Fixes bug #54800.Jeffrey Stedfast2004-03-201-2/+62
| | | | | | | | | | | | | | | 2004-03-19 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #54800. * em-folder-tree.c (tree_drag_drop): Remove the autoscroll timeout. (tree_drag_leave): Remove the autoscroll timeout. (tree_autoscroll): New autoscroll timeout callback - automagically scrolls the treeview if appropriate. (tree_drag_motion): Setup the autoscroll timeout. svn path=/trunk/; revision=25134
* Fix for bug #55358.Jeffrey Stedfast2004-03-171-48/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-16 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55358. * em-folder-tree.c (emft_expand_node): Changed to be the callback function for em_folder_tree_model_expand_foreach(). (emft_maybe_expand_row): Renamed from emft_loading_row_cb(). We now handle both "loading-row" an "loaded-row" signals. Also updated for slight change in key generation. (em_folder_tree_new_with_model): Connect to the "loaded-row" signal. (emft_update_model_expanded_state): Updated for slight change in key generation. * em-folder-tree-model.c (em_folder_tree_model_add_store): Emit the "loaded-row" signal for the newly added store. (em_folder_tree_model_set_folder_info): Emit "loaded-row" for the row we've just set the info on (but only after we've added a child node if there is one, so the signal handler can expand the newly added row if appropriate). (em_folder_tree_model_class_init): Setup the "loaded-row" signal. (em_folder_tree_model_finalize): The tree-state is now an xml file and not a binary file, so change the expanded free func. (em_folder_tree_model_load_state): Load the expand-state xml file. If one doesn't exist, setup some defaults. (em_folder_tree_model_get_expanded): Scan the XML tree for the node. (em_folder_tree_model_set_expanded): Same. (em_folder_tree_model_save_expanded): Save the expand-state xml tree to disk. (em_folder_tree_model_expand_foreach): New function to iterate over all xml nodes and call the callback if the expand state is "true". svn path=/trunk/; revision=25094
* New function to return a description of the async drop operation. FixesJeffrey Stedfast2004-03-171-1/+27
| | | | | | | | | 2004-03-16 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_drop_async_desc): New function to return a description of the async drop operation. Fixes bug #54808. svn path=/trunk/; revision=25090
* Use camel_store_rename_folder() when appropriate (m->tostore ==Jeffrey Stedfast2004-03-161-21/+35
| | | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_copy_folders__copy): Use camel_store_rename_folder() when appropriate (m->tostore == m->fromstore && m->delete) svn path=/trunk/; revision=25080
* make dnd look funny for joe. #55246.Not Zed2004-03-111-1/+1
| | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (tree_drag_motion): make dnd look funny for joe. #55246. svn path=/trunk/; revision=25023
* pass the raw header in instead of name and value. (efh_format_headers): ifNot Zed2004-03-111-10/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_header): pass the raw header in instead of name and value. (efh_format_headers): if we have specific headers to show, iterate over all headers and print out all matching ones, so duplicate headers are properly displayed. Related to #55298. * em-folder-selector.c (em_folder_selector_construct): dont set this to be modal. otherwise you can't click on error popups. duh. 2004-03-08 Not Zed <NotZed@Ximian.com> * em-folder-selection-button.c (em_folder_selection_button_clicked): don't let the user select virtual/vtrash folders or non-selectable folders. * mail-component.c (impl_createControls): disable selection of non-select rows. * em-folder-selector.c (em_folder_selector_create_new): exclude folders with noinferiors set. * em-folder-tree.c (folder_tree_new): add folder tree arg, hook onto the selection funciton for the tree selection. (emft_select_func): selection override function. allow certain things to be excluded. (em_folder_tree_set_excluded): api to set what is excluded from the selectability. (emft_tree_row_activated): call emft_select_func check to see if this row is excluded before emitting an activated signal. * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): save folder info->flags in the tree store. * mail-folder-cache.c (create_folders): use tail recursion. (get_folders): tail recurse. * (*): Fixed for api changes in camel. svn path=/trunk/; revision=25020
* New async function to create a folder. (em_folder_tree_create_folder):Jeffrey Stedfast2004-03-091-28/+146
| | | | | | | | | | | | | | 2004-03-08 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_create_folder): New async function to create a folder. (em_folder_tree_create_folder): Partly moved into emft_create_folder. Might be able to remove this code, but lewing might be using it in Connector or something? Need to ask him... (emft_popup_new_folder_response): Use emft_create_folder() instead. svn path=/trunk/; revision=24993
* ** See bug #54121.Not Zed2004-03-031-1/+0
| | | | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> ** See bug #54121. * mail-component.c (impl_requestCreateItem) (emc_new_folder_response): Hack in a nastish implementation of create folder for the new menu. (impl__get_userCreatableItems): add 'new mail folder' to new button. svn path=/trunk/; revision=24945
* s/||/&&/. Fixes a dumb bug I introduced yesterday.Jeffrey Stedfast2004-03-031-1/+1
| | | | | | | | | 2004-03-02 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): s/||/&&/. Fixes a dumb bug I introduced yesterday. svn path=/trunk/; revision=24938
* Connect to the folder-activated signal. (folder_activated_cb): CallJeffrey Stedfast2004-03-021-6/+58
| | | | | | | | | | | | | | | | | | 2004-03-01 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selector.c (em_folder_selector_construct): Connect to the folder-activated signal. (folder_activated_cb): Call gtk_dialog_response() with GTK_RESPONSE_OK. Fixes bug #54793. * em-folder-tree.c (emft_tree_row_activated): New callback to emit the "folder-activated" signal which is needed to fix bug #54793. (emft_tree_button_press): Handle button1 double-clicks too (also for bug #54793). (emft_tree_button_press): On right-click, we also want to select the folder the user right-clicked on. Fixes bug #54772. svn path=/trunk/; revision=24928
* We want UID_LISTs to drop with the MOVE action by default. Fixes a commonJeffrey Stedfast2004-02-241-1/+7
| | | | | | | | | | 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_motion): We want UID_LISTs to drop with the MOVE action by default. Fixes a common complaint from IRC. svn path=/trunk/; revision=24832
* Revert previous change, dohRodney Dawes2004-02-201-0/+1
| | | | | | | | 2004-02-19 Rodney Dawes <dobey@ximian.com> * em-folder-tree.c (emft_save_state): Revert previous change, doh svn path=/trunk/; revision=24800
* Don't set the timeout id to 0 and then immediately return FALSE, whichRodney Dawes2004-02-201-1/+0
| | | | | | | | | 2004-02-19 Rodney Dawes <dobey@ximian.com> * em-folder-tree.c (emft_save_state): Don't set the timeout id to 0 and then immediately return FALSE, which tries to remove the timeout svn path=/trunk/; revision=24798
* Pass flags to em_popup_target_new_folder() instead of just an isstore arg.Jeffrey Stedfast2004-02-191-1/+6
| | | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Pass flags to em_popup_target_new_folder() instead of just an isstore arg. (emft_tree_button_press): Fake the fi flags for vTrash/vJunk so that em-popup.c can disable the delete flag for these. svn path=/trunk/; revision=24787
* removed a FIXME comment that my last commit fixedJeffrey Stedfast2004-02-191-1/+0
| | | | svn path=/trunk/; revision=24786
* Pass flags to em_popup_target_new_folder() instead of just an isstore arg.Jeffrey Stedfast2004-02-191-8/+29
| | | | | | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Pass flags to em_popup_target_new_folder() instead of just an isstore arg. * em-popup.c (em_popup_target_new_folder): Instead of taking an isstore argument, take a flags argument so that our caller can give us hints about the selected folder/store. Also fixed a logic bug from my previous commit. svn path=/trunk/; revision=24785
* Updated for em-popup API change (altho currently passes a dummy value).Jeffrey Stedfast2004-02-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-12 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Updated for em-popup API change (altho currently passes a dummy value). * em-popup.c (em_popup_target_new_folder): Check for vTrash/vJunk by checking the CAMEL_FOLDER_VIRTUAL info flags bit. (perhaps this flag should be renamed to SPECIAL? VIRTUAL might not have been a good name). Also changed to check flags & CAMEL_FOLDER_NOSELECT rather than checking the uri string for a noselect param. * mail-folder-cache.c (unset_folder_info): Instead of checking for ";noselect" in the uri, check for a CAMEL_FOLDER_NOSELECT flag on mfi->flags. (setup_folder): Copy the fi->flags to mfi->flags here. (rename_folders): Same. (setup_folder): Check fi->flags for CAMEL_FOLDER_NOSELECT here instead. (rename_folders): Same. Also gets rid of a FIXME. svn path=/trunk/; revision=24784
* ** See bug #54492.Not Zed2004-02-181-7/+6
| | | | | | | | | | | | 2004-02-18 Not Zed <NotZed@Ximian.com> ** See bug #54492. * em-folder-tree.c (emft_popup_copy_folder_selected): check the store flags, not the fragment presence to find out if we use the fragment as the path. svn path=/trunk/; revision=24767
* Fix for bug #54060 (except for the "don't let users copy/move messages toJeffrey Stedfast2004-02-181-42/+129
| | | | | | | | | | | | | | | | | | | | | | | 2004-02-17 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #54060 (except for the "don't let users copy/move messages to Outbox" bit). * em-folder-tree.c (emft_drop_target): Rearranged a little. We can check for special dest folders right away. Also added a check for the default local folders (Drafts/Inbox/Outbox/Sent) since we don't want to be able to move them anywhere else (copying is ok). (emft_popup_copy_folder_selected): Don't allow moving any of the default local folders to be consistant with drag&drop changes. (emft_popup_rename_folder): Don't allow the user to rename a default local folder. (emft_popup_delete_folder): Don't allow deletion of special local folders. * mail-component.c (mail_component_peek_local_store): New function to peek the local store. svn path=/trunk/; revision=24765
* Make sure the drop-target folder doesn't already contain a folder namedJeffrey Stedfast2004-02-141-5/+3
| | | | | | | | | | | 2004-02-13 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_drop_folder): Make sure the drop-target folder doesn't already contain a folder named identical to the one we are dropping by using the new CAMEL_STORE_FOLDER_EXCL flag. Fixes bug #53810. svn path=/trunk/; revision=24739
* oops, remove some debugMichael Zucci2004-02-091-3/+0
| | | | svn path=/trunk/; revision=24680
* merged in code from em_folder_tree_model_drag_data_delete.Not Zed2004-02-091-39/+587
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (tree_drag_data_delete): merged in code from em_folder_tree_model_drag_data_delete. (tree_drag_data_get): similar. (tree_drag_data_received): similar. (drag_text_uri_list): removed, use em_utils_selection_set_urilist in tree_drag_data_get instead. (em_folder_tree_enable_drag_and_drop): merged in em_folder_tree_model_set_drag_drop_types. (tree_drag_motion): merge in drop_possible, handle qualifiers, and return the right type. (em_folder_tree_model_row_drop_target): rename to emft_drop_target, and make private. Beefed up substantially, handles illogical drops, dropping on to special folders and properly handling vfolder uri's (at least within the same tree instance). * em-folder-tree-model.c: Moved all of the DND stuff to em-folder-tree, where it belongs, made it all static. Should allow for some sharing of code too. svn path=/trunk/; revision=24679
* Now takes a GdkContext arg... will need this later when we want toJeffrey Stedfast2004-02-061-2/+2
| | | | | | | | | | 2004-02-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_row_drop_target): Now takes a GdkContext arg... will need this later when we want to re-enable dnd of vfolders. svn path=/trunk/; revision=24637
* sync the from folder if we're going to delete it, otherwise we can'tNot Zed2004-02-051-0/+6
| | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_copy_folders__copy): sync the from folder if we're going to delete it, otherwise we can't because its not empty. See #53815. svn path=/trunk/; revision=24631
* call abort before we unref, aid debugging if we hit it.Not Zed2004-02-051-1/+1
| | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (em_folder_tree_create_folder): call abort before we unref, aid debugging if we hit it. * mail-vfolder.c (uri_is_spethal): check for vfolder/vtrash folders. Based on name check and store options. svn path=/trunk/; revision=24626
* Modified slightly. The model now calls gtk_drag_finish() for us when it isJeffrey Stedfast2004-02-041-8/+2
| | | | | | | | | | | | | | | | 2004-02-03 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_data_received): Modified slightly. The model now calls gtk_drag_finish() for us when it is done. * em-folder-tree-model.c (em_folder_tree_model_drag_data_received): Make this perform camel operations in another thread so we don't block. (em_folder_tree_model_drag_data_get): Updated args to be consistant with drag_data_received. svn path=/trunk/; revision=24595
* ** See bug #52994.Not Zed2004-02-021-205/+3
| | | | | | | | | | | | | | | | | | | | | 2004-02-02 Not Zed <NotZed@Ximian.com> ** See bug #52994. * em-folder-properties.c (em_folder_properties_show): redirect vFolder uri's to the vFolder editor. ** See bug #53502. * em-folder-browser.c (emfb_folder_properties): implement. * em-folder-tree.c (emft_popup_properties): fixed for change below. * em-folder-properties.[ch]: Moved the folder properties window from em-folder-tree.c to its own file. svn path=/trunk/; revision=24564
* god knows what else this'll break.Not Zed2004-02-021-0/+1
| | | | | | | | | | | | | | | | 2004-02-02 Not Zed <NotZed@Ximian.com> ** See bug #53559. * em-folder-tree.c (folder_tree_new): set CAN_FOCUS flag on the folder tree content widget. * em-folder-selector.c (em_folder_selector_construct): Don't wrap the folder tree in a scrolled window. Its already in one ????. (em_folder_selector_construct): dont set can_focus on the folder tree. svn path=/trunk/; revision=24563
* Get recursive folder listing (needed or folders that haveJeffrey Stedfast2004-01-311-1/+1
| | | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_row_expanded): Get recursive folder listing (needed or folders that have as-of-yet-unloaded-subfolders that contain unread mail will not be bolded). Fixes bug #51045. svn path=/trunk/; revision=24544
* ** See bug #53549, partial fix.Not Zed2004-01-301-0/+1
| | | | | | | | | | | | | | | | | | 2004-01-30 Not Zed <NotZed@Ximian.com> ** See bug #53549, partial fix. * em-folder-selector.c (emfs_create_name_activate): only emit the ok response if the ok button would be active (i.e. entered a valid path). ** See bug #52992. * message-list.c (message_list_hide_clear): save the hide state after its been cleared, so any popup windows inherit it. (message_list_hide_uids): same. svn path=/trunk/; revision=24534
* And thus completes the fixes for bug #52766.Jeffrey Stedfast2004-01-291-21/+2
| | | | | | | | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> And thus completes the fixes for bug #52766. * em-folder-tree.c (tree_drag_drop): Don't call gtk_drag_get_data() manually here or we end up getting 2 drag-data-received callbacks which is Not Good (tm). * em-folder-tree-model.c (drop_folder): Now takes a moved argument to specify whether or not the contents were moved (the move argument is just a hint). (drop_uid_list): Same. (em_folder_tree_model_drag_data_received): Updated for the above api changes. svn path=/trunk/; revision=24497
* Removed unneeded debug printfs.Jeffrey Stedfast2004-01-281-3/+2
| | | | | | | | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Removed unneeded debug printfs. * em-folder-tree.c (tree_drag_data_received): Use gtk_tree_view_get_dest_row_at_pos() instead of gtk_tree_view_get_path_at_pos() since this is what Nautilus uses. Unfortunately, it still gives us back the wrong GtkTreePath so it looks to me like Gtk+ is borked. Apparently you need the latest and greatest gtk+-2.3.x cvs snapshot for this to work. svn path=/trunk/; revision=24482
* Use gtk_tree_view_get_dest_row_at_pos() instead ofJeffrey Stedfast2004-01-281-3/+2
| | | | | | | | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_data_received): Use gtk_tree_view_get_dest_row_at_pos() instead of gtk_tree_view_get_path_at_pos() since this is what Nautilus uses. Unfortunately, it still gives us back the wrong GtkTreePath so it looks to me like Gtk+ is borked. * em-migrate.c (em_migrate_imap_caches_1_4): Copy the imap cache into the right place. Duh. svn path=/trunk/; revision=24477
* Set priv->drag_row.Jeffrey Stedfast2004-01-271-2/+16
| | | | | | | | 2004-01-26 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_begin): Set priv->drag_row. svn path=/trunk/; revision=24447
* Use FOLDER_INFO_FAST bitflag here, since we don't care about unread countsJeffrey Stedfast2004-01-271-3/+3
| | | | | | | | | | | | 2004-01-26 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_copy_folders__copy): Use FOLDER_INFO_FAST bitflag here, since we don't care about unread counts when copying folders around. (emft_popup_delete_folders): Same. (emft_tree_row_expanded): Don't use FOLDER_INFO_FAST here. svn path=/trunk/; revision=24440
* Cast the name entry to a GtkWidget to avoid a compiler warning Grab focusRodney Dawes2004-01-251-0/+1
| | | | | | | | | | | | | 2004-01-25 Rodney Dawes <dobey@ximian.com> * em-folder-selector.c (em_folder_selector_create_new): Cast the name entry to a GtkWidget to avoid a compiler warning * em-folder-tree.c (emft_popup_new_folder): Grab focus on the name entry when we show the dialog (#53089) Fixes #53089 svn path=/trunk/; revision=24423
* Removed the drag & drop interfaces, apparently these aren't good enoughJeffrey Stedfast2004-01-241-34/+150
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-23 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_get_type): Removed the drag & drop interfaces, apparently these aren't good enough for what we need. Gotta implement this all the Hard Way (tm). (em_folder_tree_model_drag_data_received): Helper function called by the drag_data_received signal callback in em-folder-tree.c (em_folder_tree_model_row_drop_possible): Same idea. (em_folder_tree_model_row_drop_target): Again. (em_folder_tree_model_row_draggable): You get the idea... (em_folder_tree_model_drag_data_get): And again. (em_folder_tree_model_drag_data_delete): Same. (em_folder_tree_model_set_drag_drop_types): Setup the drag & drop types on the widget (since the target drag & drop types are now internal to the model code rathr than the tree code). * em-folder-tree.c (em_folder_tree_enable_drag_and_drop): Rewritten. Connect to all the drag & drop signals and implemnent them. svn path=/trunk/; revision=24393
* removed this like i asked radek to ages ago, just call the parentNot Zed2004-01-191-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * mail-ops.c (add_vjunk_info, add_vtrash_info): removed this like i asked radek to ages ago, just call the parent directly. (add_vtrash_or_vjunk_info): renamed to something saner. add_special_info. (add_special_info): removed the 'unread count' parameter & return the added info. ** See bug #52854. * em-folder-tree.c (emft_tree_button_press): setup a FOLDER target for the popup menu. * em-popup.c (em_popup_target_free): implement free for TARGET_FOLDER, changed the target options somewhat. (em_popup_target_new_folder): implement folder selection target. Total Hack(tm) alert. (emp_standard_menu_factory): removed the stupid g_assert_if_not_reached() call. * message-list.c (message_list_destroy): NULL out the uid_nodemap when we destroy it. svn path=/trunk/; revision=24302
* support for posting both to mail and to (multiple) foldersMeilof Veeningen2004-01-131-8/+132
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Meilof Veeningen <meilof@wanadoo.nl> * em-composer-utils.c: support for posting both to mail and to (multiple) folders * em-folder-browser.c: use em_utils_post_to_folder (works with NNTP) * em-folder-selection-button.[ch]: added multiple selection mode * em-folder-selector.[ch]: idem * em-folder-tree.[ch]: added multiple selection mode, no longer show disabled accounts * em-utils.c: various changes to allow posting to (multiple) folders * em-subscribe-editor.c: double-clicking a node in the editor updates it directly * mail-ops.c: for appending messages, set the "X-Mailer" header svn path=/trunk/; revision=24182
* add total + unread counts to properties page.Not Zed2004-01-121-6/+34
| | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_popup_properties_got_folder): add total + unread counts to properties page. svn path=/trunk/; revision=24158
* Fix erroneous function callJP Rosevear2003-12-151-1/+1
| | | | | | | | | | | 2003-12-14 JP Rosevear <jpr@ximian.com> * em-folder-tree.c (emft_tree_row_collapsed): Fix erroneous function call Fixes #52120 svn path=/trunk/; revision=23939
* Shorten the namespace of some internal functions to just emft.Jeffrey Stedfast2003-12-121-4/+5
| | | | | | | | | | | 2003-12-11 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c: Shorten the namespace of some internal functions to just emft. (emft_popup_delete_rec): Don't delete the contents of a folder if it is a vFolder. Fixes bug #52029. svn path=/trunk/; revision=23927
* Shorten the namespace of some internal functions to just emft.Jeffrey Stedfast2003-12-121-41/+43
| | | | | | | | | | | | | | 2003-12-11 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c: Shorten the namespace of some internal functions to just emft. * em-mailer-prefs.c (em_mailer_prefs_construct): Use newv() here and pass an array of GTypes - makes it simpler to change the order of columns later and/or add new columns if we need to. Also makes the line shorter :-) svn path=/trunk/; revision=23926
* check m->fi != NULL before dereferencing it.Not Zed2003-12-111-1/+1
| | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (em_folder_tree_get_folder_info__got): check m->fi != NULL before dereferencing it. svn path=/trunk/; revision=23916
* Add INFO_FAST here as we don't need it to get unread counts.Jeffrey Stedfast2003-12-111-2/+2
| | | | | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): Add INFO_FAST here as we don't need it to get unread counts. (tree_row_expanded): Here too. * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): Check CAMEL_FOLDER_NOCHILDREN. svn path=/trunk/; revision=23912
* use a POSITIVE value for the response value, gtk uses -ative ones. BugNot Zed2003-12-101-2/+0
| | | | | | | | | | | | | | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * em-folder-selector.h: use a POSITIVE value for the response value, gtk uses -ative ones. Bug #51752. * Makefile.am (INCLUDES): added smime/lib and smime/gui to includes. * em-folder-tree.c (emft_popup_rename_folder): removed unused 'why', why not? * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked): setup a table of buttons to view any certs we have. * em-folder-browser.c (emfb_activate): separeate view_menu unreffing from view_instance. fixes a runtime warning. svn path=/trunk/; revision=23905
* Remove the extra || unread check in the conditional in the g_object_set ()Rodney Dawes2003-12-061-1/+1
| | | | | | | | | 2003-12-05 Rodney Dawes <dobey@ximian.com> * em-folder-tree.c (render_display_name): Remove the extra || unread check in the conditional in the g_object_set () call svn path=/trunk/; revision=23657
* Fixes bug #51482Rodney Dawes2003-12-061-3/+2
| | | | | | | | | | | 2003-12-05 Rodney Dawes <dobey@ximian.com> Fixes bug #51482 * em-folder-tree.c (render_display_name): Don't hardcode colors for the folder tree, instead use bold for unread, as in 1.4 svn path=/trunk/; revision=23656
* Fixes bug #51605.Jeffrey Stedfast2003-12-051-16/+26
| | | | | | | | | | | | | | | 2003-12-04 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #51605. * em-folder-selector.c (emfs_response): Handle creating a new folder (pop up a create-folder-selector dialog). * em-folder-tree.c (emft_popup_new_folder_response): Moved all the logic into em_folder_tree_create_folder(). (em_folder_tree_create_folder): New function to create a folder. svn path=/trunk/; revision=23635
* (emft_popup_rename_folder): Set oldpath and newpath to the properJeffrey Stedfast2003-12-041-2/+2
| | | | | | values. Fixes bug #51656. svn path=/trunk/; revision=23616
* Need to prepend a "/" to path if the path is the url fragment. Also fixedJeffrey Stedfast2003-12-041-14/+22
| | | | | | | | | | 2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): Need to prepend a "/" to path if the path is the url fragment. Also fixed to select the store node if path == "/". svn path=/trunk/; revision=23611
* remove the source before savingJP Rosevear2003-12-041-2/+1
| | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * em-folder-tree.c (em_folder_tree_destroy): remove the source before saving svn path=/trunk/; revision=23603
* Set the save_state_id to 0 or we will never get a chance to run again.Jeffrey Stedfast2003-12-041-2/+3
| | | | | | | | | 2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_save_state): Set the save_state_id to 0 or we will never get a chance to run again. svn path=/trunk/; revision=23602
* save the state immediately if there is a timeout setJP Rosevear2003-12-031-3/+4
| | | | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * em-folder-tree.c (em_folder_tree_destroy): save the state immediately if there is a timeout set (em_folder_tree_save_state): be true GSourceFunc and just return FALSE to remove the source svn path=/trunk/; revision=23594
* save the state immediately if there is a timeout setJP Rosevear2003-12-031-7/+10
| | | | | | | | | | | 2003-12-03 JP Rosevear <jpr@ximian.com> * em-folder-tree.c (em_folder_tree_destroy): save the state immediately if there is a timeout set (em_folder_tree_save_state): be true GSourceFunc and just return FALSE to remove the source svn path=/trunk/; revision=23593
* Moved here. (drop_folder): Moved here. (import_message_rfc822): MovedJeffrey Stedfast2003-12-031-447/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Connect to the loading row signal. (loading_row_cb): Expand the path ifJeffrey Stedfast2003-12-031-0/+36
| | | | | | | | | | | | | | | 2003-12-02 Jeffrey Stedfast <fejj@ximian.com> * 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-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=23589
* more fixesJeffrey Stedfast2003-12-031-1/+0
| | | | svn path=/trunk/; revision=23587
* fixed some mem leaks in my codeJeffrey Stedfast2003-12-031-8/+10
| | | | svn path=/trunk/; revision=23586
* Fixed to pass the evolution dir into em_folder_tree_model_new().Jeffrey Stedfast2003-12-031-131/+33
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Updated to call em_folder_tree_model_set_folder_info().Jeffrey Stedfast2003-12-021-446/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make sure our parent folder hasn't been unsubscribed or else we get aJeffrey Stedfast2003-12-021-4/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_get_folder_info__got): Make sure our parent folder hasn't been unsubscribed or else we get a segfault here if it has. 03-11-28 Dave Camp <dave@ximian.com> * em-folder-tree.c (render_pixbuf): Set the pixbuf renderer invisible for stores. 2003-11-25 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_get_account_by_uid): New function. * em-folder-tree.c (tree_store_set_folder_info): Expand the tree node if the saved state tells us it was expanded the previous session. (em_folder_tree_load_state): Load the saved state. (em_folder_tree_add_store): Conditionally expand the store node. (em_folder_tree_new_with_model): Expand all the nodes that should be expanded. svn path=/trunk/; revision=23530
* ops, now it's the right versionRadek Doulik2003-12-011-1/+2
| | | | svn path=/trunk/; revision=23519
* use CAMEL_VTRASH_NAME, CAMEL_VJUNK_NAMERadek Doulik2003-12-011-7/+12
| | | | | | | | | | | | | | 2003-12-01 Radek Doulik <rodo@ximian.com> * em-folder-tree.c (render_pixbuf): use CAMEL_VTRASH_NAME, CAMEL_VJUNK_NAME 2003-11-28 Radek Doulik <rodo@ximian.com> * em-folder-tree.c (render_pixbuf): added junk icon to folder icons svn path=/trunk/; revision=23516
* New function to save tree expanded state.Jeffrey Stedfast2003-11-251-1/+139
| | | | | | | | | | | | | | | 2003-11-24 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_save_state): New function to save tree expanded state. (em_folder_tree_queue_save_state): New function to queue saving of the expanded state. (em_folder_tree_construct): Connect to the row-collapsed signal. (tree_row_collapsed): Queue a save-state. (tree_row_expanded): Queue a save state. (em_folder_tree_get_folder_info__got): Queue a save-state. svn path=/trunk/; revision=23485
* Fixes bug #51012.Jeffrey Stedfast2003-11-211-11/+57
| | | | | | | | | | | | | | | | 2003-11-20 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #51012. * em-folder-tree.c (emft_popup_rename_folder): Fixed a FIXME to not use the OS-specific g_path_*() stuff. (em_folder_tree_set_selected): For the case where the tree has already loaded enough subfodlers to include the path we need to select, exopand the nodes to that path as well. For the case that the tree hasn't loaded enough of the folder nodes, load them and then have the node selected/expanded to. svn path=/trunk/; revision=23462
* Fixed a FIXME to not use the OS-specific g_path_*() stuff.Jeffrey Stedfast2003-11-211-22/+28
| | | | | | | | | 2003-11-20 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_popup_rename_folder): Fixed a FIXME to not use the OS-specific g_path_*() stuff. svn path=/trunk/; revision=23458
* Same.Jeffrey Stedfast2003-11-201-8/+11
| | | | | | | | | | | | | 2003-11-19 Jeffrey Stedfast <fejj@ximian.com> * em-utils.c (em_utils_selection_set_urilist): Same. * em-format-html-display.c (efhd_drag_data_get): Same as below. * em-folder-tree.c (drag_text_uri_list): Terminate each url of a text/uri-list with a \r\n. svn path=/trunk/; revision=23451
* Execute asynchronously by queueing the copy in another thread.Jeffrey Stedfast2003-11-191-34/+74
| | | | | | | | | | 2003-11-18 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_copy_folders): Execute asynchronously by queueing the copy in another thread. (em_copy_folders__copy): Moved the original logic here. svn path=/trunk/; revision=23427
* Queue the camel_store_get_folder_info() call in another thread.Jeffrey Stedfast2003-11-191-49/+115
| | | | | | | | | | | 2003-11-18 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_row_expanded): Queue the camel_store_get_folder_info() call in another thread. (em_folder_tree_get_folder_info__got): Moved all the logic of tree_row_expanded here. svn path=/trunk/; revision=23426
* Fixed to check fi->child as well (since mbox does it right).Jeffrey Stedfast2003-11-181-12/+15
| | | | | | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_row_expanded): Fixed to check fi->child as well (since mbox does it right). (emft_popup_new_folder_response): Fixed to subscribe to the correct folder. (emft_popup_delete_folders): Fixed to use the full_name rather than the path. svn path=/trunk/; revision=23407
* more fixesJeffrey Stedfast2003-11-181-4/+25
| | | | svn path=/trunk/; revision=23405
* Fixed to not include leading '/' in the folder name in the label.Jeffrey Stedfast2003-11-181-24/+77
| | | | | | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selection-button.c (set_contents): Fixed to not include leading '/' in the folder name in the label. * em-folder-tree.c (emft_popup_new_folder_response): Implemented error reporting via gtk dialogs. (emft_popup_copy_folder_selected): Same. svn path=/trunk/; revision=23401
* Use a folder_name rather than a path as the name argument toJeffrey Stedfast2003-11-181-1/+1
| | | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_popup_new_folder_response): Use a folder_name rather than a path as the name argument to camel_store_create_folder(), fixes creation of IMAP folders. svn path=/trunk/; revision=23395
* We can't use a uri to do a lookup of a store-info on the store_hash, weJeffrey Stedfast2003-11-151-2/+68
| | | | | | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_popup_new_folder_response): We can't use a uri to do a lookup of a store-info on the store_hash, we have to get a CamelStore first. (row_draggable_cb): validate the iter before using it. (row_drop_possible_cb): Same. (drag_data_received_cb): Here too. (drag_data_get_cb): Same. (drag_data_delete_cb): Again here. (tree_store_set_folder_info): Recursively add nodes if fi->child is non-NULL rather than adding a dummy node. (folder_renamed_cb): Implemented. svn path=/trunk/; revision=23367
* We can't use a uri to do a lookup of a store-info on the store_hash, weJeffrey Stedfast2003-11-151-12/+34
| | | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_popup_new_folder_response): We can't use a uri to do a lookup of a store-info on the store_hash, we have to get a CamelStore first. (row_draggable_cb): validate the iter before using it. (row_drop_possible_cb): Same. (drag_data_received_cb): Here too. (drag_data_get_cb): Same. (drag_data_delete_cb): Again here. svn path=/trunk/; revision=23363
* Only set OK to sensitive if the selected node is not a store node.Jeffrey Stedfast2003-11-151-102/+30
| | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selection.c (folder_selected_cb): Only set OK to sensitive if the selected node is not a store node. * em-folder-tree-model.c: Moved the store_hash and uri_hash from EMFolderTreePrivate into here instead. * em-folder-tree.c: Updated for above changes. svn path=/trunk/; revision=23355
* Updated. (emfv_popup_copy): Updated.Jeffrey Stedfast2003-11-151-2/+0
| | | | | | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_popup_move): Updated. (emfv_popup_copy): Updated. * em-folder-tree.c (emft_popup_copy): Updated. (emft_popup_move): Updated. * em-folder-selection.c (create_dialog): New convenience function to construct the dialog contents for all three public functions. (em_folder_selection_run_dialog): Now longer takes a caption arg. (em_folder_selection_run_dialog_uri): Same. (em_select_folder): Here too. svn path=/trunk/; revision=23353
* Use em_folder_tree_get_model() since an emft is not a GtkTreeView.Jeffrey Stedfast2003-11-141-0/+9
| | | | | | | | | | | | 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=23346
* fixed a build issueJeffrey Stedfast2003-11-141-2/+2
| | | | svn path=/trunk/; revision=23332
* New folder-tree widget that replaces the shell's folder-tree widget.Jeffrey Stedfast2003-11-141-304/+1212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* merged spam filtering branchRadek Doulik2003-11-131-1/+5
| | | | svn path=/trunk/; revision=23302
* new sources files - work in progress to try and replace the e-storage-set* codeJeffrey Stedfast2003-11-081-0/+1149
svn path=/trunk/; revision=23223