[empathy/gnome-3-4] check if salut settings are valid instead of assume they are not



commit 7843d9f5621b1489a60cb982513ad39e38926fde
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Apr 4 15:17:03 2012 +0200

    check if salut settings are valid instead of assume they are not
    
    If we manage to fetch all the info from EDS the account is ready to connect
    and so the 'Connect' button should be sensitive right away.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673451

 src/empathy-accounts-dialog.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index fb679ba..0e004f5 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -2223,7 +2223,9 @@ maybe_show_salut_dialog (EmpathyAccountsDialog *self)
 
   button = gtk_dialog_add_button (GTK_DIALOG (dialog),
       _("_Connect"), GTK_RESPONSE_YES);
-  gtk_widget_set_sensitive (button, FALSE);
+  gtk_widget_set_sensitive (button,
+      empathy_local_xmpp_assistant_widget_is_valid (
+        EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET (widget)));
 
   g_signal_connect (widget, "valid", G_CALLBACK (salut_valid_cb),
       button);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]