From: Sergio Villar Senin Date: Wed, 10 Dec 2008 15:55:29 +0000 (+0000) Subject: * Fixes NB#94467, do not show special icons for remote folders X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=e6a0766eaf261ef7bfd50bca6b958d71c7e66bd1;p=modest * Fixes NB#94467, do not show special icons for remote folders pmo-drop-split-view-r6738 --- diff --git a/src/widgets/modest-folder-view.c b/src/widgets/modest-folder-view.c index 4888a11..97c5805 100644 --- a/src/widgets/modest-folder-view.c +++ b/src/widgets/modest-folder-view.c @@ -800,6 +800,16 @@ get_folder_icons (TnyFolderType type, GObject *instance) type = modest_tny_folder_guess_folder_type (TNY_FOLDER (instance)); } + /* Remote folders should not be treated as special folders */ + if (TNY_IS_FOLDER_STORE (instance) && + type != TNY_FOLDER_TYPE_INBOX && + modest_tny_folder_store_is_remote (TNY_FOLDER_STORE (instance))) { + return get_composite_icons (MODEST_FOLDER_ICON_NORMAL, + &normal_pixbuf, + &normal_pixbuf_open, + &normal_pixbuf_close); + } + switch (type) { case TNY_FOLDER_TYPE_INVALID: g_warning ("%s: BUG: TNY_FOLDER_TYPE_INVALID", __FUNCTION__);