[Xfce4-commits] <postler:master> Hide Apple ToDo folder by default

Christian Dywan noreply at xfce.org
Sat Nov 20 19:52:01 CET 2010


Updating branch refs/heads/master
         to f715058be1e4710a5570b6c3773a4e4caa26327e (commit)
       from e52f920f4e16310b3aa24d9f0e0bb5895b882d34 (commit)

commit f715058be1e4710a5570b6c3773a4e4caa26327e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Nov 20 19:45:04 2010 +0100

    Hide Apple ToDo folder by default

 postler/postler-accounts.vala |    4 ++--
 postler/postler-folders.vala  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index 0504e33..b42ca4f 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -77,7 +77,7 @@ namespace Postler {
         public string sync;
         public string reply;
         public string organization;
-        public string hide;
+        public string hide = "Apple Mail To Do";
         public string[]? folders = { null, null, null, null, null };
 
         public unowned string get_trash ()
@@ -93,7 +93,7 @@ namespace Postler {
                 if (this.folders[type] == null
                  && folder_name in localized_folders[type].localized) {
                     this.folders[type] = folder_name;
-                    this.hide += ("," + localized_folders[type].role);
+                    this.hide += "," + localized_folders[type].role;
                     return localized_folders[type];
                 }
             }
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 7d3694d..51cb28a 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -183,7 +183,7 @@ public class Postler.Folders : Gtk.TreeView {
                 while ((info = folder_enumerator.next_file (null)) != null) {
                     string name = info.get_name ();
 
-                    if (account_info.hide != null && name in account_info.hide)
+                    if (name in account_info.hide)
                         continue;
 
                     var status_dir = folder_dir.resolve_relative_path (name);



More information about the Xfce4-commits mailing list