diff options
author | Not Zed <NotZed@Ximian.com> | 2004-05-26 12:25:10 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-05-26 12:25:10 +0800 |
commit | ac8e0571f2e3478a2f1fc2a55a2df7dbf8aa0456 (patch) | |
tree | d31bbdc1752aea650b3bfadb272492291d3f8228 /mail/mail-component.c | |
parent | 1c11041eebd485a471e842ba4f75834c2ce6e1f7 (diff) | |
download | gsoc2013-evolution-ac8e0571f2e3478a2f1fc2a55a2df7dbf8aa0456.tar.gz gsoc2013-evolution-ac8e0571f2e3478a2f1fc2a55a2df7dbf8aa0456.tar.zst gsoc2013-evolution-ac8e0571f2e3478a2f1fc2a55a2df7dbf8aa0456.zip |
set the default selection to inbox.
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
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index 11ecbb9ca4..ebe949d5b5 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -182,23 +182,9 @@ mc_add_store(MailComponent *component, CamelStore *store, const char *name, void } static void -mc_add_local_store_done(CamelStore *store, CamelFolderInfo *info, void *data) -{ - /*MailComponent *mc = data;*/ - int i; - -#if 0 - for (i=0;i<sizeof(mc_default_folders)/sizeof(mc_default_folders[0]);i++) { - if (mc_default_folders[i].folder) - mail_note_folder(mc_default_folders[i].folder); - } -#endif -} - -static void mc_add_local_store(CamelStore *store, const char *name, MailComponent *mc) { - mc_add_store(mc, store, name, mc_add_local_store_done); + mc_add_store(mc, store, name, NULL); camel_object_unref(store); g_object_unref(mc); } @@ -331,7 +317,7 @@ mc_startup(MailComponent *mc) static void folder_selected_cb (EMFolderTree *emft, const char *path, const char *uri, guint32 flags, EMFolderView *view) { - if ((flags & CAMEL_FOLDER_NOSELECT) || !path || !strcmp (path, "/")) + if ((flags & CAMEL_FOLDER_NOSELECT) || !path || !strcmp (path, "")) em_folder_view_set_folder (view, NULL, NULL); else em_folder_view_set_folder_uri (view, uri); |