[Xfce4-commits] <postler:master> Make New Message insensitive if there's no account
Christian Dywan
noreply at xfce.org
Sun Dec 19 03:06:01 CET 2010
Updating branch refs/heads/master
to 5e13da9a92c096690691f8baec79c6bb1ee7d9b2 (commit)
from e5e3f24f14d68f3c6669178e439459d2091d0304 (commit)
commit 5e13da9a92c096690691f8baec79c6bb1ee7d9b2
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Dec 19 01:41:13 2010 +0100
Make New Message insensitive if there's no account
postler/postler-bureau.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 54bcc33..5288360 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -426,9 +426,12 @@ public class Postler.Bureau : Gtk.Window {
};
void account_check (AccountInfo? account_info) {
+ actions.get_action ("MailReceive").sensitive = false;
+ actions.get_action ("MessageNew").sensitive = false;
foreach (var account_info in accounts.get_infos ())
if (account_info.type == AccountType.IMAP) {
actions.get_action ("MailReceive").sensitive = true;
+ actions.get_action ("MessageNew").sensitive = true;
break;
}
}
@@ -479,7 +482,6 @@ public class Postler.Bureau : Gtk.Window {
}
ui.insert_action_group (folder_actions, 0);
- actions.get_action ("MailReceive").sensitive = false;
accounts.add_info.connect_after (account_check);
accounts.remove_info.connect_after (account_check);
account_check (null);
More information about the Xfce4-commits
mailing list