you can press enter to send in the text :O

This commit is contained in:
Lynne Megido 2020-09-01 00:34:31 +10:00
parent ec8cea760d
commit 643fff17bd
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -53,9 +53,11 @@ namespace Buypeeb {
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);
ed.DefaultResponse = ResponseType.Ok;
Label edLabel = new Label(message);
Entry edEntry = new Entry();
edEntry.ActivatesDefault = true;
ed.ContentArea.PackStart(edLabel, true, true, 2);
edLabel.Show();