From d88e794ded5fc1ea72af2a3d0ec4c46442a992cf Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Fri, 13 May 2005 21:29:28 +0000 Subject: Add profiler so that it gets disted properly 2005-05-13 Rodney Dawes * plugins/Makefile.am (DIST_SUBDIRS): Add profiler so that it gets disted properly 2005-05-13 Rodney Dawes * 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 * org-gnome-mailing-list-actions.xml: Update for the new menu layout 2005-05-13 Rodney Dawes * org-gnome-plugin-manager.xml: Update for new menu layout 2005-05-13 Rodney Dawes * org-gnome-save-attachments.xml: Update for new menu layout 2005-05-13 Rodney Dawes * 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 * *.xml: Update to the new menu layout 2005-05-13 Rodney Dawes * e-filter-bar.[ch]: Update for the new menu layout svn path=/trunk/; revision=29354 --- mail/mail-component.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index e831978235..34713baeab 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -737,23 +737,6 @@ impl__get_userCreatableItems (PortableServer_Servant servant, CORBA_Environment return list; } -static void -emc_new_folder_response(EMFolderSelector *emfs, int response, void *dummy) -{ - const char *uri, *path; - - if (response != GTK_RESPONSE_OK) { - gtk_widget_destroy((GtkWidget *)emfs); - return; - } - - uri = em_folder_selector_get_selected_uri(emfs); - path = em_folder_selector_get_selected_path(emfs); - - if (em_folder_tree_create_folder(emfs->emft, path, uri)) - gtk_widget_destroy((GtkWidget *)emfs); -} - static int create_item(const char *type, EMFolderTreeModel *model, const char *uri) { @@ -763,15 +746,7 @@ create_item(const char *type, EMFolderTreeModel *model, const char *uri) em_utils_compose_new_message(uri); } else if (strcmp(type, "folder") == 0) { - EMFolderTree *folder_tree; - GtkWidget *dialog; - - folder_tree = (EMFolderTree *)em_folder_tree_new_with_model(model); - dialog = em_folder_selector_create_new (folder_tree, 0, _("Create folder"), _("Specify where to create the folder:")); - if (uri) - em_folder_selector_set_selected ((EMFolderSelector *) dialog, uri); - g_signal_connect (dialog, "response", G_CALLBACK(emc_new_folder_response), NULL); - gtk_widget_show(dialog); + emfu_folder_create (NULL); } else return -1; -- cgit