you can press enter to send in the text :O
This commit is contained in:
parent
ec8cea760d
commit
643fff17bd
1 changed files with 2 additions and 0 deletions
|
@ -53,9 +53,11 @@ namespace Buypeeb {
|
||||||
|
|
||||||
private (Boolean accepted, string response) EntryDialogue(string title = "Buypeeb", string message = "Hi there!") {
|
private (Boolean accepted, string response) EntryDialogue(string title = "Buypeeb", string message = "Hi there!") {
|
||||||
Dialog ed = new Dialog(title, null, Gtk.DialogFlags.DestroyWithParent, "Cancel", ResponseType.Cancel, "OK", ResponseType.Ok);
|
Dialog ed = new Dialog(title, null, Gtk.DialogFlags.DestroyWithParent, "Cancel", ResponseType.Cancel, "OK", ResponseType.Ok);
|
||||||
|
ed.DefaultResponse = ResponseType.Ok;
|
||||||
|
|
||||||
Label edLabel = new Label(message);
|
Label edLabel = new Label(message);
|
||||||
Entry edEntry = new Entry();
|
Entry edEntry = new Entry();
|
||||||
|
edEntry.ActivatesDefault = true;
|
||||||
|
|
||||||
ed.ContentArea.PackStart(edLabel, true, true, 2);
|
ed.ContentArea.PackStart(edLabel, true, true, 2);
|
||||||
edLabel.Show();
|
edLabel.Show();
|
||||||
|
|
Loading…
Reference in a new issue