[Xfce4-commits] <postler:master> Display number of unread messages in all folders

Christian Dywan noreply at xfce.org
Mon Dec 20 04:58:01 CET 2010


Updating branch refs/heads/master
         to 853f47cc644c411732d093ae90da6513dd2f2f99 (commit)
       from 9be37e4509d5c5767041274c7a1fc8800cd47e7b (commit)

commit 853f47cc644c411732d093ae90da6513dd2f2f99
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Dec 20 01:11:18 2010 +0100

    Display number of unread messages in all folders
    
    Fixes: https://bugs.launchpad.net/postler/+bug/691831

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

diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index b7f885f..76f0e95 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -240,20 +240,16 @@ public class Postler.Folders : Gtk.TreeView {
                         Columns.ELLIPSIZE, Pango.EllipsizeMode.MIDDLE,
                         Columns.LOCATION, account_info.path + "/" + name,
                         Columns.INFO, account_info,
-                        Columns.FOLDER_MONITOR, monitor);
-
-                    if (folder.role == "Queue") {
-                        var msg_dir = folder_dir.resolve_relative_path (
-                            account_info.path + "/" + name + "/new");
-                        monitor = msg_dir.monitor_directory (0, null);
-                        string path = store.get_string_from_iter (folder_iter);
-                        monitor.changed.connect ((monitor, file, other, event) => {
-                            unread_monitor_changed (msg_dir, path, folder.label ?? folder_name);
-                        });
+                        Columns.FOLDER_MONITOR, monitor,
+                        Columns.UNREAD_MONITOR, monitor);
+                    var msg_dir = folder_dir.resolve_relative_path (
+                        account_info.path + "/" + name + "/new");
+                    monitor = msg_dir.monitor_directory (0, null);
+                    string path = store.get_string_from_iter (folder_iter);
+                    monitor.changed.connect ((monitor, file, other, event) => {
                         unread_monitor_changed (msg_dir, path, folder.label ?? folder_name);
-                        store.set (folder_iter,
-                                   Columns.UNREAD_MONITOR, monitor);
-                    }
+                    });
+                    unread_monitor_changed (msg_dir, path, folder.label ?? folder_name);
                 }
 
                 Gtk.TreeIter folder_iter = new Gtk.TreeIter ();



More information about the Xfce4-commits mailing list