[Xfce4-commits] <postler:master> Determine name of folders to hide from the location
Christian Dywan
noreply at xfce.org
Wed Dec 22 04:28:04 CET 2010
Updating branch refs/heads/master
to 0c80ea7f35b1420353511813d3798e68a2cacab8 (commit)
from a72700d6936a6d661533c12db94a43b9c785b3a1 (commit)
commit 0c80ea7f35b1420353511813d3798e68a2cacab8
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Dec 21 23:04:09 2010 +0100
Determine name of folders to hide from the location
The visible name may not be the same as on disk and won't
contain the parent folder either.
postler/postler-folders.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 19b726a..658c8ba 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -478,13 +478,15 @@ public class Postler.Folders : Gtk.TreeView {
menuitem.activate.connect ((menuitem) => {
Gtk.TreeIter iter;
if (get_selection ().get_selected (null, out iter)) {
- string name;
+ string? location;
AccountInfo? account_info;
store.get (iter,
- Columns.NAME, out name,
+ Columns.LOCATION, out location,
Columns.INFO, out account_info);
if (account_info != null) {
- account_info.hide += "," + name;
+ string name = location.rstr ("/").substring (1, -1);
+ if (!account_info.hide.contains (name))
+ account_info.hide += "," + name;
accounts.update ();
populate ();
}
More information about the Xfce4-commits
mailing list