projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ebec1a4
)
* Fixes NB#94467, do not show special icons for remote folders
author
Sergio Villar Senin
<svillar@igalia.com>
Wed, 10 Dec 2008 15:52:26 +0000
(15:52 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Wed, 10 Dec 2008 15:52:26 +0000
(15:52 +0000)
pmo-trunk-r6737
src/widgets/modest-folder-view.c
patch
|
blob
|
history
diff --git
a/src/widgets/modest-folder-view.c
b/src/widgets/modest-folder-view.c
index
aaa7cc0
..
1e465ab
100644
(file)
--- a/
src/widgets/modest-folder-view.c
+++ b/
src/widgets/modest-folder-view.c
@@
-629,6
+629,16
@@
get_folder_icons (TnyFolderType type, GObject *instance)
type = modest_tny_folder_guess_folder_type (TNY_FOLDER (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__);
switch (type) {
case TNY_FOLDER_TYPE_INVALID:
g_warning ("%s: BUG: TNY_FOLDER_TYPE_INVALID", __FUNCTION__);