Commit 3962f6f8 authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Sjoerd Simons

Change labels when creating an account

parent 877ca07d
......@@ -351,7 +351,6 @@
<object class="GtkVBox" id="vbox_jabber_simple">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="label_id_simple">
<property name="visible">True</property>
......@@ -362,6 +361,15 @@
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label_id_create">
<property name="xalign">0</property>
<property name="label" translatable="yes">What is your desired Jabber ID?</property>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
......@@ -369,6 +377,7 @@
<property name="yalign">0</property>
<property name="xscale">0.34999999403953552</property>
<property name="yscale">0.34999999403953552</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkEntry" id="entry_id_simple">
......@@ -379,17 +388,28 @@
</child>
</object>
<packing>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label_password_simple">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="ypad">6</property>
<property name="label" translatable="yes">What is your Jabber password?</property>
</object>
<packing>
<property name="position">2</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label_password_create">
<property name="xalign">0</property>
<property name="ypad">6</property>
<property name="label" translatable="yes">What is your desired Jabber password?</property>
</object>
<packing>
<property name="position">4</property>
</packing>
</child>
<child>
......@@ -410,7 +430,7 @@
</child>
</object>
<packing>
<property name="position">3</property>
<property name="position">5</property>
</packing>
</child>
</object>
......
......@@ -666,12 +666,26 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
GtkWidget *spinbutton_port;
GtkWidget *checkbutton_ssl;
GtkWidget *label_id, *label_password;
GtkWidget *label_id_create, *label_password_create;
if (priv->simple)
{
self->ui_details->gui = empathy_builder_get_file (filename,
"vbox_jabber_simple", &self->ui_details->widget,
"label_id_simple", &label_id,
"label_id_create", &label_id_create,
"label_password_simple", &label_password,
"label_password_create", &label_password_create,
NULL);
if (empathy_account_settings_get_boolean (priv->settings, "register"))
{
gtk_widget_hide (label_id);
gtk_widget_hide (label_password);
gtk_widget_show (label_id_create);
gtk_widget_show (label_password_create);
}
empathy_account_widget_handle_params (self,
"entry_id_simple", "account",
......
......@@ -125,6 +125,10 @@ account_assistant_protocol_changed_cb (GtkComboBox *chooser,
str = g_strdup_printf (_("New %s account"), proto->name);
settings = empathy_account_settings_new (cm->name, proto->name, str);
if (priv->first_resp == RESPONSE_CREATE_ACCOUNT)
empathy_account_settings_set_boolean (settings, "register", TRUE);
account_widget = empathy_account_widget_simple_new_for_protocol
(proto->name, settings, &widget_object);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment