From 4229e6849ddbb2ecef6bef8177203c9b90c98686 Mon Sep 17 00:00:00 2001 From: 8 Date: Sun, 28 Oct 2001 10:53:02 +0000 Subject: Remove uic, kill dumb warning. 2001-10-28 * folder-browser-ui.c (fbui_sensitize_timeout): Remove uic, kill dumb warning. * mail-autofilter.c (mail_filter_rename_uri): Implement function for filters to keep track of uri's being renamed. (mail_filter_delete_uri): Similarly for deleting uri's. Note that these functions are just noops though. (real_flush_updates): Also rename and delete uri's from filters. (mls_delete_folder): Unref the store when done. (mls_rename_folder): Fix implementation, shell already created destination folder, so we can't just rename :( (xfer_folder): Manually call rename code, since the shell will do a remove/add later on, AND there's no way we can determine the new path from the crock of an api we have to work with. svn path=/trunk/; revision=14291 --- mail/mail-vfolder.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mail/mail-vfolder.c') diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 5db432a3b6..216337b4b0 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -440,7 +440,7 @@ mail_vfolder_rename_uri(CamelStore *store, const char *from, const char *to) CamelVeeFolder *vf; int changed = 0; - printf("vfolder rename uri: %s to %s\n", from, to); + d(printf("vfolder rename uri: %s to %s\n", from, to)); if (context == NULL || !strncmp(from, "vtrash:", 7) || !strncmp(to, "vtrash:", 7)) return; @@ -457,7 +457,7 @@ mail_vfolder_rename_uri(CamelStore *store, const char *from, const char *to) /* Remove all sources that match, ignore changed events though because the adduri call above does the work async */ if (uri_cmp(from, source)) { - printf("Vfolder '%s' used '%s' ('%s') now uses '%s'\n", rule->name, source, from, to); + d(printf("Vfolder '%s' used '%s' ('%s') now uses '%s'\n", rule->name, source, from, to)); vf = g_hash_table_lookup(vfolder_hash, rule->name); g_assert(vf); gtk_signal_disconnect_by_func((GtkObject *)rule, rule_changed, vf); @@ -502,7 +502,7 @@ rule_changed(FilterRule *rule, CamelFolder *folder) CamelFolder *old; LOCK(); - printf("Changing folder name in hash table to '%s'\n", rule->name); + d(printf("Changing folder name in hash table to '%s'\n", rule->name)); if (g_hash_table_lookup_extended(vfolder_hash, folder->full_name, (void **)&key, (void **)&old)) { g_hash_table_remove(vfolder_hash, key); g_free(key); @@ -666,11 +666,11 @@ store_folder_renamed(CamelObject *o, void *event_data, void *data) /* This should be more-or-less thread-safe */ - printf("Folder renamed to '%s' from '%s'\n", info->new->full_name, info->old_base); + d(printf("Folder renamed to '%s' from '%s'\n", info->new->full_name, info->old_base)); /* Folder is already renamed? */ LOCK(); - printf("Changing folder name in hash table to '%s'\n", info->new->full_name); + d(printf("Changing folder name in hash table to '%s'\n", info->new->full_name)); if (g_hash_table_lookup_extended(vfolder_hash, info->old_base, (void **)&key, (void **)&folder)) { g_hash_table_remove(vfolder_hash, key); g_free(key); -- cgit