Closes #6251 Text entries default on welcome/add screens
This commit is contained in:
parent
e49835426c
commit
6de36ae3eb
2 changed files with 11 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ public class AccountDialogAddEditPane : Gtk.Box {
|
|||
button_box.pack_start(ok_button, false, false, 0);
|
||||
ok_button.can_default = true;
|
||||
|
||||
// Since we're not yet in a window, we have to wait before setting the default action.
|
||||
realize.connect(() => { ok_button.has_default = true; });
|
||||
|
||||
ok_button.clicked.connect(on_ok);
|
||||
cancel_button.clicked.connect(() => { cancel(); });
|
||||
|
||||
|
|
|
|||
|
|
@ -266,6 +266,7 @@
|
|||
<property name="can_focus">True</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="placeholder_text">imap.example.com</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
@ -297,6 +298,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="width_chars">5</property>
|
||||
<property name="text">993</property>
|
||||
<property name="invisible_char_set">True</property>
|
||||
|
|
@ -313,6 +315,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="invisible_char_set">True</property>
|
||||
<property name="placeholder_text">smtp.example.com</property>
|
||||
</object>
|
||||
|
|
@ -328,6 +331,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="width_chars">5</property>
|
||||
<property name="text">465</property>
|
||||
<property name="invisible_char_set">True</property>
|
||||
|
|
@ -431,6 +435,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="placeholder_text">SMTP username</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
@ -446,6 +451,7 @@
|
|||
<property name="can_focus">True</property>
|
||||
<property name="visibility">False</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="placeholder_text">SMTP password</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
@ -494,6 +500,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="placeholder_text">IMAP username</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
@ -509,6 +516,7 @@
|
|||
<property name="can_focus">True</property>
|
||||
<property name="visibility">False</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="activates_default">True</property>
|
||||
<property name="placeholder_text">IMAP password</property>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue