aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-04 21:17:03 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-04 21:22:45 +0800
commit7843d9f5621b1489a60cb982513ad39e38926fde (patch)
tree1a2fd6b7abe05e33141382c04a8c9187b0f4dd20 /src
parentbba730492873951c0e8b58c25ebfc6128b02e8a9 (diff)
downloadgsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.tar
gsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.tar.gz
gsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.tar.bz2
gsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.tar.lz
gsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.tar.xz
gsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.tar.zst
gsoc2013-empathy-7843d9f5621b1489a60cb982513ad39e38926fde.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index fb679ba3c..0e004f5a5 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);