[Xfce4-commits] <postler:master> Make the account name act as the inbox folder

Christian Dywan noreply at xfce.org
Wed Jun 2 18:24:02 CEST 2010


Updating branch refs/heads/master
         to 5f4ab25b75212c5c28761f24ef491e9444c6eadd (commit)
       from 7ae4f0f977ab40ecbf326f63fd4cbdf3c5f30428 (commit)

commit 5f4ab25b75212c5c28761f24ef491e9444c6eadd
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jun 2 18:18:03 2010 +0200

    Make the account name act as the inbox folder

 postler/postler-folders.vala |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 35d480b..8007987 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -52,7 +52,6 @@ public class Postler.Folders : Gtk.TreeView {
     }
 
     const MailFolder[] localized_folders = {
-        { "INBOX", STOCK_INBOX, N_("Inbox") },
         { "Sent", STOCK_SENT_MAIL, N_("Sent") },
         { "Drafts", null, N_("Drafts") },
         { "Queue", STOCK_OUTBOX, N_("Outbox") },
@@ -83,9 +82,17 @@ public class Postler.Folders : Gtk.TreeView {
                 while ((info = folder_enumerator.next_file (null)) != null) {
                     Gtk.TreeIter folder_iter;
                     string name = info.get_name ();
+                    string location = toplevel + "/" + account_name;
+                    if (name == "INBOX") {
+                        store.set (account_iter,
+                            Columns.ICON, STOCK_INBOX,
+                            Columns.LOCATION, location + "/" + name,
+                            -1);
+                        continue;
+                    }
+
                     string localized_name = null;
                     string stock_id = Gtk.STOCK_DIRECTORY;
-                    string location = toplevel + "/" + account_name;
                     foreach (var localized_folder in localized_folders) {
                         if (localized_folder.name == name) {
                             localized_name = localized_folder.localized;



More information about the Xfce4-commits mailing list