[empathy/mc5] Use the right default answer if we're not importing accounts
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5] Use the right default answer if we're not importing accounts
- Date: Sat, 22 Aug 2009 18:55:29 +0000 (UTC)
commit 45a6ac022bc86f649bb49f909f95b9311eec57c9
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Sat Aug 22 19:43:38 2009 +0100
Use the right default answer if we're not importing accounts
src/empathy-account-assistant.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index e375aa7..d8aa46f 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -495,6 +495,7 @@ account_assistant_radio_choice_toggled_cb (GtkToggleButton *button,
static GtkWidget *
account_assistant_build_introduction_page (EmpathyAccountAssistant *self)
{
+ EmpathyAccountAssistantPriv *priv = GET_PRIV (self);
GtkWidget *main_vbox, *hbox_1, *w, *vbox_1;
GtkWidget *radio = NULL;
GdkPixbuf *pix;
@@ -563,6 +564,11 @@ account_assistant_build_introduction_page (EmpathyAccountAssistant *self)
g_signal_connect (radio, "clicked",
G_CALLBACK (account_assistant_radio_choice_toggled_cb), self);
+ priv->first_resp = RESPONSE_IMPORT;
+ }
+ else
+ {
+ priv->first_resp = RESPONSE_ENTER_ACCOUNT;
}
str = _("Yes, I'll enter my account details now");
@@ -910,9 +916,6 @@ empathy_account_assistant_init (EmpathyAccountAssistant *self)
GTK_ASSISTANT_PAGE_INTRO);
gtk_assistant_set_page_complete (assistant, page, TRUE);
- /* set a default answer */
- priv->first_resp = RESPONSE_IMPORT;
-
/* second page (import accounts) */
page = account_assistant_build_import_page (self);
gtk_assistant_append_page (assistant, page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]