[Xfce4-commits] <postler:master> Enable 'Send' if Recipient is no whitespace and contains an '@'

Christian Dywan noreply at xfce.org
Sat Jun 26 03:22:13 CEST 2010


Updating branch refs/heads/master
         to 52e5374a4ebdfb475d27f313a25a5c60c7bb3cc4 (commit)
       from 5650a2e00b8a943a35d50b159fb459dc2b59a441 (commit)

commit 52e5374a4ebdfb475d27f313a25a5c60c7bb3cc4
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jun 24 23:00:10 2010 +0200

    Enable 'Send' if Recipient is no whitespace and contains an '@'

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

diff --git a/postler/postler-composer.vala b/postler/postler-composer.vala
index f392cf6..72215c9 100644
--- a/postler/postler-composer.vala
+++ b/postler/postler-composer.vala
@@ -254,7 +254,7 @@ public class Postler.Composer : Gtk.Window {
 
         actions.get_action ("MessageSend").sensitive = false;
         entry_to.notify["text"].connect ((object, pspec) => {
-            bool state = entry_to.text != "";
+            bool state = entry_to.text.strip ().chr (-1, '@') != null;
             actions.get_action ("MessageSend").sensitive = state;
         });
 



More information about the Xfce4-commits mailing list