aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-19 18:14:39 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-19 18:16:56 +0800
commit95466c01c61e06f33c29b9a243789e6ef34335d7 (patch)
tree5133e94ec2b1967c41c02ea7b8e38da324af1e2a
parent96254dab84d19af25964e0d6a1a73b0872428222 (diff)
downloadgsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.tar
gsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.tar.gz
gsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.tar.bz2
gsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.tar.lz
gsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.tar.xz
gsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.tar.zst
gsoc2013-empathy-95466c01c61e06f33c29b9a243789e6ef34335d7.zip
assistant: check that the enter/create page isn't already valid when switching protocol
-rw-r--r--src/empathy-account-assistant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index cd0923785..c3cd90381 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -448,6 +448,12 @@ account_assistant_protocol_changed_cb (GtkComboBox *chooser,
g_signal_connect (priv->current_widget_object, "handle-apply",
G_CALLBACK (account_assistant_handle_apply_cb), self);
+ if (empathy_account_settings_is_valid (settings))
+ {
+ gtk_assistant_set_page_complete (GTK_ASSISTANT (self),
+ priv->enter_or_create_page, TRUE);
+ }
+
gtk_box_pack_start (GTK_BOX (priv->enter_or_create_page), account_widget,
FALSE, FALSE, 0);
gtk_widget_show (account_widget);