Improve account setup success screen
This commit is contained in:
parent
1eb01251e8
commit
3218dc0211
|
@ -520,10 +520,9 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="success_box">
|
<object class="GtkBox" id="success_box">
|
||||||
<property name="margin">50</property>
|
<property name="margin">50</property>
|
||||||
<property name="margin-top">5</property>
|
<property name="margin-top">10</property>
|
||||||
<property name="margin-bottom">5</property>
|
<property name="margin-bottom">10</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="spacing">10</property>
|
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
|
@ -560,6 +559,7 @@
|
||||||
<property name="xalign">0.5</property>
|
<property name="xalign">0.5</property>
|
||||||
<property name="yalign">0.5</property>
|
<property name="yalign">0.5</property>
|
||||||
<property name="use-markup">True</property>
|
<property name="use-markup">True</property>
|
||||||
|
<property name="justify">center</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<style>
|
<style>
|
||||||
<class name="dim-label"/>
|
<class name="dim-label"/>
|
||||||
|
|
|
@ -191,7 +191,7 @@ public class AddAccountDialog : Gtk.Dialog {
|
||||||
animate_window_resize(register_box);
|
animate_window_resize(register_box);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void show_success() {
|
private void show_success(Account account) {
|
||||||
success_box.visible = true;
|
success_box.visible = true;
|
||||||
stack.visible_child_name = "success";
|
stack.visible_child_name = "success";
|
||||||
sign_in_jid_box.visible = false;
|
sign_in_jid_box.visible = false;
|
||||||
|
@ -199,7 +199,7 @@ public class AddAccountDialog : Gtk.Dialog {
|
||||||
sign_in_password_box.visible = false;
|
sign_in_password_box.visible = false;
|
||||||
create_account_box.visible = false;
|
create_account_box.visible = false;
|
||||||
register_box.visible = false;
|
register_box.visible = false;
|
||||||
success_description.label = _("You can now start using %s").printf("<b>" + Markup.escape_text(jid_entry.text) + "</b>");
|
success_description.label = _("You can now start using %s").printf("<b>" + Markup.escape_text(account.bare_jid.to_string()) + "</b>");
|
||||||
|
|
||||||
set_default(success_continue_button);
|
set_default(success_continue_button);
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,7 @@ public class AddAccountDialog : Gtk.Dialog {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
add_activate_account(account);
|
add_activate_account(account);
|
||||||
show_success();
|
show_success(account);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -343,7 +343,7 @@ public class AddAccountDialog : Gtk.Dialog {
|
||||||
}
|
}
|
||||||
Account account = new Account(new Jid.components(username, server_jid.domainpart, null), null, password, null);
|
Account account = new Account(new Jid.components(username, server_jid.domainpart, null), null, password, null);
|
||||||
add_activate_account(account);
|
add_activate_account(account);
|
||||||
show_success();
|
show_success(account);
|
||||||
} else {
|
} else {
|
||||||
display_notification(error);
|
display_notification(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue