Improve archive folder detection
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 14 Jan 2009 13:12:00 +0000 (13:12 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 14 Jan 2009 13:12:00 +0000 (13:12 +0000)
pmo-trunk-r7147

src/modest-tny-folder.c
src/widgets/modest-folder-view.c

index f29fef7..f01c61d 100644 (file)
@@ -84,6 +84,9 @@ modest_tny_folder_guess_folder_type (TnyFolder *folder)
                                if ((strlen (downcase) == 5) &&
                                    !strncmp (downcase, "inbox", 5))
                                        type = TNY_FOLDER_TYPE_INBOX;
                                if ((strlen (downcase) == 5) &&
                                    !strncmp (downcase, "inbox", 5))
                                        type = TNY_FOLDER_TYPE_INBOX;
+                               if ((strlen (downcase) == 7) &&
+                                   !strncmp (downcase, "archive", 7))
+                                       type = TNY_FOLDER_TYPE_ARCHIVE;
                                g_free (downcase);
                        }
                        g_object_unref (parent);
                                g_free (downcase);
                        }
                        g_object_unref (parent);
index e6c4193..d952c08 100644 (file)
@@ -935,7 +935,7 @@ get_folder_icons (TnyFolderType type, GObject *instance)
                                              &mmc_pixbuf,
                                              &mmc_pixbuf_open,
                                              &mmc_pixbuf_close);
                                              &mmc_pixbuf,
                                              &mmc_pixbuf_open,
                                              &mmc_pixbuf_close);
-                                             
+               break;
        case TNY_FOLDER_TYPE_NORMAL:
        default:
                /* Memory card folders could have an special icon */
        case TNY_FOLDER_TYPE_NORMAL:
        default:
                /* Memory card folders could have an special icon */